mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 00:45:47 +00:00
Commonmark writer: use shortcut reference links.
Commonmark supports these.
This commit is contained in:
@@ -657,7 +657,8 @@ inlineToMarkdown opts lnk@(Link attr@(ident,classes,kvs) txt (src, tit)) = do
|
||||
let useRefLinks = writerReferenceLinks opts && not useAuto
|
||||
shortcutable <- asks envRefShortcutable
|
||||
let useShortcutRefLinks = shortcutable &&
|
||||
isEnabled Ext_shortcut_reference_links opts
|
||||
(variant == Commonmark ||
|
||||
isEnabled Ext_shortcut_reference_links opts)
|
||||
reftext <- if useRefLinks
|
||||
then literal <$> getReference attr linktext (src, tit)
|
||||
else return mempty
|
||||
|
||||
Reference in New Issue
Block a user