Hi (again)!
This is a similar issue to #174 (maybe), but as it is more complex I decided to open it as a separate one. Feel free to merge them back :)
The first issue is that if a fenced code block inside a list item contains a black line, the whole code block seems to get ignored. As an example,
- This is an item followed by some RDF
```turtle
@base <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rel: <http://www.perceive.net/schemas/relationship/> .
<#green-goblin>
rel:enemyOf <#spiderman> ;
a foaf:Person ; # in the context of the Marvel universe
foaf:name "Green Goblin" .
<#spiderman>
rel:enemyOf <#green-goblin> ;
a foaf:Person ;
foaf:name "Spiderman", "Человек-паук"@ru .
```
gets rendered as:
<ul>
<li><p>This is an item followed by some RDF
```turtle
@base <a href="http://example.org/">http://example.org/</a> .
@prefix rdf: <a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a> .
@prefix rdfs: <a href="http://www.w3.org/2000/01/rdf-schema#">http://www.w3.org/2000/01/rdf-schema#</a> .
@prefix foaf: <a href="http://xmlns.com/foaf/0.1/">http://xmlns.com/foaf/0.1/</a> .
@prefix rel: <a href="http://www.perceive.net/schemas/relationship/">http://www.perceive.net/schemas/relationship/</a> .</p>
<p><#green-goblin>
rel:enemyOf <#spiderman> ;
a foaf:Person ; # in the context of the Marvel universe
foaf:name “Green Goblin” .</p>
<p><#spiderman>
rel:enemyOf <#green-goblin> ;
a foaf:Person ;
foaf:name “Spiderman”, “Человек-паук”@ru .
```</p></li>
</ul>
Which is... interesting.
The second issue appears when the code block has no blank lines. It gets rendered, but somehow interpreted as an indented code block(?), leading to the info string being part of the code itself. As an example,
- This is an item followed by some RDF
```turtle
<#green-goblin>
rel:enemyOf <#spiderman> ;
a foaf:Person ; # in the context of the Marvel universe
foaf:name "Green Goblin" .
```
gets rendered as:
<ul>
<li>This is an item followed by some RDF
<code>turtle
<#green-goblin>
rel:enemyOf <#spiderman> ;
a foaf:Person ; # in the context of the Marvel universe
foaf:name "Green Goblin" .
</code></li>
</ul>
Both of these issues go away if a blank line is put in between the list item and the the code block. Nonetheless, md2html (from md4c), renders the two cases correctly (note how the p element is missing; with the blank line, instead, it's present):
<ul>
<li>This is an item followed by some RDF<pre><code class="language-turtle"><#green-goblin>
rel:enemyOf <#spiderman> ;
a foaf:Person ; # in the context of the Marvel universe
foaf:name "Green Goblin" .
</code></pre>
</li>
</ul>
Hi (again)!
This is a similar issue to #174 (maybe), but as it is more complex I decided to open it as a separate one. Feel free to merge them back :)
The first issue is that if a fenced code block inside a list item contains a black line, the whole code block seems to get ignored. As an example,
gets rendered as:
Which is... interesting.
The second issue appears when the code block has no blank lines. It gets rendered, but somehow interpreted as an indented code block(?), leading to the info string being part of the code itself. As an example,
gets rendered as:
Both of these issues go away if a blank line is put in between the list item and the the code block. Nonetheless, md2html (from md4c), renders the two cases correctly (note how the
pelement is missing; with the blank line, instead, it's present):