diff options
author | Francesco Occhipinti <focchi.pinti@gmail.com> | 2018-08-03 21:13:18 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-08-03 12:13:18 -0700 |
commit | 74a35b123cad558915f82031056ea1b9bf84a9d3 (patch) | |
tree | fa3778cd97a8b46cb6091a34260664a400146605 /src | |
parent | f83bdb1ac50064714cb80502a4b7ad895a897c14 (diff) | |
download | pandoc-74a35b123cad558915f82031056ea1b9bf84a9d3.tar.gz |
RST writer: allow images to be directly nested within links, closes #4810 (#4814)
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/RST.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index 0c118669b..f355a8f5b 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -473,6 +473,8 @@ flatten outer -- them and they will be readable and parsable (Quoted _ _, _) -> keep f i (_, Quoted _ _) -> keep f i + -- inlineToRST handles this case properly so it's safe to keep + (Link _ _ _, Image _ _ _) -> keep f i -- parent inlines would prevent links from being correctly -- parsed, in this case we prioritise the content over the -- style |