Skip to content

Commit

Permalink
Implement zetteldeft-insert-link-md-style
Browse files Browse the repository at this point in the history
  • Loading branch information
maw committed Jul 24, 2022
1 parent 307df05 commit 1f5f535
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions zetteldeft.org
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,17 @@ When no title is provided, the link itself is used as a descriptor.
(insert "[[zdlink:" id "]]")))
#+end_src

Finally, when using Markdown style links, =zetteldeft-insert-link-md-style=
can be used. It inserts a

#+begin_src emacs-lisp
(defun zetteldeft-insert-link-md-style (id &optional title)
"Insert a Zetteldeft link in Markdown link format"
(if title
(insert (format "[%s](%s%s)" title zetteldeft-link-indicator id))
(insert (format "[%s%s](%s%s)" zetteldeft-link-indicator id zetteldeft-link-indicator id))))
#+end_src

*** Finding & linking files from minibuffer
**** =zetteldeft-find-file= opens file from minibuffer

Expand Down

0 comments on commit 1f5f535

Please sign in to comment.