git.iko.soy/typeable/pandoc
on master help sign in
RST writer: allow images to be directly nested within links, closes #4810 (#4814)
commit74a35b123cad558915f82031056ea1b9bf84a9d3 authorFrancesco Occhipinti <focchi.pinti@gmail.com> dateFri 3 Aug 2018, 21:13 (8 years ago) parentf83bdb1
1 file changed+2
src/Text/Pandoc/Writers/RST.hs+2
src/Text/Pandoc/Writers/RST.hs+2
@@ -473,6 +473,8 @@ flatten outer
473473 -- them and they will be readable and parsable
474474 (Quoted _ _, _) -> keep f i
475475 (_, Quoted _ _) -> keep f i
476+ -- inlineToRST handles this case properly so it's safe to keep
477+ (Link _ _ _, Image _ _ _) -> keep f i
476478 -- parent inlines would prevent links from being correctly
477479 -- parsed, in this case we prioritise the content over the
478480 -- style