mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
ox-md.el: Preserve radio target hyperlink
* lisp/ox-md.el (org-md-link): Format markdown hyperlink from radio target. TINYCHANGE
This commit is contained in:
parent
a8df7670c8
commit
3916a57406
|
@ -543,7 +543,12 @@ INFO is a plist holding contextual information. See
|
|||
((string= type "coderef")
|
||||
(format (org-export-get-coderef-format path desc)
|
||||
(org-export-resolve-coderef path info)))
|
||||
((equal type "radio") desc)
|
||||
((string= type "radio")
|
||||
(let ((destination (org-export-resolve-radio-link link info)))
|
||||
(if (not destination) desc
|
||||
(format "<a href=\"#%s\">%s</a>"
|
||||
(org-export-get-reference destination info)
|
||||
desc))))
|
||||
(t (if (not desc) (format "<%s>" path)
|
||||
(format "[%s](%s)" desc path))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue