fix #16164, render doc comments (#16230)

* fix #16164, render doc comments

* add a test
This commit is contained in:
Miran 2020-12-02 15:36:08 +01:00 • committed by GitHub
commit c0b76ef3cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 2 deletions

View file

@ -120,7 +120,9 @@ function main() {
<li>
<a class="reference reference-toplevel" href="#8" id="58">Vars</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#aVariable"
<li><a class="reference" href="#someVariable"
title="someVariable: bool">someVariable</a></li>
<li><a class="reference" href="#aVariable"
title="aVariable: array[1, int]">aVariable</a></li>
</ul>
@ -427,6 +429,13 @@ Some shapes.
<div class="section" id="8">
<h1><a class="toc-backref" href="#8">Vars</a></h1>
<dl class="item">
<a id="someVariable"></a>
<dt><pre><a href="testproject.html#someVariable"><span class="Identifier">someVariable</span></a><span class="Other">:</span> <span class="Identifier">bool</span></pre></dt>
<dd>
This should be visible.
</dd>
<a id="aVariable"></a>
<dt><pre><a href="testproject.html#aVariable"><span class="Identifier">aVariable</span></a><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">1</span><span class="Other">,</span> <span class="Identifier">int</span><span class="Other">]</span></pre></dt>
<dd>