diff options
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index e5d6e77df..61b621eda 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -497,6 +497,14 @@ replaceRefLinksBlock keytable (OrderedList lst) = OrderedList (map (replaceRefLinksBlockList keytable) lst) replaceRefLinksBlock keytable (BulletList lst) = BulletList (map (replaceRefLinksBlockList keytable) lst) +replaceRefLinksBlock keytable (DefinitionList lst) = + DefinitionList (map (\(term, def) -> + (map (replaceRefLinksInline keytable) term, + replaceRefLinksBlockList keytable def)) lst) +replaceRefLinksBlock keytable (Table caption alignment widths headers rows) = + Table (map (replaceRefLinksInline keytable) caption) alignment widths + (map (replaceRefLinksBlockList keytable) headers) + (map (map (replaceRefLinksBlockList keytable)) rows) replaceRefLinksBlock keytable other = other -- | Use key table to replace reference links with explicit links in an |