d79242796b
Previously we used named character references with html5 output. But these aren't valid XML, and we aim to produce html5 that is also valid XHTML (polyglot markup). (This is also needed for epub3.) Closes #5718.
1.1 KiB
1.1 KiB
pandoc -t html --ascii
äéıå
^D
<p>äéıå</p>
pandoc -t latex --ascii
äéıå
^D
\"{a}\'{e}\i\r{a}
pandoc -t man --ascii
äéıå
^D
.PP
\[:a]\['e]\[.i]\[oa]
pandoc -t ms --ascii
äéıå
^D
.LP
\[:a]\['e]\[.i]\[oa]
pandoc -t docbook --ascii
äéıå
^D
<para>
äéıå
</para>
pandoc -t jats --ascii
äéıå
^D
<p>äéıå</p>
pandoc -t markdown-smart --ascii
"äéıå"
^D
“äéıå”
CommonMark tests
% pandoc -f commonmark -t commonmark --ascii
hello … ok? … bye
^D
hello … ok? … bye
% pandoc -f commonmark+smart -t commonmark-smart --ascii --wrap=none
"hi"...dog's breath---cat 5--6
^D
“hi”…dog’s breath—cat 5–6
% pandoc -f commonmark+smart -t commonmark+smart --ascii
"hi"...dog's breath---cat 5--6
^D
"hi"...dog's breath---cat 5--6
% pandoc -f commonmark -t commonmark --ascii
foo Ӓ bar
^D
foo Ӓ bar
% pandoc -f commonmark -t commonmark --ascii
\[foo\](bar)
^D
\[foo\](bar)