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.rst | |
parent | 91b902f02f8224ea49ae26e7889a2c5032e2a79a (diff) | |
download | pandoc-e4263d306e6988dd322c895242eb818d22b9e012.tar.gz |
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.rst')
-rw-r--r-- | tests/writer.rst | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/tests/writer.rst b/tests/writer.rst index 68bc4a06c..1a998d2ae 100644 --- a/tests/writer.rst +++ b/tests/writer.rst @@ -432,7 +432,13 @@ Interpreted markdown in a table: .. raw:: html <table> + +.. raw:: html + <tr> + +.. raw:: html + <td> This is *emphasized* @@ -440,6 +446,9 @@ This is *emphasized* .. raw:: html </td> + +.. raw:: html + <td> And this is **strong** @@ -447,9 +456,17 @@ And this is **strong** .. raw:: html </td> + +.. raw:: html + </tr> + +.. raw:: html + </table> +.. raw:: html + <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script> Here’s a simple block: @@ -521,6 +538,8 @@ Multiline: Blah --> +.. raw:: html + <!-- This is another comment. --> @@ -535,7 +554,7 @@ Just plain comment, with trailing spaces on the line: .. raw:: html - <!-- foo --> + <!-- foo --> Code: @@ -549,20 +568,36 @@ Hr’s: <hr> +.. raw:: html + <hr /> +.. raw:: html + <hr /> - <hr> +.. raw:: html + + <hr> - <hr /> +.. raw:: html - <hr /> + <hr /> + +.. raw:: html + + <hr /> + +.. raw:: html <hr class="foo" id="bar" /> +.. raw:: html + <hr class="foo" id="bar" /> +.. raw:: html + <hr class="foo" id="bar"> -------------- |