aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Helpers.hs
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-12-07 07:28:39 +0100
committerJan Tojnar <jtojnar@gmail.com>2020-12-07 07:28:39 +0100
commit70c7c5703afcbd1cbf2a80c2be515e038abcd419 (patch)
tree02ac02004ac34304d68fe1d50b67efc38939b36e /test/Tests/Helpers.hs
parent16ef87745702f69d5aa948fbe6d2101577dee8f4 (diff)
downloadpandoc-70c7c5703afcbd1cbf2a80c2be515e038abcd419.tar.gz
Docbook writer: Handle admonition titles from Markdown reader
Docbook reader produces a `Div` with `title` class for `<title>` element within an “admonition” element. Markdown writer then turns this into a fenced div with `title` class attribute. Since fenced divs are block elements, their content is recognized as a paragraph by the Markdown reader. This is an issue for Docbook writer because it would produce an invalid DocBook document from such AST – the `<title>` element can only contain “inline” elements. Let’s handle this invalid special case separately by unwrapping the paragraph before creating the `<title>` element.
Diffstat (limited to 'test/Tests/Helpers.hs')
0 files changed, 0 insertions, 0 deletions