docgen: support markdown link syntax; enable markdown extensions
This commit is contained in:
parent
c3d80647ae
commit
5ef5dc86c5
6 changed files with 37 additions and 4 deletions
|
|
@ -28,5 +28,5 @@ proc test(dir: string; fixup = false) =
|
|||
echo "SUCCESS: files identical: ", produced
|
||||
removeDir(dir / "htmldocs")
|
||||
|
||||
test("nimdoc/testproject", false)
|
||||
test("nimdoc/testproject", defined(fixup))
|
||||
if failures > 0: quit($failures & " failures occurred.")
|
||||
|
|
|
|||
|
|
@ -1369,7 +1369,7 @@ The enum B.
|
|||
<a id="someFunc,"></a>
|
||||
<dt><pre><span class="Keyword">func</span> <span class="Identifier">someFunc</span><span class="Other">(</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
|
||||
<dd>
|
||||
My someFunc.
|
||||
My someFunc. Stuff in <tt class="docutils literal"><span class="pre">quotes</span></tt> here. <a class="reference external" href="https://nim-lang.org">Some link</a>
|
||||
|
||||
</dd>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,4 +23,6 @@ template bEnum*(): untyped =
|
|||
|
||||
func someFunc*() =
|
||||
## My someFunc.
|
||||
## Stuff in `quotes` here.
|
||||
## [Some link](https://nim-lang.org)
|
||||
discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue