diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-05-06 22:56:16 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-05-06 22:56:16 +0200 |
commit | 82cc7fb0d462401b54bfe5172e7e49ab7b7302d9 (patch) | |
tree | 493d0183ee53a453a91f46c6ed7ebad4667fc317 /test | |
parent | f20c89e24380007a47f3e28889706a6f584bc6e0 (diff) |
Markdown reader: improved parsing of indented raw HTML blocks.
Previously we inadvertently interpreted indented HTML as
code blocks. This was a regression.
We now seek to determine the indentation level of the contents
of an HTML block, and (optionally) skip that much indentation.
As a side effect, indentation may be stripped off of raw
HTML blocks, if `markdown_in_html_blocks` is used. This
is better than having things interpreted as indented code
blocks.
Closes #1841.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/1841.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/command/1841.md b/test/command/1841.md new file mode 100644 index 000000000..408f224bd --- /dev/null +++ b/test/command/1841.md @@ -0,0 +1,42 @@ +``` +% pandoc +<table> +<tr> +<td> *one*</td> +<td> [a link](http://google.com)</td> +</tr> +</table> +^D +<table> +<tr> +<td> +<em>one</em> +</td> +<td> +<a href="http://google.com">a link</a> +</td> +</tr> +</table> +``` + +``` +% pandoc +<table> + <tr> + <td>*one*</td> + <td>[a link](http://google.com)</td> + </tr> +</table> +^D +<table> +<tr> +<td> +<em>one</em> +</td> +<td> +<a href="http://google.com">a link</a> +</td> +</tr> +</table> +``` + |