aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/XML.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-09-28 11:11:31 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2012-09-28 11:11:31 -0400
commit3abc1021aae3cbba698ff8e27fc809647461248e (patch)
treed27a3ff3f531029196e9462e2e1f792fb1c826e2 /src/Text/Pandoc/XML.hs
parent4be137509ea98a68dd557b982e5cb7cbad7a3062 (diff)
downloadpandoc-3abc1021aae3cbba698ff8e27fc809647461248e.tar.gz
HTML writer: Use toHtml instead of pre-escaping.
We work around the problem that blaze-html unnecessarily escapes `'` by pre-escaping just the `'` characters, instead of the whole string. If blaze-html later stops escaping `'` characters, we can simplify strToHtml to toHtml. Note that this change yields a significant speed boost (111ms to 94ms on one benchmark). Closes #629.
Diffstat (limited to 'src/Text/Pandoc/XML.hs')
0 files changed, 0 insertions, 0 deletions