diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-09-28 11:11:31 -0400 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-09-28 11:11:31 -0400 |
commit | 3abc1021aae3cbba698ff8e27fc809647461248e (patch) | |
tree | d27a3ff3f531029196e9462e2e1f792fb1c826e2 /src/Text/Pandoc/XML.hs | |
parent | 4be137509ea98a68dd557b982e5cb7cbad7a3062 (diff) | |
download | pandoc-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