pandoc/test/command/1841.md
John MacFarlane 82cc7fb0d4 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.
2017-05-06 22:56:16 +02:00

42 lines
438 B
Markdown

```
% 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>
```