diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index cb8bd35d3..9a093ad96 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -70,9 +70,7 @@ stringToHtml = primHtml . concatMap fixChar fixChar '>' = ">" fixChar '&' = "&" fixChar '"' = """ - fixChar '\160' = " " - fixChar c | ord c < 0xff = [c] - fixChar c = "&#" ++ show (ord c) ++ ";" + fixChar c = [c] -- | Convert Pandoc document to Html string. writeHtmlString :: WriterOptions -> Pandoc -> String diff --git a/tests/s5.basic.html b/tests/s5.basic.html index 4f49e3a57..253bcab2f 100644 --- a/tests/s5.basic.html +++ b/tests/s5.basic.html @@ -320,7 +320,7 @@ >)=\limh → 0 → 0\frac{f()=\limh → 0 → 0\frac{f()=\limh → 0 → 0\frac{f(

Should not be a list item:

M.A. 2007

M.A. 2007

B. Williams


hello
ahello therehello there.

Subscripts: HO, H23O, Hmany of themmany of themO.

These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.

x ∈  ∈ y
  • α ∧ ωα ∧ ω
  • )=\limh → 0 → 0\frac{f(
  • Here’s one that has a line break in it: α+ω × α+ω × x2
  • section: §
  • set membership: ∈
  • set membership: ∈
  • copyright: ©