bytesparadise / libasciidoc

A Golang library for processing Asciidoc files.
Apache License 2.0
205 stars 25 forks source link

Section headers do not render inline formatting #1093

Closed pjanx closed 2 years ago

pjanx commented 2 years ago
= A
:toc:

== `B`
C
<div id="toc" class="toc">
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_b">`B`</a></li>
</ul>
</div>
<div class="sect1">
<h2 id="_b">`B`</h2>
<div class="sectionbody">
<div class="paragraph">
<p>C</p>
</div>
</div>
</div>

Asciidoctor

<div id="toc" class="toc">
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_b"><code>B</code></a></li>
</ul>
</div>
<div class="sect1">
<h2 id="_b"><code>B</code></h2>
<div class="sectionbody">
<div class="paragraph">
<p>C</p>
</div>
</div>
</div>
pjanx commented 2 years ago

This is a regression. Or at least I think so, not so sure anymore about section headers alone.

xcoulon commented 2 years ago

yeah, not sure either, but I will take a look!