Indentation is parsed as codeblock even if inside HTML block
xplosionmind opened this issue · 0 comments
xplosionmind commented
I have a list, let’s say like this:
Some markdown **here**
<ul>
<li>
<ul>
<li>Test one</li>
<li>Test two</li>
<li>Test three</li>
</ul>
</li>
<li>Test</li>
</ul>
Some markdown **here** *too*.
the output is:
<p>Some markdown <strong>here</strong></p>
<ul>
<pre><li>
<ul>
<li>Test one</li>
<li>Test two</li>
<li>Test three</li>
</ul>
</li>
<li>Test</li></pre>
</ul>
<p>Some markdown <strong>here</strong> <em>too</em></p>.
Hence, everything that contains indentation, even if it is inside an HTML block, is parsed as a codeblock. There are two possible solutions I am thinking of.
- specifying that indented codeblocks should not be parsed inside HTML blocks
- adding an option to disable codeblocks rendering with tab, but only parse it when using
```