mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 20:07:22 +00:00
cb6f5a3b37
Previously we would export leading and trailing space inside elements like emphasis or ulink so they appeared outside the resulting pandoc Inline (Emph or Link). This is not really motivated; DocBook and XML in general treats leading and trailing whitespace in this context as significant. These spaces may casue problems for some output formats, e.g. asciidoc, but these issues should be addressed in the corresponding writers, as they are in the Markdown writer, using Text.Pandoc.Writers.Shared.delimited. Closes #11398.
291 B
291 B
% pandoc -f docbook -t native
<para>
<emphasis>emphasized </emphasis>text
</para>
^D
[ Para [ Emph [ Str "emphasized" , Space ] , Str "text" ] ]
% pandoc -f jats -t native
<p>
<italic> hi </italic>there
</p>
^D
[ Para [ Emph [ Space , Str "hi" , Space ] , Str "there" ] ]