git.iko.soy/typeable/pandoc
on master help sign in
Added clauses for DefinitionList and Table to replaceReferenceLinks in

Text/Pandoc/Shared.hs. This ensures that reference-style links inside tables and definition lists will be handled properly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@575 788f1e2b-df1e-0410-8736-df70ead52e1b

commit0d2e5eab79edee0ccc711772a2def5b8082797b4 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 12 Mar 2007, 00:36 (20 years ago) parentd55346c
1 file changed+8
src/Text/Pandoc/Shared.hs+8
src/Text/Pandoc/Shared.hs+8
@@ -497,6 +497,14 @@ replaceRefLinksBlock keytable (OrderedList lst) =
497497 OrderedList (map (replaceRefLinksBlockList keytable) lst)
498498replaceRefLinksBlock keytable (BulletList lst) =
499499 BulletList (map (replaceRefLinksBlockList keytable) lst)
500+replaceRefLinksBlock keytable (DefinitionList lst) =
501+ DefinitionList (map (\(term, def) ->
502+ (map (replaceRefLinksInline keytable) term,
503+ replaceRefLinksBlockList keytable def)) lst)
504+replaceRefLinksBlock keytable (Table caption alignment widths headers rows) =
505+ Table (map (replaceRefLinksInline keytable) caption) alignment widths
506+ (map (replaceRefLinksBlockList keytable) headers)
507+ (map (map (replaceRefLinksBlockList keytable)) rows)
500508replaceRefLinksBlock keytable other = other
501509
502510-- | Use key table to replace reference links with explicit links in an