diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-07-07 15:47:51 -0600 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-07-07 15:53:59 -0600 |
commit | e4263d306e6988dd322c895242eb818d22b9e012 (patch) | |
tree | d3f55381546316bece265028dd0beacad4fa4180 /tests/writer.docbook | |
parent | 91b902f02f8224ea49ae26e7889a2c5032e2a79a (diff) |
Revamped raw HTML block parsing in markdown.
- We no longer include trailing spaces and newlines in the
raw blocks.
- We look for closing tags for elements (but without backtracking).
- Each block-level tag is its own RawBlock; we no longer try to
consolidate them (though `--normalize` will do so).
Closes #1330.
Diffstat (limited to 'tests/writer.docbook')
-rw-r--r-- | tests/writer.docbook | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook index 01daa2c30..eee19cdd9 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -887,7 +887,6 @@ These should not be escaped: \$ \\ \> \[ \{ </td> </tr> </table> - <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script> <para> Here’s a simple block: @@ -926,7 +925,6 @@ These should not be escaped: \$ \\ \> \[ \{ Blah Blah --> - <!-- This is another comment. --> @@ -939,7 +937,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Just plain comment, with trailing spaces on the line: </para> - <!-- foo --> + <!-- foo --> <para> Code: </para> @@ -950,21 +948,13 @@ These should not be escaped: \$ \\ \> \[ \{ Hr’s: </para> <hr> - <hr /> - <hr /> - - <hr> - - <hr /> - - <hr /> - + <hr> + <hr /> + <hr /> <hr class="foo" id="bar" /> - <hr class="foo" id="bar" /> - <hr class="foo" id="bar"> </sect1> <sect1 id="inline-markup"> |