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.markdown | |
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.markdown')
-rw-r--r-- | tests/writer.markdown | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/tests/writer.markdown b/tests/writer.markdown index 9cf153637..9974d27e0 100644 --- a/tests/writer.markdown +++ b/tests/writer.markdown @@ -395,9 +395,7 @@ And this is **strong** </td> </tr> </table> - <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script> - Here’s a simple block: <div> @@ -435,26 +433,22 @@ foo This should just be an HTML comment: <!-- Comment --> - Multiline: <!-- Blah Blah --> - <!-- This is another comment. --> - Code block: <!-- Comment --> Just plain comment, with trailing spaces on the line: -<!-- foo --> - +<!-- foo --> Code: <hr /> @@ -462,21 +456,13 @@ Code: Hr’s: <hr> - <hr /> - <hr /> - -<hr> - -<hr /> - -<hr /> - +<hr> +<hr /> +<hr /> <hr class="foo" id="bar" /> - <hr class="foo" id="bar" /> - <hr class="foo" id="bar"> * * * * * |