{ "tests": [ { "fragmentContext": null, "description": "

Bold Not bold

\\nAlso not bold.", "input": "

Bold Not bold

\nAlso not bold.", "output": [ [ "StartTag", "b", {} ], [ "StartTag", "p", {} ], [ "Character", "Bold " ], [ "EndTag", "b" ], [ "Character", " Not bold" ], [ "EndTag", "p" ], [ "Character", "\nAlso not bold." ] ] }, { "fragmentContext": null, "description": "\\nItalic and Red

Italic and Red Just italic.

Italic only.
Plain\\n

I should not be red. Red. Italic and red.

\\n

Italic and red. Red. I should not be red.

\\nBold Bold and italic Only Italic Plain", "input": "\nItalic and Red

Italic and Red Just italic.

Italic only.
Plain\n

I should not be red. Red. Italic and red.

\n

Italic and red. Red. I should not be red.

\nBold Bold and italic Only Italic Plain", "output": [ [ "StartTag", "html", {} ], [ "Character", "\n" ], [ "StartTag", "font", { "color": "red" } ], [ "StartTag", "i", {} ], [ "Character", "Italic and Red" ], [ "StartTag", "p", {} ], [ "Character", "Italic and Red " ], [ "EndTag", "font" ], [ "Character", " Just italic." ], [ "EndTag", "p" ], [ "Character", " Italic only." ], [ "EndTag", "i" ], [ "Character", " Plain\n" ], [ "StartTag", "p", {} ], [ "Character", "I should not be red. " ], [ "StartTag", "font", { "color": "red" } ], [ "Character", "Red. " ], [ "StartTag", "i", {} ], [ "Character", "Italic and red." ], [ "EndTag", "p" ], [ "Character", "\n" ], [ "StartTag", "p", {} ], [ "Character", "Italic and red. " ], [ "EndTag", "i" ], [ "Character", " Red." ], [ "EndTag", "font" ], [ "Character", " I should not be red." ], [ "EndTag", "p" ], [ "Character", "\n" ], [ "StartTag", "b", {} ], [ "Character", "Bold " ], [ "StartTag", "i", {} ], [ "Character", "Bold and italic" ], [ "EndTag", "b" ], [ "Character", " Only Italic " ], [ "EndTag", "i" ], [ "Character", " Plain" ] ] }, { "fragmentContext": null, "description": "\\n

First paragraph.

\\n

Second paragraph.

\\n

Bold and Italic Italic

", "input": "\n

First paragraph.

\n

Second paragraph.

\n

Bold and Italic Italic

", "output": [ [ "StartTag", "html", {} ], [ "StartTag", "body", {} ], [ "Character", "\n" ], [ "StartTag", "p", {} ], [ "StartTag", "font", { "size": "7" } ], [ "Character", "First paragraph." ], [ "EndTag", "p" ], [ "Character", "\n" ], [ "StartTag", "p", {} ], [ "Character", "Second paragraph." ], [ "EndTag", "p" ], [ "EndTag", "font" ], [ "Character", "\n" ], [ "StartTag", "b", {} ], [ "StartTag", "p", {} ], [ "StartTag", "i", {} ], [ "Character", "Bold and Italic" ], [ "EndTag", "b" ], [ "Character", " Italic" ], [ "EndTag", "p" ] ] }, { "fragmentContext": null, "description": "\\n
\\n
Boo\\n
Goo?\\n
\\n", "input": "\n
\n
Boo\n
Goo?\n
\n", "output": [ [ "StartTag", "html", {} ], [ "Character", "\n" ], [ "StartTag", "dl", {} ], [ "Character", "\n" ], [ "StartTag", "dt", {} ], [ "StartTag", "b", {} ], [ "Character", "Boo\n" ], [ "StartTag", "dd", {} ], [ "Character", "Goo?\n" ], [ "EndTag", "dl" ], [ "Character", "\n" ], [ "EndTag", "html" ] ] }, { "fragmentContext": null, "description": "\\n