summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-01 21:49:14 +0000
committerKarl Berry <karl@freefriends.org>2022-03-01 21:49:14 +0000
commit64d47978d293b786a19dd5881a3eb81117bd34bb (patch)
treeefc4f219119f12d4d5f00e04953336d49cb095ce /Master
parent3cf84fd68c1739227f31a3ccb629e950415d47ab (diff)
markdown (1mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62317 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/context/third/markdown/examples/context-mkii.tex2
-rw-r--r--Master/texmf-dist/doc/context/third/markdown/examples/context-mkiv.tex2
-rw-r--r--Master/texmf-dist/doc/generic/markdown/VERSION2
-rw-r--r--Master/texmf-dist/doc/generic/markdown/markdown.html4723
-rw-r--r--Master/texmf-dist/doc/generic/markdown/markdown.pdfbin743629 -> 761101 bytes
-rw-r--r--Master/texmf-dist/doc/latex/markdown/examples/latex.tex21
-rw-r--r--Master/texmf-dist/scripts/markdown/markdown-cli.lua7
-rw-r--r--Master/texmf-dist/source/generic/markdown/docstrip.cfg2
-rw-r--r--Master/texmf-dist/source/generic/markdown/markdown.dtx1281
-rw-r--r--Master/texmf-dist/tex/context/third/markdown/t-markdown.tex2
-rw-r--r--Master/texmf-dist/tex/generic/markdown/markdown.tex35
-rw-r--r--Master/texmf-dist/tex/latex/markdown/markdown.sty192
-rw-r--r--Master/texmf-dist/tex/luatex/markdown/markdown.lua196
13 files changed, 3803 insertions, 2662 deletions
diff --git a/Master/texmf-dist/doc/context/third/markdown/examples/context-mkii.tex b/Master/texmf-dist/doc/context/third/markdown/examples/context-mkii.tex
index b5aaa0e04e8..19a7fb2931d 100644
--- a/Master/texmf-dist/doc/context/third/markdown/examples/context-mkii.tex
+++ b/Master/texmf-dist/doc/context/third/markdown/examples/context-mkii.tex
@@ -35,7 +35,9 @@
% Typeset the document `example.tex` that we prepared separately using the
% Lua command-line interface and that contains a plain TeX representation
% of the document `example.md`.
+\catcode`\%=12\relax
\doiffileelse{./example.tex}{\input example}{}
+\catcode`\%=14\relax
% Typeset inline markdown text.
\startmarkdown
diff --git a/Master/texmf-dist/doc/context/third/markdown/examples/context-mkiv.tex b/Master/texmf-dist/doc/context/third/markdown/examples/context-mkiv.tex
index 65d1d054683..825632c5aa7 100644
--- a/Master/texmf-dist/doc/context/third/markdown/examples/context-mkiv.tex
+++ b/Master/texmf-dist/doc/context/third/markdown/examples/context-mkiv.tex
@@ -47,7 +47,9 @@
% Typeset the document `example.tex` that we prepared separately using the
% Lua command-line interface and that contains a plain TeX representation
% of the document `example.md`.
+\catcode`\%=12\relax
\doiffileelse{./example.tex}{\input example}{}
+\catcode`\%=14\relax
% Typeset inline markdown text.
\startmarkdown
diff --git a/Master/texmf-dist/doc/generic/markdown/VERSION b/Master/texmf-dist/doc/generic/markdown/VERSION
index 6e699bbb013..7d641125a99 100644
--- a/Master/texmf-dist/doc/generic/markdown/VERSION
+++ b/Master/texmf-dist/doc/generic/markdown/VERSION
@@ -1 +1 @@
-2.13.0-0-g1f680a8 (2022/01/30)
+2.14.0-0-g9635d76 (2022/02/28)
diff --git a/Master/texmf-dist/doc/generic/markdown/markdown.html b/Master/texmf-dist/doc/generic/markdown/markdown.html
index 3576b6edaf3..1ea4c65f352 100644
--- a/Master/texmf-dist/doc/generic/markdown/markdown.html
+++ b/Master/texmf-dist/doc/generic/markdown/markdown.html
@@ -82,7 +82,7 @@
<header id="title-block-header">
<h1 class="title">Markdown Package User Manual</h1>
<p class="author">Vít Novotný</p>
-<p class="date">2.13.0-0-g1f680a8 (2022/01/30)</p>
+<p class="date">2.14.0-0-g9635d76 (2022/02/28)</p>
</header>
<nav id="TOC" role="doc-toc">
<ul>
@@ -119,8 +119,8 @@
</ul></li>
<li><a href="#markdown-tokens"><span class="toc-section-number">2.3</span> Markdown Tokens</a>
<ul>
-<li><a href="#token-renderers"><span class="toc-section-number">2.3.1</span> Token Renderers</a></li>
-<li><a href="#token-renderer-prototypes"><span class="toc-section-number">2.3.2</span> Token Renderer Prototypes</a></li>
+<li><a href="#texrenderersuser"><span class="toc-section-number">2.3.1</span> Token Renderers</a></li>
+<li><a href="#texrendererprototypes"><span class="toc-section-number">2.3.2</span> Token Renderer Prototypes</a></li>
</ul></li>
</ul></li>
</ul>
@@ -1266,7 +1266,7 @@
<p>The TeXbook [1, p.·123·and·130] is good.</p>
<p>The TeXbook [1, p. 123 and 130] is good.</p>
<h3 id="references">References</h3>
-<p>[1] Donald·Ervin Knuth. <em>The TeXbook, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p>
+<p><a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">1</a> Donald·Ervin Knuth. <em>The TeXbook, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p>
</blockquote>
<h4 data-number="2.2.1.8" id="option-citations"><span class="header-section-number">2.2.1.8</span> Option <code>citations</code></h4>
<dl>
@@ -1325,9 +1325,9 @@
<span id="cb126-4"><a href="#cb126-4" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
-<p>The TeXbook [1, p.·123 and 130] was written by Knuth [1].</p>
+<p>The TeXbook [1, p.·123 and 130] was written by Knuth <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">1</a>.</p>
<h3 id="references-1">References</h3>
-<p>[1] Donald Ervin Knuth. <em>The <span class="tex">T<sub>e</sub>X</span>book, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p>
+<p><a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">1</a> Donald Ervin Knuth. <em>The <span class="tex">T<sub>e</sub>X</span>book, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p>
</blockquote>
<h4 data-number="2.2.1.9" id="option-codespans"><span class="header-section-number">2.2.1.9</span> Option <code>codeSpans</code></h4>
<dl>
@@ -2321,7 +2321,7 @@ Thomas,Edison,1847</code></pre>
<dt><code>html</code> (default value: <code>false</code>)</dt>
<dd><dl>
<dt>true</dt>
-<dd><p>Enable the recognition of HTML tags, block elements, comments, HTML instructions, and entities in the input. Tags, block elements (along with contents), HTML instructions, and comments will be ignored and HTML entities will be replaced with the corresponding Unicode codepoints.</p>
+<dd><p>Enable the recognition of inline HTML tags, block HTML elements, HTML comments, HTML instructions, and entities in the input. Inline HTML tags, block HTML elements and HTML comments will be rendered, HTML instructions will be ignored, and HTML entities will be replaced with the corresponding Unicode codepoints.</p>
</dd>
</dl>
</dd>
@@ -2901,7 +2901,56 @@ Thomas,Edison,1847</code></pre>
</dl>
</dd>
</dl>
-<h4 data-number="2.2.1.27" id="option-shiftheadings"><span class="header-section-number">2.2.1.27</span> Option <code>shiftHeadings</code></h4>
+<h4 data-number="2.2.1.27" id="option-relativereferences"><span class="header-section-number">2.2.1.27</span> Option <code>relativeReferences</code></h4>
+<dl>
+<dt><code>relativeReferences</code> (default value: <code>false</code>)</dt>
+<dd><dl>
+<dt>true</dt>
+<dd><p>Enable <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">relative references</a> in autolinks:</p>
+<div class="sourceCode" id="cb259"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb259-1"><a href="#cb259-1" aria-hidden="true"></a>I conclude in Section &lt;#conclusion&gt;.</span>
+<span id="cb259-2"><a href="#cb259-2" aria-hidden="true"></a></span>
+<span id="cb259-3"><a href="#cb259-3" aria-hidden="true"></a>Conclusion {#conclusion}</span>
+<span id="cb259-4"><a href="#cb259-4" aria-hidden="true"></a><span class="fu">==========</span></span>
+<span id="cb259-5"><a href="#cb259-5" aria-hidden="true"></a>In this paper, we have discovered that most</span>
+<span id="cb259-6"><a href="#cb259-6" aria-hidden="true"></a>grandmas would rather eat dinner with their</span>
+<span id="cb259-7"><a href="#cb259-7" aria-hidden="true"></a>grandchildren than get eaten. Begone, wolf!</span></code></pre></div>
+</dd>
+</dl>
+</dd>
+<dd><dl>
+<dt>false</dt>
+<dd><p>Disable relative references in autolinks.</p>
+</dd>
+</dl>
+</dd>
+</dl>
+<h5 class="unnumbered" data-number="" id="latex-example-22"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb260"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb260-1"><a href="#cb260-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb260-2"><a href="#cb260-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[headerAttributes, relativeReferences]{<span class="ex">markdown</span>}</span>
+<span id="cb260-3"><a href="#cb260-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb260-4"><a href="#cb260-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb260-5"><a href="#cb260-5" aria-hidden="true"></a></span>
+<span id="cb260-6"><a href="#cb260-6" aria-hidden="true"></a>I conclude in Section &lt;#conclusion&gt;.</span>
+<span id="cb260-7"><a href="#cb260-7" aria-hidden="true"></a></span>
+<span id="cb260-8"><a href="#cb260-8" aria-hidden="true"></a>Conclusion {#conclusion}</span>
+<span id="cb260-9"><a href="#cb260-9" aria-hidden="true"></a>==========</span>
+<span id="cb260-10"><a href="#cb260-10" aria-hidden="true"></a>In this paper, we have discovered that most</span>
+<span id="cb260-11"><a href="#cb260-11" aria-hidden="true"></a>grandmas would rather eat dinner with their</span>
+<span id="cb260-12"><a href="#cb260-12" aria-hidden="true"></a>grandchildren than get eaten. Begone, wolf!</span>
+<span id="cb260-13"><a href="#cb260-13" aria-hidden="true"></a></span>
+<span id="cb260-14"><a href="#cb260-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb260-15"><a href="#cb260-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX twice from the terminal:</p>
+<div class="sourceCode" id="cb261"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb261-1"><a href="#cb261-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
+<span id="cb261-2"><a href="#cb261-2" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
+<blockquote>
+<p>I conclude in Section 1.</p>
+<h1 id="conclusion">1. Conclusion</h1>
+<p>In this paper, we have discovered that most grandmas would rather eat dinner with their grandchildren than get eaten. Begone, wolf!</p>
+</blockquote>
+<h4 data-number="2.2.1.28" id="option-shiftheadings"><span class="header-section-number">2.2.1.28</span> Option <code>shiftHeadings</code></h4>
<dl>
<dt><code>shiftHeadings</code> (default value: <code>0</code>)</dt>
<dd><p>All headings will be shifted by ⟨<em>shift amount</em>⟩, which can be both positive and negative. Headings will not be shifted beyond level 6 or below level 1. Instead, those headings will be shifted to level 6, when ⟨<em>shift amount</em>⟩ is positive, and to level 1, when ⟨<em>shift amount</em>⟩ is negative.</p>
@@ -2909,48 +2958,48 @@ Thomas,Edison,1847</code></pre>
</dl>
<h5 class="unnumbered" data-number="" id="plain-tex-example-11">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>example.md</code> with the following content:</p>
-<div class="sourceCode" id="cb259"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb259-1"><a href="#cb259-1" aria-hidden="true"></a><span class="fu">## A section</span></span></code></pre></div>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb260"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb260-1"><a href="#cb260-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb260-2"><a href="#cb260-2" aria-hidden="true"></a></span>
-<span id="cb260-3"><a href="#cb260-3" aria-hidden="true"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span>
-<span id="cb260-4"><a href="#cb260-4" aria-hidden="true"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span>
-<span id="cb260-5"><a href="#cb260-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span>
-<span id="cb260-6"><a href="#cb260-6" aria-hidden="true"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span>
-<span id="cb260-7"><a href="#cb260-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span>
-<span id="cb260-8"><a href="#cb260-8" aria-hidden="true"></a></span>
-<span id="cb260-9"><a href="#cb260-9" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{-1}</span>
-<span id="cb260-10"><a href="#cb260-10" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb260-11"><a href="#cb260-11" aria-hidden="true"></a></span>
-<span id="cb260-12"><a href="#cb260-12" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{0}</span>
-<span id="cb260-13"><a href="#cb260-13" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb260-14"><a href="#cb260-14" aria-hidden="true"></a></span>
-<span id="cb260-15"><a href="#cb260-15" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{+1}</span>
-<span id="cb260-16"><a href="#cb260-16" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb260-17"><a href="#cb260-17" aria-hidden="true"></a></span>
-<span id="cb260-18"><a href="#cb260-18" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb261"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb261-1"><a href="#cb261-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb262"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb262-1"><a href="#cb262-1" aria-hidden="true"></a><span class="fu">## A section</span></span></code></pre></div>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb263"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb263-1"><a href="#cb263-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb263-2"><a href="#cb263-2" aria-hidden="true"></a></span>
+<span id="cb263-3"><a href="#cb263-3" aria-hidden="true"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span>
+<span id="cb263-4"><a href="#cb263-4" aria-hidden="true"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span>
+<span id="cb263-5"><a href="#cb263-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span>
+<span id="cb263-6"><a href="#cb263-6" aria-hidden="true"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span>
+<span id="cb263-7"><a href="#cb263-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span>
+<span id="cb263-8"><a href="#cb263-8" aria-hidden="true"></a></span>
+<span id="cb263-9"><a href="#cb263-9" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{-1}</span>
+<span id="cb263-10"><a href="#cb263-10" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb263-11"><a href="#cb263-11" aria-hidden="true"></a></span>
+<span id="cb263-12"><a href="#cb263-12" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{0}</span>
+<span id="cb263-13"><a href="#cb263-13" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb263-14"><a href="#cb263-14" aria-hidden="true"></a></span>
+<span id="cb263-15"><a href="#cb263-15" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{+1}</span>
+<span id="cb263-16"><a href="#cb263-16" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb263-17"><a href="#cb263-17" aria-hidden="true"></a></span>
+<span id="cb263-18"><a href="#cb263-18" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb264"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb264-1"><a href="#cb264-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<h1 id="a-section">A section</h1>
<h2 id="a-section-1">A section</h2>
<h3 id="a-section-2">A section</h3>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-22"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-23"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb262"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb262-1"><a href="#cb262-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb262-2"><a href="#cb262-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb262-3"><a href="#cb262-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{example.md}</span>
-<span id="cb262-4"><a href="#cb262-4" aria-hidden="true"></a>## A section</span>
-<span id="cb262-5"><a href="#cb262-5" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span>
-<span id="cb262-6"><a href="#cb262-6" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb262-7"><a href="#cb262-7" aria-hidden="true"></a><span class="fu">\markdownInput</span>[shiftHeadings=-1]{example.md}</span>
-<span id="cb262-8"><a href="#cb262-8" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb262-9"><a href="#cb262-9" aria-hidden="true"></a><span class="fu">\markdownInput</span>[shiftHeadings=+1]{example.md}</span>
-<span id="cb262-10"><a href="#cb262-10" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb265"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb265-1"><a href="#cb265-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb265-2"><a href="#cb265-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb265-3"><a href="#cb265-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{example.md}</span>
+<span id="cb265-4"><a href="#cb265-4" aria-hidden="true"></a>## A section</span>
+<span id="cb265-5"><a href="#cb265-5" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span>
+<span id="cb265-6"><a href="#cb265-6" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb265-7"><a href="#cb265-7" aria-hidden="true"></a><span class="fu">\markdownInput</span>[shiftHeadings=-1]{example.md}</span>
+<span id="cb265-8"><a href="#cb265-8" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb265-9"><a href="#cb265-9" aria-hidden="true"></a><span class="fu">\markdownInput</span>[shiftHeadings=+1]{example.md}</span>
+<span id="cb265-10"><a href="#cb265-10" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb263"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb263-1"><a href="#cb263-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb266"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb266-1"><a href="#cb266-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<h1 id="a-section-3">A section</h1>
@@ -2959,30 +3008,30 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-19">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>example.md</code> with the following content:</p>
-<div class="sourceCode" id="cb264"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb264-1"><a href="#cb264-1" aria-hidden="true"></a><span class="fu">## A section</span></span></code></pre></div>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb265"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb265-1"><a href="#cb265-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb265-2"><a href="#cb265-2" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb265-3"><a href="#cb265-3" aria-hidden="true"></a></span>
-<span id="cb265-4"><a href="#cb265-4" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{-1}</span>
-<span id="cb265-5"><a href="#cb265-5" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb265-6"><a href="#cb265-6" aria-hidden="true"></a></span>
-<span id="cb265-7"><a href="#cb265-7" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{0}</span>
-<span id="cb265-8"><a href="#cb265-8" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb265-9"><a href="#cb265-9" aria-hidden="true"></a></span>
-<span id="cb265-10"><a href="#cb265-10" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{+1}</span>
-<span id="cb265-11"><a href="#cb265-11" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb265-12"><a href="#cb265-12" aria-hidden="true"></a></span>
-<span id="cb265-13"><a href="#cb265-13" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb267"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb267-1"><a href="#cb267-1" aria-hidden="true"></a><span class="fu">## A section</span></span></code></pre></div>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb268"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb268-1"><a href="#cb268-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb268-2"><a href="#cb268-2" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb268-3"><a href="#cb268-3" aria-hidden="true"></a></span>
+<span id="cb268-4"><a href="#cb268-4" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{-1}</span>
+<span id="cb268-5"><a href="#cb268-5" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb268-6"><a href="#cb268-6" aria-hidden="true"></a></span>
+<span id="cb268-7"><a href="#cb268-7" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{0}</span>
+<span id="cb268-8"><a href="#cb268-8" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb268-9"><a href="#cb268-9" aria-hidden="true"></a></span>
+<span id="cb268-10"><a href="#cb268-10" aria-hidden="true"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{+1}</span>
+<span id="cb268-11"><a href="#cb268-11" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb268-12"><a href="#cb268-12" aria-hidden="true"></a></span>
+<span id="cb268-13"><a href="#cb268-13" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb266"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb266-1"><a href="#cb266-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb269"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb269-1"><a href="#cb269-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<h1 id="a-section-6">A section</h1>
<h2 id="a-section-7">A section</h2>
<h3 id="a-section-8">A section</h3>
</blockquote>
-<h4 data-number="2.2.1.28" id="slice"><span class="header-section-number">2.2.1.28</span> Option <code>slice</code></h4>
+<h4 data-number="2.2.1.29" id="slice"><span class="header-section-number">2.2.1.29</span> Option <code>slice</code></h4>
<dl>
<dt><code>slice</code> (default value: <code>^ $</code>)</dt>
<dd><p>Two space-separated selectors that specify the slice of a document that will be processed, whereas the remainder of the document will be ignored. The following selectors are recognized:</p>
@@ -2998,39 +3047,39 @@ Thomas,Edison,1847</code></pre>
</dl>
<h5 class="unnumbered" data-number="" id="plain-tex-example-12">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>hamlet.md</code> with the following content:</p>
-<div class="sourceCode" id="cb267"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb267-1"><a href="#cb267-1" aria-hidden="true"></a><span class="fu"># The Tragedy of Hamlet</span></span>
-<span id="cb267-2"><a href="#cb267-2" aria-hidden="true"></a>Shakespeare&#39;s longest play.</span>
-<span id="cb267-3"><a href="#cb267-3" aria-hidden="true"></a></span>
-<span id="cb267-4"><a href="#cb267-4" aria-hidden="true"></a><span class="fu">## Act III {#act-3}</span></span>
-<span id="cb267-5"><a href="#cb267-5" aria-hidden="true"></a>Hamlet kills Polonius.</span>
-<span id="cb267-6"><a href="#cb267-6" aria-hidden="true"></a></span>
-<span id="cb267-7"><a href="#cb267-7" aria-hidden="true"></a><span class="fu">## Act V {#act-5}</span></span>
-<span id="cb267-8"><a href="#cb267-8" aria-hidden="true"></a>Hamlet dies.</span>
-<span id="cb267-9"><a href="#cb267-9" aria-hidden="true"></a></span>
-<span id="cb267-10"><a href="#cb267-10" aria-hidden="true"></a><span class="fu">## Act I {#act-1}</span></span>
-<span id="cb267-11"><a href="#cb267-11" aria-hidden="true"></a>Hamlet talks to ghost.</span></code></pre></div>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb268"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb268-1"><a href="#cb268-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb268-2"><a href="#cb268-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHeaderAttributes</span>{true}</span>
-<span id="cb268-3"><a href="#cb268-3" aria-hidden="true"></a></span>
-<span id="cb268-4"><a href="#cb268-4" aria-hidden="true"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span>
-<span id="cb268-5"><a href="#cb268-5" aria-hidden="true"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span>
-<span id="cb268-6"><a href="#cb268-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span>
-<span id="cb268-7"><a href="#cb268-7" aria-hidden="true"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span>
-<span id="cb268-8"><a href="#cb268-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span>
-<span id="cb268-9"><a href="#cb268-9" aria-hidden="true"></a></span>
-<span id="cb268-10"><a href="#cb268-10" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{^ ^act-3}</span>
-<span id="cb268-11"><a href="#cb268-11" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
-<span id="cb268-12"><a href="#cb268-12" aria-hidden="true"></a></span>
-<span id="cb268-13"><a href="#cb268-13" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-1}</span>
-<span id="cb268-14"><a href="#cb268-14" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
-<span id="cb268-15"><a href="#cb268-15" aria-hidden="true"></a></span>
-<span id="cb268-16"><a href="#cb268-16" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-3 act-5}</span>
-<span id="cb268-17"><a href="#cb268-17" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
-<span id="cb268-18"><a href="#cb268-18" aria-hidden="true"></a></span>
-<span id="cb268-19"><a href="#cb268-19" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb269"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb269-1"><a href="#cb269-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb270"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb270-1"><a href="#cb270-1" aria-hidden="true"></a><span class="fu"># The Tragedy of Hamlet</span></span>
+<span id="cb270-2"><a href="#cb270-2" aria-hidden="true"></a>Shakespeare&#39;s longest play.</span>
+<span id="cb270-3"><a href="#cb270-3" aria-hidden="true"></a></span>
+<span id="cb270-4"><a href="#cb270-4" aria-hidden="true"></a><span class="fu">## Act III {#act-3}</span></span>
+<span id="cb270-5"><a href="#cb270-5" aria-hidden="true"></a>Hamlet kills Polonius.</span>
+<span id="cb270-6"><a href="#cb270-6" aria-hidden="true"></a></span>
+<span id="cb270-7"><a href="#cb270-7" aria-hidden="true"></a><span class="fu">## Act V {#act-5}</span></span>
+<span id="cb270-8"><a href="#cb270-8" aria-hidden="true"></a>Hamlet dies.</span>
+<span id="cb270-9"><a href="#cb270-9" aria-hidden="true"></a></span>
+<span id="cb270-10"><a href="#cb270-10" aria-hidden="true"></a><span class="fu">## Act I {#act-1}</span></span>
+<span id="cb270-11"><a href="#cb270-11" aria-hidden="true"></a>Hamlet talks to ghost.</span></code></pre></div>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb271"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb271-1"><a href="#cb271-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb271-2"><a href="#cb271-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHeaderAttributes</span>{true}</span>
+<span id="cb271-3"><a href="#cb271-3" aria-hidden="true"></a></span>
+<span id="cb271-4"><a href="#cb271-4" aria-hidden="true"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span>
+<span id="cb271-5"><a href="#cb271-5" aria-hidden="true"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span>
+<span id="cb271-6"><a href="#cb271-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span>
+<span id="cb271-7"><a href="#cb271-7" aria-hidden="true"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span>
+<span id="cb271-8"><a href="#cb271-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span>
+<span id="cb271-9"><a href="#cb271-9" aria-hidden="true"></a></span>
+<span id="cb271-10"><a href="#cb271-10" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{^ ^act-3}</span>
+<span id="cb271-11"><a href="#cb271-11" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
+<span id="cb271-12"><a href="#cb271-12" aria-hidden="true"></a></span>
+<span id="cb271-13"><a href="#cb271-13" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-1}</span>
+<span id="cb271-14"><a href="#cb271-14" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
+<span id="cb271-15"><a href="#cb271-15" aria-hidden="true"></a></span>
+<span id="cb271-16"><a href="#cb271-16" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-3 act-5}</span>
+<span id="cb271-17"><a href="#cb271-17" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
+<span id="cb271-18"><a href="#cb271-18" aria-hidden="true"></a></span>
+<span id="cb271-19"><a href="#cb271-19" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb272"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb272-1"><a href="#cb272-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<h1 id="the-tragedy-of-hamlet">The Tragedy of Hamlet</h1>
@@ -3042,30 +3091,30 @@ Thomas,Edison,1847</code></pre>
<h2 id="act-v">Act V</h2>
<p>Hamlet dies.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-23"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-24"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb270"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb270-1"><a href="#cb270-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb270-2"><a href="#cb270-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span>
-<span id="cb270-3"><a href="#cb270-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{hamlet.md}</span>
-<span id="cb270-4"><a href="#cb270-4" aria-hidden="true"></a># The Tragedy of Hamlet</span>
-<span id="cb270-5"><a href="#cb270-5" aria-hidden="true"></a>Shakespeare&#39;s longest play.</span>
-<span id="cb270-6"><a href="#cb270-6" aria-hidden="true"></a></span>
-<span id="cb270-7"><a href="#cb270-7" aria-hidden="true"></a>## Act III {#act-3}</span>
-<span id="cb270-8"><a href="#cb270-8" aria-hidden="true"></a>Hamlet kills Polonius.</span>
-<span id="cb270-9"><a href="#cb270-9" aria-hidden="true"></a></span>
-<span id="cb270-10"><a href="#cb270-10" aria-hidden="true"></a>## Act V {#act-5}</span>
-<span id="cb270-11"><a href="#cb270-11" aria-hidden="true"></a>Hamlet dies.</span>
-<span id="cb270-12"><a href="#cb270-12" aria-hidden="true"></a></span>
-<span id="cb270-13"><a href="#cb270-13" aria-hidden="true"></a>## Act I {#act-1}</span>
-<span id="cb270-14"><a href="#cb270-14" aria-hidden="true"></a>Hamlet talks to ghost.</span>
-<span id="cb270-15"><a href="#cb270-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span>
-<span id="cb270-16"><a href="#cb270-16" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb270-17"><a href="#cb270-17" aria-hidden="true"></a><span class="fu">\markdownInput</span>[slice=^ ^act-3]{hamlet.md}</span>
-<span id="cb270-18"><a href="#cb270-18" aria-hidden="true"></a><span class="fu">\markdownInput</span>[slice=act-1]{hamlet.md}</span>
-<span id="cb270-19"><a href="#cb270-19" aria-hidden="true"></a><span class="fu">\markdownInput</span>[slice=act-3 act-5]{hamlet.md}</span>
-<span id="cb270-20"><a href="#cb270-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb271"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb271-1"><a href="#cb271-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb273"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb273-1"><a href="#cb273-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb273-2"><a href="#cb273-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span>
+<span id="cb273-3"><a href="#cb273-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{hamlet.md}</span>
+<span id="cb273-4"><a href="#cb273-4" aria-hidden="true"></a># The Tragedy of Hamlet</span>
+<span id="cb273-5"><a href="#cb273-5" aria-hidden="true"></a>Shakespeare&#39;s longest play.</span>
+<span id="cb273-6"><a href="#cb273-6" aria-hidden="true"></a></span>
+<span id="cb273-7"><a href="#cb273-7" aria-hidden="true"></a>## Act III {#act-3}</span>
+<span id="cb273-8"><a href="#cb273-8" aria-hidden="true"></a>Hamlet kills Polonius.</span>
+<span id="cb273-9"><a href="#cb273-9" aria-hidden="true"></a></span>
+<span id="cb273-10"><a href="#cb273-10" aria-hidden="true"></a>## Act V {#act-5}</span>
+<span id="cb273-11"><a href="#cb273-11" aria-hidden="true"></a>Hamlet dies.</span>
+<span id="cb273-12"><a href="#cb273-12" aria-hidden="true"></a></span>
+<span id="cb273-13"><a href="#cb273-13" aria-hidden="true"></a>## Act I {#act-1}</span>
+<span id="cb273-14"><a href="#cb273-14" aria-hidden="true"></a>Hamlet talks to ghost.</span>
+<span id="cb273-15"><a href="#cb273-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span>
+<span id="cb273-16"><a href="#cb273-16" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb273-17"><a href="#cb273-17" aria-hidden="true"></a><span class="fu">\markdownInput</span>[slice=^ ^act-3]{hamlet.md}</span>
+<span id="cb273-18"><a href="#cb273-18" aria-hidden="true"></a><span class="fu">\markdownInput</span>[slice=act-1]{hamlet.md}</span>
+<span id="cb273-19"><a href="#cb273-19" aria-hidden="true"></a><span class="fu">\markdownInput</span>[slice=act-3 act-5]{hamlet.md}</span>
+<span id="cb273-20"><a href="#cb273-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb274"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb274-1"><a href="#cb274-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<h1 id="the-tragedy-of-hamlet-1">The Tragedy of Hamlet</h1>
@@ -3079,34 +3128,34 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-20">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>hamlet.md</code> with the following content:</p>
-<div class="sourceCode" id="cb272"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb272-1"><a href="#cb272-1" aria-hidden="true"></a><span class="fu"># The Tragedy of Hamlet</span></span>
-<span id="cb272-2"><a href="#cb272-2" aria-hidden="true"></a>Shakespeare&#39;s longest play.</span>
-<span id="cb272-3"><a href="#cb272-3" aria-hidden="true"></a></span>
-<span id="cb272-4"><a href="#cb272-4" aria-hidden="true"></a><span class="fu">## Act III {#act-3}</span></span>
-<span id="cb272-5"><a href="#cb272-5" aria-hidden="true"></a>Hamlet kills Polonius.</span>
-<span id="cb272-6"><a href="#cb272-6" aria-hidden="true"></a></span>
-<span id="cb272-7"><a href="#cb272-7" aria-hidden="true"></a><span class="fu">## Act V {#act-5}</span></span>
-<span id="cb272-8"><a href="#cb272-8" aria-hidden="true"></a>Hamlet dies.</span>
-<span id="cb272-9"><a href="#cb272-9" aria-hidden="true"></a></span>
-<span id="cb272-10"><a href="#cb272-10" aria-hidden="true"></a><span class="fu">## Act I {#act-1}</span></span>
-<span id="cb272-11"><a href="#cb272-11" aria-hidden="true"></a>Hamlet talks to ghost.</span></code></pre></div>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb273"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb273-1"><a href="#cb273-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb273-2"><a href="#cb273-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHeaderAttributes</span>{true}</span>
-<span id="cb273-3"><a href="#cb273-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb273-4"><a href="#cb273-4" aria-hidden="true"></a></span>
-<span id="cb273-5"><a href="#cb273-5" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{^ ^act-3}</span>
-<span id="cb273-6"><a href="#cb273-6" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
-<span id="cb273-7"><a href="#cb273-7" aria-hidden="true"></a></span>
-<span id="cb273-8"><a href="#cb273-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-1}</span>
-<span id="cb273-9"><a href="#cb273-9" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
-<span id="cb273-10"><a href="#cb273-10" aria-hidden="true"></a></span>
-<span id="cb273-11"><a href="#cb273-11" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-3 act-5}</span>
-<span id="cb273-12"><a href="#cb273-12" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
-<span id="cb273-13"><a href="#cb273-13" aria-hidden="true"></a></span>
-<span id="cb273-14"><a href="#cb273-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb274"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb274-1"><a href="#cb274-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb275"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb275-1"><a href="#cb275-1" aria-hidden="true"></a><span class="fu"># The Tragedy of Hamlet</span></span>
+<span id="cb275-2"><a href="#cb275-2" aria-hidden="true"></a>Shakespeare&#39;s longest play.</span>
+<span id="cb275-3"><a href="#cb275-3" aria-hidden="true"></a></span>
+<span id="cb275-4"><a href="#cb275-4" aria-hidden="true"></a><span class="fu">## Act III {#act-3}</span></span>
+<span id="cb275-5"><a href="#cb275-5" aria-hidden="true"></a>Hamlet kills Polonius.</span>
+<span id="cb275-6"><a href="#cb275-6" aria-hidden="true"></a></span>
+<span id="cb275-7"><a href="#cb275-7" aria-hidden="true"></a><span class="fu">## Act V {#act-5}</span></span>
+<span id="cb275-8"><a href="#cb275-8" aria-hidden="true"></a>Hamlet dies.</span>
+<span id="cb275-9"><a href="#cb275-9" aria-hidden="true"></a></span>
+<span id="cb275-10"><a href="#cb275-10" aria-hidden="true"></a><span class="fu">## Act I {#act-1}</span></span>
+<span id="cb275-11"><a href="#cb275-11" aria-hidden="true"></a>Hamlet talks to ghost.</span></code></pre></div>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb276"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb276-1"><a href="#cb276-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb276-2"><a href="#cb276-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHeaderAttributes</span>{true}</span>
+<span id="cb276-3"><a href="#cb276-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb276-4"><a href="#cb276-4" aria-hidden="true"></a></span>
+<span id="cb276-5"><a href="#cb276-5" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{^ ^act-3}</span>
+<span id="cb276-6"><a href="#cb276-6" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
+<span id="cb276-7"><a href="#cb276-7" aria-hidden="true"></a></span>
+<span id="cb276-8"><a href="#cb276-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-1}</span>
+<span id="cb276-9"><a href="#cb276-9" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
+<span id="cb276-10"><a href="#cb276-10" aria-hidden="true"></a></span>
+<span id="cb276-11"><a href="#cb276-11" aria-hidden="true"></a><span class="fu">\def\markdownOptionSlice</span>{act-3 act-5}</span>
+<span id="cb276-12"><a href="#cb276-12" aria-hidden="true"></a><span class="fu">\markdownInput</span>{hamlet.md}</span>
+<span id="cb276-13"><a href="#cb276-13" aria-hidden="true"></a></span>
+<span id="cb276-14"><a href="#cb276-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb277"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb277-1"><a href="#cb277-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<h1 id="the-tragedy-of-hamlet-2">The Tragedy of Hamlet</h1>
@@ -3118,7 +3167,7 @@ Thomas,Edison,1847</code></pre>
<h2 id="act-v-2">Act V</h2>
<p>Hamlet dies.</p>
</blockquote>
-<h4 data-number="2.2.1.29" id="option-smartellipses"><span class="header-section-number">2.2.1.29</span> Option <code>smartEllipses</code></h4>
+<h4 data-number="2.2.1.30" id="option-smartellipses"><span class="header-section-number">2.2.1.30</span> Option <code>smartEllipses</code></h4>
<dl>
<dt><code>smartEllipses</code> (default value: <code>false</code>)</dt>
<dd><dl>
@@ -3136,23 +3185,23 @@ Thomas,Edison,1847</code></pre>
</dl>
<h5 class="unnumbered" data-number="" id="lua-module-example-11">Lua Module Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb275"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb275-1"><a href="#cb275-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb275-2"><a href="#cb275-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
-<span id="cb275-3"><a href="#cb275-3" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
-<span id="cb275-4"><a href="#cb275-4" aria-hidden="true"></a><span class="fu">\directlua</span>{</span>
-<span id="cb275-5"><a href="#cb275-5" aria-hidden="true"></a> local markdown = require(&quot;markdown&quot;)</span>
-<span id="cb275-6"><a href="#cb275-6" aria-hidden="true"></a> local convert = markdown.new()</span>
-<span id="cb275-7"><a href="#cb275-7" aria-hidden="true"></a> local input = &quot;These are just three regular dots ...&quot;</span>
-<span id="cb275-8"><a href="#cb275-8" aria-hidden="true"></a> tex.sprint(convert(input)) }</span>
-<span id="cb275-9"><a href="#cb275-9" aria-hidden="true"></a><span class="fu">\par</span></span>
-<span id="cb275-10"><a href="#cb275-10" aria-hidden="true"></a><span class="fu">\directlua</span>{</span>
-<span id="cb275-11"><a href="#cb275-11" aria-hidden="true"></a> local markdown = require(&quot;markdown&quot;)</span>
-<span id="cb275-12"><a href="#cb275-12" aria-hidden="true"></a> local convert = markdown.new({smartEllipses = true})</span>
-<span id="cb275-13"><a href="#cb275-13" aria-hidden="true"></a> local input = &quot;... and this is a victorian ellipsis.&quot;</span>
-<span id="cb275-14"><a href="#cb275-14" aria-hidden="true"></a> tex.sprint(convert(input)) }</span>
-<span id="cb275-15"><a href="#cb275-15" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb278"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb278-1"><a href="#cb278-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb278-2"><a href="#cb278-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
+<span id="cb278-3"><a href="#cb278-3" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
+<span id="cb278-4"><a href="#cb278-4" aria-hidden="true"></a><span class="fu">\directlua</span>{</span>
+<span id="cb278-5"><a href="#cb278-5" aria-hidden="true"></a> local markdown = require(&quot;markdown&quot;)</span>
+<span id="cb278-6"><a href="#cb278-6" aria-hidden="true"></a> local convert = markdown.new()</span>
+<span id="cb278-7"><a href="#cb278-7" aria-hidden="true"></a> local input = &quot;These are just three regular dots ...&quot;</span>
+<span id="cb278-8"><a href="#cb278-8" aria-hidden="true"></a> tex.sprint(convert(input)) }</span>
+<span id="cb278-9"><a href="#cb278-9" aria-hidden="true"></a><span class="fu">\par</span></span>
+<span id="cb278-10"><a href="#cb278-10" aria-hidden="true"></a><span class="fu">\directlua</span>{</span>
+<span id="cb278-11"><a href="#cb278-11" aria-hidden="true"></a> local markdown = require(&quot;markdown&quot;)</span>
+<span id="cb278-12"><a href="#cb278-12" aria-hidden="true"></a> local convert = markdown.new({smartEllipses = true})</span>
+<span id="cb278-13"><a href="#cb278-13" aria-hidden="true"></a> local input = &quot;... and this is a victorian ellipsis.&quot;</span>
+<span id="cb278-14"><a href="#cb278-14" aria-hidden="true"></a> tex.sprint(convert(input)) }</span>
+<span id="cb278-15"><a href="#cb278-15" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Then, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb276"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb276-1"><a href="#cb276-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb279"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb279-1"><a href="#cb279-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>These are just three regular dots …</p>
@@ -3160,19 +3209,19 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="lua-cli-example-9">Lua CLI Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb277"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb277-1"><a href="#cb277-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb277-2"><a href="#cb277-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
-<span id="cb277-3"><a href="#cb277-3" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
-<span id="cb277-4"><a href="#cb277-4" aria-hidden="true"></a><span class="fu">\input</span> optionfalse</span>
-<span id="cb277-5"><a href="#cb277-5" aria-hidden="true"></a><span class="fu">\par</span></span>
-<span id="cb277-6"><a href="#cb277-6" aria-hidden="true"></a><span class="fu">\input</span> optiontrue</span>
-<span id="cb277-7"><a href="#cb277-7" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb280"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb280-1"><a href="#cb280-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb280-2"><a href="#cb280-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
+<span id="cb280-3"><a href="#cb280-3" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
+<span id="cb280-4"><a href="#cb280-4" aria-hidden="true"></a><span class="fu">\input</span> optionfalse</span>
+<span id="cb280-5"><a href="#cb280-5" aria-hidden="true"></a><span class="fu">\par</span></span>
+<span id="cb280-6"><a href="#cb280-6" aria-hidden="true"></a><span class="fu">\input</span> optiontrue</span>
+<span id="cb280-7"><a href="#cb280-7" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Using a text editor, create a text document named <code>content.md</code> with the following content:</p>
-<div class="sourceCode" id="cb278"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb278-1"><a href="#cb278-1" aria-hidden="true"></a>Are these just three regular dots, a victorian ellipsis, or ... ?</span></code></pre></div>
+<div class="sourceCode" id="cb281"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb281-1"><a href="#cb281-1" aria-hidden="true"></a>Are these just three regular dots, a victorian ellipsis, or ... ?</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb279"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb279-1"><a href="#cb279-1" aria-hidden="true"></a><span class="ex">texlua</span> ⟨CLI pathname⟩ -- content.md optionfalse.tex</span>
-<span id="cb279-2"><a href="#cb279-2" aria-hidden="true"></a><span class="ex">texlua</span> ⟨CLI pathname⟩ smartEllipses=true -- content.md optiontrue.tex</span>
-<span id="cb279-3"><a href="#cb279-3" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb282"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb282-1"><a href="#cb282-1" aria-hidden="true"></a><span class="ex">texlua</span> ⟨CLI pathname⟩ -- content.md optionfalse.tex</span>
+<span id="cb282-2"><a href="#cb282-2" aria-hidden="true"></a><span class="ex">texlua</span> ⟨CLI pathname⟩ smartEllipses=true -- content.md optiontrue.tex</span>
+<span id="cb282-3"><a href="#cb282-3" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>where ⟨<em>CLI pathname</em>⟩ corresponds to the location of the Lua CLI script file, such as <code>~/texmf/scripts/markdown/markdown-cli.lua</code> on UN*X systems or <code>C:\Users\</code>⟨<em>Your username</em>⟩<code>\texmf\scripts\markdown\markdown-cli.lua</code> on Windows systems. Use the command <code>kpsewhich -a markdown-cli.lua</code> to locate the Lua CLI script file using <a href="https://tug.org/kpathsea/" title="Kpathsea - TeX Users Group">Kpathsea</a>.</p>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
@@ -3181,48 +3230,48 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="plain-tex-example-13">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb280"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb280-1"><a href="#cb280-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb280-2"><a href="#cb280-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
-<span id="cb280-3"><a href="#cb280-3" aria-hidden="true"></a></span>
-<span id="cb280-4"><a href="#cb280-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb280-5"><a href="#cb280-5" aria-hidden="true"></a>These are just three regular dots ...</span>
-<span id="cb280-6"><a href="#cb280-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb280-7"><a href="#cb280-7" aria-hidden="true"></a></span>
-<span id="cb280-8"><a href="#cb280-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
-<span id="cb280-9"><a href="#cb280-9" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb280-10"><a href="#cb280-10" aria-hidden="true"></a>... and this is a victorian ellipsis.</span>
-<span id="cb280-11"><a href="#cb280-11" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb280-12"><a href="#cb280-12" aria-hidden="true"></a></span>
-<span id="cb280-13"><a href="#cb280-13" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb283"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb283-1"><a href="#cb283-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb283-2"><a href="#cb283-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
+<span id="cb283-3"><a href="#cb283-3" aria-hidden="true"></a></span>
+<span id="cb283-4"><a href="#cb283-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb283-5"><a href="#cb283-5" aria-hidden="true"></a>These are just three regular dots ...</span>
+<span id="cb283-6"><a href="#cb283-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb283-7"><a href="#cb283-7" aria-hidden="true"></a></span>
+<span id="cb283-8"><a href="#cb283-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
+<span id="cb283-9"><a href="#cb283-9" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb283-10"><a href="#cb283-10" aria-hidden="true"></a>... and this is a victorian ellipsis.</span>
+<span id="cb283-11"><a href="#cb283-11" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb283-12"><a href="#cb283-12" aria-hidden="true"></a></span>
+<span id="cb283-13"><a href="#cb283-13" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb281"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb281-1"><a href="#cb281-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb284"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb284-1"><a href="#cb284-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>These are just three regular dots …</p>
<p>. . . and this is a victorian ellipsis.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-24"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-25"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb282"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb282-1"><a href="#cb282-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb282-2"><a href="#cb282-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb282-3"><a href="#cb282-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb282-4"><a href="#cb282-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb282-5"><a href="#cb282-5" aria-hidden="true"></a> ellipsis = {. . .}</span>
-<span id="cb282-6"><a href="#cb282-6" aria-hidden="true"></a> }</span>
-<span id="cb282-7"><a href="#cb282-7" aria-hidden="true"></a>}</span>
-<span id="cb282-8"><a href="#cb282-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb282-9"><a href="#cb282-9" aria-hidden="true"></a></span>
-<span id="cb282-10"><a href="#cb282-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb282-11"><a href="#cb282-11" aria-hidden="true"></a>These are just three regular dots ...</span>
-<span id="cb282-12"><a href="#cb282-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb282-13"><a href="#cb282-13" aria-hidden="true"></a></span>
-<span id="cb282-14"><a href="#cb282-14" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{smartEllipses}</span>
-<span id="cb282-15"><a href="#cb282-15" aria-hidden="true"></a>... and this is a victorian ellipsis.</span>
-<span id="cb282-16"><a href="#cb282-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb282-17"><a href="#cb282-17" aria-hidden="true"></a></span>
-<span id="cb282-18"><a href="#cb282-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb283"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb283-1"><a href="#cb283-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb285"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb285-1"><a href="#cb285-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb285-2"><a href="#cb285-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb285-3"><a href="#cb285-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb285-4"><a href="#cb285-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb285-5"><a href="#cb285-5" aria-hidden="true"></a> ellipsis = {. . .}</span>
+<span id="cb285-6"><a href="#cb285-6" aria-hidden="true"></a> }</span>
+<span id="cb285-7"><a href="#cb285-7" aria-hidden="true"></a>}</span>
+<span id="cb285-8"><a href="#cb285-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb285-9"><a href="#cb285-9" aria-hidden="true"></a></span>
+<span id="cb285-10"><a href="#cb285-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb285-11"><a href="#cb285-11" aria-hidden="true"></a>These are just three regular dots ...</span>
+<span id="cb285-12"><a href="#cb285-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb285-13"><a href="#cb285-13" aria-hidden="true"></a></span>
+<span id="cb285-14"><a href="#cb285-14" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{smartEllipses}</span>
+<span id="cb285-15"><a href="#cb285-15" aria-hidden="true"></a>... and this is a victorian ellipsis.</span>
+<span id="cb285-16"><a href="#cb285-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb285-17"><a href="#cb285-17" aria-hidden="true"></a></span>
+<span id="cb285-18"><a href="#cb285-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb286"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb286-1"><a href="#cb286-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>These are just three regular dots …</p>
@@ -3230,28 +3279,28 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-21">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb284"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb284-1"><a href="#cb284-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb284-2"><a href="#cb284-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
-<span id="cb284-3"><a href="#cb284-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb284-4"><a href="#cb284-4" aria-hidden="true"></a></span>
-<span id="cb284-5"><a href="#cb284-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb284-6"><a href="#cb284-6" aria-hidden="true"></a>These are just three regular dots ...</span>
-<span id="cb284-7"><a href="#cb284-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb284-8"><a href="#cb284-8" aria-hidden="true"></a></span>
-<span id="cb284-9"><a href="#cb284-9" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
-<span id="cb284-10"><a href="#cb284-10" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb284-11"><a href="#cb284-11" aria-hidden="true"></a>... and this is a victorian ellipsis.</span>
-<span id="cb284-12"><a href="#cb284-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb284-13"><a href="#cb284-13" aria-hidden="true"></a></span>
-<span id="cb284-14"><a href="#cb284-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb287"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb287-1"><a href="#cb287-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb287-2"><a href="#cb287-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span>
+<span id="cb287-3"><a href="#cb287-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb287-4"><a href="#cb287-4" aria-hidden="true"></a></span>
+<span id="cb287-5"><a href="#cb287-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb287-6"><a href="#cb287-6" aria-hidden="true"></a>These are just three regular dots ...</span>
+<span id="cb287-7"><a href="#cb287-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb287-8"><a href="#cb287-8" aria-hidden="true"></a></span>
+<span id="cb287-9"><a href="#cb287-9" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
+<span id="cb287-10"><a href="#cb287-10" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb287-11"><a href="#cb287-11" aria-hidden="true"></a>... and this is a victorian ellipsis.</span>
+<span id="cb287-12"><a href="#cb287-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb287-13"><a href="#cb287-13" aria-hidden="true"></a></span>
+<span id="cb287-14"><a href="#cb287-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb285"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb285-1"><a href="#cb285-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb288"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb288-1"><a href="#cb288-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>These are just three regular dots …</p>
<p>. . . and this is a victorian ellipsis.</p>
</blockquote>
-<h4 data-number="2.2.1.30" id="option-startnumber"><span class="header-section-number">2.2.1.30</span> Option <code>startNumber</code></h4>
+<h4 data-number="2.2.1.31" id="option-startnumber"><span class="header-section-number">2.2.1.31</span> Option <code>startNumber</code></h4>
<dl>
<dt><code>startNumber</code> (default value: <code>true</code>)</dt>
<dd><dl>
@@ -3267,32 +3316,32 @@ Thomas,Edison,1847</code></pre>
</dl>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-25"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-26"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb286"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb286-1"><a href="#cb286-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb286-2"><a href="#cb286-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb286-3"><a href="#cb286-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb286-4"><a href="#cb286-4" aria-hidden="true"></a></span>
-<span id="cb286-5"><a href="#cb286-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb286-6"><a href="#cb286-6" aria-hidden="true"></a>The following list respects the numbers specified in the markup:</span>
-<span id="cb286-7"><a href="#cb286-7" aria-hidden="true"></a></span>
-<span id="cb286-8"><a href="#cb286-8" aria-hidden="true"></a>3. third item</span>
-<span id="cb286-9"><a href="#cb286-9" aria-hidden="true"></a>4. fourth item</span>
-<span id="cb286-10"><a href="#cb286-10" aria-hidden="true"></a>5. fifth item</span>
-<span id="cb286-11"><a href="#cb286-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb286-12"><a href="#cb286-12" aria-hidden="true"></a></span>
-<span id="cb286-13"><a href="#cb286-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{startNumber=false}</span>
-<span id="cb286-14"><a href="#cb286-14" aria-hidden="true"></a>The following list does not respect the numbers specified in the</span>
-<span id="cb286-15"><a href="#cb286-15" aria-hidden="true"></a>markup:</span>
-<span id="cb286-16"><a href="#cb286-16" aria-hidden="true"></a></span>
-<span id="cb286-17"><a href="#cb286-17" aria-hidden="true"></a>3. third item</span>
-<span id="cb286-18"><a href="#cb286-18" aria-hidden="true"></a>4. fourth item</span>
-<span id="cb286-19"><a href="#cb286-19" aria-hidden="true"></a>5. fifth item</span>
-<span id="cb286-20"><a href="#cb286-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb286-21"><a href="#cb286-21" aria-hidden="true"></a></span>
-<span id="cb286-22"><a href="#cb286-22" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb287"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb287-1"><a href="#cb287-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb289"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb289-1"><a href="#cb289-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb289-2"><a href="#cb289-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb289-3"><a href="#cb289-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb289-4"><a href="#cb289-4" aria-hidden="true"></a></span>
+<span id="cb289-5"><a href="#cb289-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb289-6"><a href="#cb289-6" aria-hidden="true"></a>The following list respects the numbers specified in the markup:</span>
+<span id="cb289-7"><a href="#cb289-7" aria-hidden="true"></a></span>
+<span id="cb289-8"><a href="#cb289-8" aria-hidden="true"></a>3. third item</span>
+<span id="cb289-9"><a href="#cb289-9" aria-hidden="true"></a>4. fourth item</span>
+<span id="cb289-10"><a href="#cb289-10" aria-hidden="true"></a>5. fifth item</span>
+<span id="cb289-11"><a href="#cb289-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb289-12"><a href="#cb289-12" aria-hidden="true"></a></span>
+<span id="cb289-13"><a href="#cb289-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{startNumber=false}</span>
+<span id="cb289-14"><a href="#cb289-14" aria-hidden="true"></a>The following list does not respect the numbers specified in the</span>
+<span id="cb289-15"><a href="#cb289-15" aria-hidden="true"></a>markup:</span>
+<span id="cb289-16"><a href="#cb289-16" aria-hidden="true"></a></span>
+<span id="cb289-17"><a href="#cb289-17" aria-hidden="true"></a>3. third item</span>
+<span id="cb289-18"><a href="#cb289-18" aria-hidden="true"></a>4. fourth item</span>
+<span id="cb289-19"><a href="#cb289-19" aria-hidden="true"></a>5. fifth item</span>
+<span id="cb289-20"><a href="#cb289-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb289-21"><a href="#cb289-21" aria-hidden="true"></a></span>
+<span id="cb289-22"><a href="#cb289-22" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb290"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb290-1"><a href="#cb290-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>The following list respects the numbers specified in the markup:</p>
@@ -3310,28 +3359,28 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-22">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb288"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb288-1"><a href="#cb288-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb288-2"><a href="#cb288-2" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb288-3"><a href="#cb288-3" aria-hidden="true"></a></span>
-<span id="cb288-4"><a href="#cb288-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb288-5"><a href="#cb288-5" aria-hidden="true"></a>The following list respects the numbers specified in the markup:</span>
-<span id="cb288-6"><a href="#cb288-6" aria-hidden="true"></a></span>
-<span id="cb288-7"><a href="#cb288-7" aria-hidden="true"></a>3. third item</span>
-<span id="cb288-8"><a href="#cb288-8" aria-hidden="true"></a>4. fourth item</span>
-<span id="cb288-9"><a href="#cb288-9" aria-hidden="true"></a>5. fifth item</span>
-<span id="cb288-10"><a href="#cb288-10" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb288-11"><a href="#cb288-11" aria-hidden="true"></a></span>
-<span id="cb288-12"><a href="#cb288-12" aria-hidden="true"></a><span class="fu">\def\markdownOptionStartNumber</span>{false}</span>
-<span id="cb288-13"><a href="#cb288-13" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb288-14"><a href="#cb288-14" aria-hidden="true"></a>The following list respects the numbers specified in the markup:</span>
-<span id="cb288-15"><a href="#cb288-15" aria-hidden="true"></a></span>
-<span id="cb288-16"><a href="#cb288-16" aria-hidden="true"></a>3. third item</span>
-<span id="cb288-17"><a href="#cb288-17" aria-hidden="true"></a>4. fourth item</span>
-<span id="cb288-18"><a href="#cb288-18" aria-hidden="true"></a>5. fifth item</span>
-<span id="cb288-19"><a href="#cb288-19" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb288-20"><a href="#cb288-20" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb289"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb289-1"><a href="#cb289-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb291"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb291-1"><a href="#cb291-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb291-2"><a href="#cb291-2" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb291-3"><a href="#cb291-3" aria-hidden="true"></a></span>
+<span id="cb291-4"><a href="#cb291-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb291-5"><a href="#cb291-5" aria-hidden="true"></a>The following list respects the numbers specified in the markup:</span>
+<span id="cb291-6"><a href="#cb291-6" aria-hidden="true"></a></span>
+<span id="cb291-7"><a href="#cb291-7" aria-hidden="true"></a>3. third item</span>
+<span id="cb291-8"><a href="#cb291-8" aria-hidden="true"></a>4. fourth item</span>
+<span id="cb291-9"><a href="#cb291-9" aria-hidden="true"></a>5. fifth item</span>
+<span id="cb291-10"><a href="#cb291-10" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb291-11"><a href="#cb291-11" aria-hidden="true"></a></span>
+<span id="cb291-12"><a href="#cb291-12" aria-hidden="true"></a><span class="fu">\def\markdownOptionStartNumber</span>{false}</span>
+<span id="cb291-13"><a href="#cb291-13" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb291-14"><a href="#cb291-14" aria-hidden="true"></a>The following list respects the numbers specified in the markup:</span>
+<span id="cb291-15"><a href="#cb291-15" aria-hidden="true"></a></span>
+<span id="cb291-16"><a href="#cb291-16" aria-hidden="true"></a>3. third item</span>
+<span id="cb291-17"><a href="#cb291-17" aria-hidden="true"></a>4. fourth item</span>
+<span id="cb291-18"><a href="#cb291-18" aria-hidden="true"></a>5. fifth item</span>
+<span id="cb291-19"><a href="#cb291-19" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb291-20"><a href="#cb291-20" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb292"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb292-1"><a href="#cb292-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>The following list respects the numbers specified in the markup:</p>
@@ -3347,19 +3396,19 @@ Thomas,Edison,1847</code></pre>
<li>fifth item</li>
</ol>
</blockquote>
-<h4 data-number="2.2.1.31" id="option-stripindent"><span class="header-section-number">2.2.1.31</span> Option <code>stripIndent</code></h4>
+<h4 data-number="2.2.1.32" id="option-stripindent"><span class="header-section-number">2.2.1.32</span> Option <code>stripIndent</code></h4>
<dl>
<dt><code>stripIndent</code> (default value: <code>false</code>)</dt>
<dd><dl>
<dt>true</dt>
<dd><p>Strip the minimal indentation of non-blank lines from all lines in a markdown document. Requires that the <strong><code>preserveTabs</code></strong> Lua option is :</p>
-<div class="sourceCode" id="cb290"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb290-1"><a href="#cb290-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb290-2"><a href="#cb290-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span>
-<span id="cb290-3"><a href="#cb290-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb290-4"><a href="#cb290-4" aria-hidden="true"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb290-5"><a href="#cb290-5" aria-hidden="true"></a> Hello *world*!</span>
-<span id="cb290-6"><a href="#cb290-6" aria-hidden="true"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb290-7"><a href="#cb290-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb293"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb293-1"><a href="#cb293-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb293-2"><a href="#cb293-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span>
+<span id="cb293-3"><a href="#cb293-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb293-4"><a href="#cb293-4" aria-hidden="true"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb293-5"><a href="#cb293-5" aria-hidden="true"></a> Hello *world*!</span>
+<span id="cb293-6"><a href="#cb293-6" aria-hidden="true"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb293-7"><a href="#cb293-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
</dd>
</dl>
</dd>
@@ -3372,52 +3421,52 @@ Thomas,Edison,1847</code></pre>
</dl>
<h5 class="unnumbered" data-number="" id="plain-tex-example-14">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb291"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb291-1"><a href="#cb291-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb291-2"><a href="#cb291-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionStripIndent</span>{true}</span>
-<span id="cb291-3"><a href="#cb291-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb291-4"><a href="#cb291-4" aria-hidden="true"></a> Hello *world*!</span>
-<span id="cb291-5"><a href="#cb291-5" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb291-6"><a href="#cb291-6" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb294"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb294-1"><a href="#cb294-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb294-2"><a href="#cb294-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionStripIndent</span>{true}</span>
+<span id="cb294-3"><a href="#cb294-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb294-4"><a href="#cb294-4" aria-hidden="true"></a> Hello *world*!</span>
+<span id="cb294-5"><a href="#cb294-5" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb294-6"><a href="#cb294-6" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb292"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb292-1"><a href="#cb292-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb295"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb295-1"><a href="#cb295-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
-<h5 class="unnumbered" data-number="" id="latex-example-26"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-27"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb293"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb293-1"><a href="#cb293-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb293-2"><a href="#cb293-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span>
-<span id="cb293-3"><a href="#cb293-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb293-4"><a href="#cb293-4" aria-hidden="true"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb293-5"><a href="#cb293-5" aria-hidden="true"></a> Hello *world*!</span>
-<span id="cb293-6"><a href="#cb293-6" aria-hidden="true"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb293-7"><a href="#cb293-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb296"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb296-1"><a href="#cb296-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb296-2"><a href="#cb296-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span>
+<span id="cb296-3"><a href="#cb296-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb296-4"><a href="#cb296-4" aria-hidden="true"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb296-5"><a href="#cb296-5" aria-hidden="true"></a> Hello *world*!</span>
+<span id="cb296-6"><a href="#cb296-6" aria-hidden="true"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb296-7"><a href="#cb296-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb294"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb294-1"><a href="#cb294-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb297"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb297-1"><a href="#cb297-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
<h5 class="unnumbered" data-number="" id="context-example-23">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb295"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb295-1"><a href="#cb295-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb295-2"><a href="#cb295-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionStripIndent</span>{true}</span>
-<span id="cb295-3"><a href="#cb295-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb295-4"><a href="#cb295-4" aria-hidden="true"></a> <span class="fu">\startmarkdown</span></span>
-<span id="cb295-5"><a href="#cb295-5" aria-hidden="true"></a> Hello *world*!</span>
-<span id="cb295-6"><a href="#cb295-6" aria-hidden="true"></a> <span class="fu">\stopmarkdown</span></span>
-<span id="cb295-7"><a href="#cb295-7" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb298"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb298-1"><a href="#cb298-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb298-2"><a href="#cb298-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionStripIndent</span>{true}</span>
+<span id="cb298-3"><a href="#cb298-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb298-4"><a href="#cb298-4" aria-hidden="true"></a> <span class="fu">\startmarkdown</span></span>
+<span id="cb298-5"><a href="#cb298-5" aria-hidden="true"></a> Hello *world*!</span>
+<span id="cb298-6"><a href="#cb298-6" aria-hidden="true"></a> <span class="fu">\stopmarkdown</span></span>
+<span id="cb298-7"><a href="#cb298-7" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb296"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb296-1"><a href="#cb296-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb299"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb299-1"><a href="#cb299-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
-<h4 data-number="2.2.1.32" id="option-tablecaptions"><span class="header-section-number">2.2.1.32</span> Option <code>tableCaptions</code></h4>
+<h4 data-number="2.2.1.33" id="option-tablecaptions"><span class="header-section-number">2.2.1.33</span> Option <code>tableCaptions</code></h4>
<dl>
<dt><code>tableCaptions</code> (default value: <code>false</code>)</dt>
<dd><dl>
<dt>true</dt>
<dd><p>Enable the Pandoc <code>table_captions</code> syntax extension for <a href="#pipe-tables">pipe tables</a>.</p>
-<div class="sourceCode" id="cb297"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb297-1"><a href="#cb297-1" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
-<span id="cb297-2"><a href="#cb297-2" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
-<span id="cb297-3"><a href="#cb297-3" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
-<span id="cb297-4"><a href="#cb297-4" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
-<span id="cb297-5"><a href="#cb297-5" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
-<span id="cb297-6"><a href="#cb297-6" aria-hidden="true"></a></span>
-<span id="cb297-7"><a href="#cb297-7" aria-hidden="true"></a> : Demonstration of pipe table syntax.</span></code></pre></div>
+<div class="sourceCode" id="cb300"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb300-1"><a href="#cb300-1" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
+<span id="cb300-2"><a href="#cb300-2" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
+<span id="cb300-3"><a href="#cb300-3" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
+<span id="cb300-4"><a href="#cb300-4" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
+<span id="cb300-5"><a href="#cb300-5" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
+<span id="cb300-6"><a href="#cb300-6" aria-hidden="true"></a></span>
+<span id="cb300-7"><a href="#cb300-7" aria-hidden="true"></a> : Demonstration of pipe table syntax.</span></code></pre></div>
</dd>
</dl>
</dd>
@@ -3428,23 +3477,23 @@ Thomas,Edison,1847</code></pre>
</dl>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-27"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-28"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb298"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb298-1"><a href="#cb298-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb298-2"><a href="#cb298-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span>
-<span id="cb298-3"><a href="#cb298-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb298-4"><a href="#cb298-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb298-5"><a href="#cb298-5" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
-<span id="cb298-6"><a href="#cb298-6" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
-<span id="cb298-7"><a href="#cb298-7" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
-<span id="cb298-8"><a href="#cb298-8" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
-<span id="cb298-9"><a href="#cb298-9" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
-<span id="cb298-10"><a href="#cb298-10" aria-hidden="true"></a></span>
-<span id="cb298-11"><a href="#cb298-11" aria-hidden="true"></a> : Demonstration of pipe table syntax.</span>
-<span id="cb298-12"><a href="#cb298-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb298-13"><a href="#cb298-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb301"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb301-1"><a href="#cb301-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb301-2"><a href="#cb301-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span>
+<span id="cb301-3"><a href="#cb301-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb301-4"><a href="#cb301-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb301-5"><a href="#cb301-5" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
+<span id="cb301-6"><a href="#cb301-6" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
+<span id="cb301-7"><a href="#cb301-7" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
+<span id="cb301-8"><a href="#cb301-8" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
+<span id="cb301-9"><a href="#cb301-9" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
+<span id="cb301-10"><a href="#cb301-10" aria-hidden="true"></a></span>
+<span id="cb301-11"><a href="#cb301-11" aria-hidden="true"></a> : Demonstration of pipe table syntax.</span>
+<span id="cb301-12"><a href="#cb301-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb301-13"><a href="#cb301-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb299"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb299-1"><a href="#cb299-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb302"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb302-1"><a href="#cb302-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<table>
@@ -3481,22 +3530,22 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-24">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb300"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb300-1"><a href="#cb300-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb300-2"><a href="#cb300-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionPipeTables</span>{true}</span>
-<span id="cb300-3"><a href="#cb300-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionTableCaptions</span>{true}</span>
-<span id="cb300-4"><a href="#cb300-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb300-5"><a href="#cb300-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb300-6"><a href="#cb300-6" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
-<span id="cb300-7"><a href="#cb300-7" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
-<span id="cb300-8"><a href="#cb300-8" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
-<span id="cb300-9"><a href="#cb300-9" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
-<span id="cb300-10"><a href="#cb300-10" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
-<span id="cb300-11"><a href="#cb300-11" aria-hidden="true"></a></span>
-<span id="cb300-12"><a href="#cb300-12" aria-hidden="true"></a> : Demonstration of pipe table syntax.</span>
-<span id="cb300-13"><a href="#cb300-13" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb300-14"><a href="#cb300-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb303"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb303-1"><a href="#cb303-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb303-2"><a href="#cb303-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionPipeTables</span>{true}</span>
+<span id="cb303-3"><a href="#cb303-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionTableCaptions</span>{true}</span>
+<span id="cb303-4"><a href="#cb303-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb303-5"><a href="#cb303-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb303-6"><a href="#cb303-6" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
+<span id="cb303-7"><a href="#cb303-7" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
+<span id="cb303-8"><a href="#cb303-8" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
+<span id="cb303-9"><a href="#cb303-9" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
+<span id="cb303-10"><a href="#cb303-10" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
+<span id="cb303-11"><a href="#cb303-11" aria-hidden="true"></a></span>
+<span id="cb303-12"><a href="#cb303-12" aria-hidden="true"></a> : Demonstration of pipe table syntax.</span>
+<span id="cb303-13"><a href="#cb303-13" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb303-14"><a href="#cb303-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb301"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb301-1"><a href="#cb301-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb304"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb304-1"><a href="#cb304-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<table>
@@ -3531,15 +3580,15 @@ Thomas,Edison,1847</code></pre>
</tbody>
</table>
</blockquote>
-<h4 data-number="2.2.1.33" id="option-tasklists"><span class="header-section-number">2.2.1.33</span> Option <code>taskLists</code></h4>
+<h4 data-number="2.2.1.34" id="option-tasklists"><span class="header-section-number">2.2.1.34</span> Option <code>taskLists</code></h4>
<dl>
<dt><code>taskLists</code> (default value: <code>false</code>)</dt>
<dd><dl>
<dt>true</dt>
<dd><p>Enable the Pandoc <code>task_lists</code> syntax extension.</p>
-<div class="sourceCode" id="cb302"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb302-1"><a href="#cb302-1" aria-hidden="true"></a><span class="ss">- </span><span class="va">[ ]</span> an unticked task list item</span>
-<span id="cb302-2"><a href="#cb302-2" aria-hidden="true"></a><span class="ss">- </span><span class="co">[</span><span class="ot">/</span><span class="co">]</span> a half-checked task list item</span>
-<span id="cb302-3"><a href="#cb302-3" aria-hidden="true"></a><span class="ss">- </span><span class="co">[</span><span class="ot">X</span><span class="co">]</span> a ticked task list item</span></code></pre></div>
+<div class="sourceCode" id="cb305"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb305-1"><a href="#cb305-1" aria-hidden="true"></a><span class="ss">- </span><span class="va">[ ]</span> an unticked task list item</span>
+<span id="cb305-2"><a href="#cb305-2" aria-hidden="true"></a><span class="ss">- </span><span class="co">[</span><span class="ot">/</span><span class="co">]</span> a half-checked task list item</span>
+<span id="cb305-3"><a href="#cb305-3" aria-hidden="true"></a><span class="ss">- </span><span class="co">[</span><span class="ot">X</span><span class="co">]</span> a ticked task list item</span></code></pre></div>
</dd>
</dl>
</dd>
@@ -3550,26 +3599,26 @@ Thomas,Edison,1847</code></pre>
</dl>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-28"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-29"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb303"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb303-1"><a href="#cb303-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb303-2"><a href="#cb303-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span>
-<span id="cb303-3"><a href="#cb303-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb303-4"><a href="#cb303-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb303-5"><a href="#cb303-5" aria-hidden="true"></a> untickedBox = No,</span>
-<span id="cb303-6"><a href="#cb303-6" aria-hidden="true"></a> halfTickedBox = Maybe,</span>
-<span id="cb303-7"><a href="#cb303-7" aria-hidden="true"></a> tickedBox = Yes,</span>
-<span id="cb303-8"><a href="#cb303-8" aria-hidden="true"></a> },</span>
-<span id="cb303-9"><a href="#cb303-9" aria-hidden="true"></a>}</span>
-<span id="cb303-10"><a href="#cb303-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb303-11"><a href="#cb303-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb303-12"><a href="#cb303-12" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
-<span id="cb303-13"><a href="#cb303-13" aria-hidden="true"></a>- [/] I can?</span>
-<span id="cb303-14"><a href="#cb303-14" aria-hidden="true"></a>- [X] I can!</span>
-<span id="cb303-15"><a href="#cb303-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb303-16"><a href="#cb303-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb304"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb304-1"><a href="#cb304-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb306"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb306-1"><a href="#cb306-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb306-2"><a href="#cb306-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span>
+<span id="cb306-3"><a href="#cb306-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb306-4"><a href="#cb306-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb306-5"><a href="#cb306-5" aria-hidden="true"></a> untickedBox = No,</span>
+<span id="cb306-6"><a href="#cb306-6" aria-hidden="true"></a> halfTickedBox = Maybe,</span>
+<span id="cb306-7"><a href="#cb306-7" aria-hidden="true"></a> tickedBox = Yes,</span>
+<span id="cb306-8"><a href="#cb306-8" aria-hidden="true"></a> },</span>
+<span id="cb306-9"><a href="#cb306-9" aria-hidden="true"></a>}</span>
+<span id="cb306-10"><a href="#cb306-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb306-11"><a href="#cb306-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb306-12"><a href="#cb306-12" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
+<span id="cb306-13"><a href="#cb306-13" aria-hidden="true"></a>- [/] I can?</span>
+<span id="cb306-14"><a href="#cb306-14" aria-hidden="true"></a>- [X] I can!</span>
+<span id="cb306-15"><a href="#cb306-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb306-16"><a href="#cb306-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb307"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb307-1"><a href="#cb307-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<ul>
@@ -3580,20 +3629,20 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-25">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb305"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb305-1"><a href="#cb305-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb305-2"><a href="#cb305-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span>
-<span id="cb305-3"><a href="#cb305-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span>
-<span id="cb305-4"><a href="#cb305-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererHalftickedBox</span>{Maybe}</span>
-<span id="cb305-5"><a href="#cb305-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span>
-<span id="cb305-6"><a href="#cb305-6" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb305-7"><a href="#cb305-7" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb305-8"><a href="#cb305-8" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
-<span id="cb305-9"><a href="#cb305-9" aria-hidden="true"></a>- [/] I can?</span>
-<span id="cb305-10"><a href="#cb305-10" aria-hidden="true"></a>- [X] I can!</span>
-<span id="cb305-11"><a href="#cb305-11" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb305-12"><a href="#cb305-12" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb308"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb308-1"><a href="#cb308-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb308-2"><a href="#cb308-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span>
+<span id="cb308-3"><a href="#cb308-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span>
+<span id="cb308-4"><a href="#cb308-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererHalftickedBox</span>{Maybe}</span>
+<span id="cb308-5"><a href="#cb308-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span>
+<span id="cb308-6"><a href="#cb308-6" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb308-7"><a href="#cb308-7" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb308-8"><a href="#cb308-8" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
+<span id="cb308-9"><a href="#cb308-9" aria-hidden="true"></a>- [/] I can?</span>
+<span id="cb308-10"><a href="#cb308-10" aria-hidden="true"></a>- [X] I can!</span>
+<span id="cb308-11"><a href="#cb308-11" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb308-12"><a href="#cb308-12" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb306"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb306-1"><a href="#cb306-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb309"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb309-1"><a href="#cb309-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<ul>
@@ -3602,20 +3651,20 @@ Thomas,Edison,1847</code></pre>
<li>Yes I can!</li>
</ul>
</blockquote>
-<h4 data-number="2.2.1.34" id="option-texcomments"><span class="header-section-number">2.2.1.34</span> Option <code>texComments</code></h4>
+<h4 data-number="2.2.1.35" id="option-texcomments"><span class="header-section-number">2.2.1.35</span> Option <code>texComments</code></h4>
<dl>
<dt><code>texComments</code> (default value: <code>false</code>)</dt>
<dd><dl>
<dt>true</dt>
<dd><p>Strip <span class="tex">T<sub>e</sub>X</span>-style comments.</p>
-<div class="sourceCode" id="cb307"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb307-1"><a href="#cb307-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb307-2"><a href="#cb307-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span>
-<span id="cb307-3"><a href="#cb307-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb307-4"><a href="#cb307-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb307-5"><a href="#cb307-5" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
-<span id="cb307-6"><a href="#cb307-6" aria-hidden="true"></a> lo *world*!</span>
-<span id="cb307-7"><a href="#cb307-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb307-8"><a href="#cb307-8" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb310"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb310-1"><a href="#cb310-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb310-2"><a href="#cb310-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span>
+<span id="cb310-3"><a href="#cb310-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb310-4"><a href="#cb310-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb310-5"><a href="#cb310-5" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
+<span id="cb310-6"><a href="#cb310-6" aria-hidden="true"></a> lo *world*!</span>
+<span id="cb310-7"><a href="#cb310-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb310-8"><a href="#cb310-8" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Always enabled when <strong><code>hybrid</code></strong> is enabled.</p>
</dd>
</dl>
@@ -3629,43 +3678,43 @@ Thomas,Edison,1847</code></pre>
</dl>
<h5 class="unnumbered" data-number="" id="plain-tex-example-15">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb308"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb308-1"><a href="#cb308-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb308-2"><a href="#cb308-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTeXComments</span>{true}</span>
-<span id="cb308-3"><a href="#cb308-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb308-4"><a href="#cb308-4" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
-<span id="cb308-5"><a href="#cb308-5" aria-hidden="true"></a> lo *world*!</span>
-<span id="cb308-6"><a href="#cb308-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb308-7"><a href="#cb308-7" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb311"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb311-1"><a href="#cb311-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb311-2"><a href="#cb311-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTeXComments</span>{true}</span>
+<span id="cb311-3"><a href="#cb311-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb311-4"><a href="#cb311-4" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
+<span id="cb311-5"><a href="#cb311-5" aria-hidden="true"></a> lo *world*!</span>
+<span id="cb311-6"><a href="#cb311-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb311-7"><a href="#cb311-7" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb309"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb309-1"><a href="#cb309-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb312"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb312-1"><a href="#cb312-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
-<h5 class="unnumbered" data-number="" id="latex-example-29"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-30"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb310"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb310-1"><a href="#cb310-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb310-2"><a href="#cb310-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span>
-<span id="cb310-3"><a href="#cb310-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb310-4"><a href="#cb310-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb310-5"><a href="#cb310-5" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
-<span id="cb310-6"><a href="#cb310-6" aria-hidden="true"></a> lo *world*!</span>
-<span id="cb310-7"><a href="#cb310-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb310-8"><a href="#cb310-8" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb313"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb313-1"><a href="#cb313-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb313-2"><a href="#cb313-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span>
+<span id="cb313-3"><a href="#cb313-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb313-4"><a href="#cb313-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb313-5"><a href="#cb313-5" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
+<span id="cb313-6"><a href="#cb313-6" aria-hidden="true"></a> lo *world*!</span>
+<span id="cb313-7"><a href="#cb313-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb313-8"><a href="#cb313-8" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb311"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb311-1"><a href="#cb311-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb314"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb314-1"><a href="#cb314-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
<h5 class="unnumbered" data-number="" id="context-example-26">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb312"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb312-1"><a href="#cb312-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb312-2"><a href="#cb312-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTeXComments</span>{true}</span>
-<span id="cb312-3"><a href="#cb312-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb312-4"><a href="#cb312-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb312-5"><a href="#cb312-5" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
-<span id="cb312-6"><a href="#cb312-6" aria-hidden="true"></a> lo *world*!</span>
-<span id="cb312-7"><a href="#cb312-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb312-8"><a href="#cb312-8" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb315"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb315-1"><a href="#cb315-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb315-2"><a href="#cb315-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTeXComments</span>{true}</span>
+<span id="cb315-3"><a href="#cb315-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb315-4"><a href="#cb315-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb315-5"><a href="#cb315-5" aria-hidden="true"></a>Hel<span class="co">% this is a comment</span></span>
+<span id="cb315-6"><a href="#cb315-6" aria-hidden="true"></a> lo *world*!</span>
+<span id="cb315-7"><a href="#cb315-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb315-8"><a href="#cb315-8" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb313"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb313-1"><a href="#cb313-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb316"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb316-1"><a href="#cb316-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
-<h4 data-number="2.2.1.35" id="option-tightlists"><span class="header-section-number">2.2.1.35</span> Option <code>tightLists</code></h4>
+<h4 data-number="2.2.1.36" id="option-tightlists"><span class="header-section-number">2.2.1.36</span> Option <code>tightLists</code></h4>
<dl>
<dt><code>tightLists</code> (default value: <code>true</code>)</dt>
<dd><dl>
@@ -3681,39 +3730,39 @@ Thomas,Edison,1847</code></pre>
</dl>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-30"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-31"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb314"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb314-1"><a href="#cb314-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb314-2"><a href="#cb314-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb314-3"><a href="#cb314-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb314-4"><a href="#cb314-4" aria-hidden="true"></a></span>
-<span id="cb314-5"><a href="#cb314-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb314-6"><a href="#cb314-6" aria-hidden="true"></a>The following list is tight:</span>
-<span id="cb314-7"><a href="#cb314-7" aria-hidden="true"></a></span>
-<span id="cb314-8"><a href="#cb314-8" aria-hidden="true"></a> - first item</span>
-<span id="cb314-9"><a href="#cb314-9" aria-hidden="true"></a> - second item</span>
-<span id="cb314-10"><a href="#cb314-10" aria-hidden="true"></a> - third item</span>
-<span id="cb314-11"><a href="#cb314-11" aria-hidden="true"></a></span>
-<span id="cb314-12"><a href="#cb314-12" aria-hidden="true"></a>The following list is loose:</span>
-<span id="cb314-13"><a href="#cb314-13" aria-hidden="true"></a></span>
-<span id="cb314-14"><a href="#cb314-14" aria-hidden="true"></a> - first item</span>
-<span id="cb314-15"><a href="#cb314-15" aria-hidden="true"></a> - second item that spans</span>
-<span id="cb314-16"><a href="#cb314-16" aria-hidden="true"></a></span>
-<span id="cb314-17"><a href="#cb314-17" aria-hidden="true"></a> multiple paragraphs</span>
-<span id="cb314-18"><a href="#cb314-18" aria-hidden="true"></a> - third item</span>
-<span id="cb314-19"><a href="#cb314-19" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb314-20"><a href="#cb314-20" aria-hidden="true"></a></span>
-<span id="cb314-21"><a href="#cb314-21" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{tightLists=false}</span>
-<span id="cb314-22"><a href="#cb314-22" aria-hidden="true"></a>The following list is now also loose:</span>
-<span id="cb314-23"><a href="#cb314-23" aria-hidden="true"></a></span>
-<span id="cb314-24"><a href="#cb314-24" aria-hidden="true"></a> - first item</span>
-<span id="cb314-25"><a href="#cb314-25" aria-hidden="true"></a> - second item</span>
-<span id="cb314-26"><a href="#cb314-26" aria-hidden="true"></a> - third item</span>
-<span id="cb314-27"><a href="#cb314-27" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb314-28"><a href="#cb314-28" aria-hidden="true"></a></span>
-<span id="cb314-29"><a href="#cb314-29" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb315"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb315-1"><a href="#cb315-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb317"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb317-1"><a href="#cb317-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb317-2"><a href="#cb317-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb317-3"><a href="#cb317-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb317-4"><a href="#cb317-4" aria-hidden="true"></a></span>
+<span id="cb317-5"><a href="#cb317-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb317-6"><a href="#cb317-6" aria-hidden="true"></a>The following list is tight:</span>
+<span id="cb317-7"><a href="#cb317-7" aria-hidden="true"></a></span>
+<span id="cb317-8"><a href="#cb317-8" aria-hidden="true"></a> - first item</span>
+<span id="cb317-9"><a href="#cb317-9" aria-hidden="true"></a> - second item</span>
+<span id="cb317-10"><a href="#cb317-10" aria-hidden="true"></a> - third item</span>
+<span id="cb317-11"><a href="#cb317-11" aria-hidden="true"></a></span>
+<span id="cb317-12"><a href="#cb317-12" aria-hidden="true"></a>The following list is loose:</span>
+<span id="cb317-13"><a href="#cb317-13" aria-hidden="true"></a></span>
+<span id="cb317-14"><a href="#cb317-14" aria-hidden="true"></a> - first item</span>
+<span id="cb317-15"><a href="#cb317-15" aria-hidden="true"></a> - second item that spans</span>
+<span id="cb317-16"><a href="#cb317-16" aria-hidden="true"></a></span>
+<span id="cb317-17"><a href="#cb317-17" aria-hidden="true"></a> multiple paragraphs</span>
+<span id="cb317-18"><a href="#cb317-18" aria-hidden="true"></a> - third item</span>
+<span id="cb317-19"><a href="#cb317-19" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb317-20"><a href="#cb317-20" aria-hidden="true"></a></span>
+<span id="cb317-21"><a href="#cb317-21" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{tightLists=false}</span>
+<span id="cb317-22"><a href="#cb317-22" aria-hidden="true"></a>The following list is now also loose:</span>
+<span id="cb317-23"><a href="#cb317-23" aria-hidden="true"></a></span>
+<span id="cb317-24"><a href="#cb317-24" aria-hidden="true"></a> - first item</span>
+<span id="cb317-25"><a href="#cb317-25" aria-hidden="true"></a> - second item</span>
+<span id="cb317-26"><a href="#cb317-26" aria-hidden="true"></a> - third item</span>
+<span id="cb317-27"><a href="#cb317-27" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb317-28"><a href="#cb317-28" aria-hidden="true"></a></span>
+<span id="cb317-29"><a href="#cb317-29" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb318"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb318-1"><a href="#cb318-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>The following list is tight:</p>
@@ -3736,16 +3785,16 @@ Thomas,Edison,1847</code></pre>
<li><p>third item</p></li>
</ul>
</blockquote>
-<h4 data-number="2.2.1.36" id="option-underscores"><span class="header-section-number">2.2.1.36</span> Option <code>underscores</code></h4>
+<h4 data-number="2.2.1.37" id="option-underscores"><span class="header-section-number">2.2.1.37</span> Option <code>underscores</code></h4>
<dl>
<dt><code>underscores</code> (default value: <code>true</code>)</dt>
<dd><dl>
<dt>true</dt>
<dd><p>Both underscores and asterisks can be used to denote emphasis and strong emphasis:</p>
-<div class="sourceCode" id="cb316"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb316-1"><a href="#cb316-1" aria-hidden="true"></a>*single asterisks*</span>
-<span id="cb316-2"><a href="#cb316-2" aria-hidden="true"></a>_single underscores_</span>
-<span id="cb316-3"><a href="#cb316-3" aria-hidden="true"></a>**double asterisks**</span>
-<span id="cb316-4"><a href="#cb316-4" aria-hidden="true"></a>__double underscores__</span></code></pre></div>
+<div class="sourceCode" id="cb319"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb319-1"><a href="#cb319-1" aria-hidden="true"></a>*single asterisks*</span>
+<span id="cb319-2"><a href="#cb319-2" aria-hidden="true"></a>_single underscores_</span>
+<span id="cb319-3"><a href="#cb319-3" aria-hidden="true"></a>**double asterisks**</span>
+<span id="cb319-4"><a href="#cb319-4" aria-hidden="true"></a>__double underscores__</span></code></pre></div>
</dd>
</dl>
</dd>
@@ -3758,43 +3807,43 @@ Thomas,Edison,1847</code></pre>
</dl>
<h5 class="unnumbered" data-number="" id="plain-tex-example-16">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb317"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb317-1"><a href="#cb317-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb317-2"><a href="#cb317-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
-<span id="cb317-3"><a href="#cb317-3" aria-hidden="true"></a></span>
-<span id="cb317-4"><a href="#cb317-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb317-5"><a href="#cb317-5" aria-hidden="true"></a>This is _emphasized text_ and this is a math subscript: <span class="ss">$m</span><span class="sc">\_</span><span class="ss">n$</span>.</span>
-<span id="cb317-6"><a href="#cb317-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb317-7"><a href="#cb317-7" aria-hidden="true"></a></span>
-<span id="cb317-8"><a href="#cb317-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionUnderscores</span>{false}</span>
-<span id="cb317-9"><a href="#cb317-9" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb317-10"><a href="#cb317-10" aria-hidden="true"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span>
-<span id="cb317-11"><a href="#cb317-11" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb317-12"><a href="#cb317-12" aria-hidden="true"></a></span>
-<span id="cb317-13"><a href="#cb317-13" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb320"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb320-1"><a href="#cb320-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb320-2"><a href="#cb320-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
+<span id="cb320-3"><a href="#cb320-3" aria-hidden="true"></a></span>
+<span id="cb320-4"><a href="#cb320-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb320-5"><a href="#cb320-5" aria-hidden="true"></a>This is _emphasized text_ and this is a math subscript: <span class="ss">$m</span><span class="sc">\_</span><span class="ss">n$</span>.</span>
+<span id="cb320-6"><a href="#cb320-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb320-7"><a href="#cb320-7" aria-hidden="true"></a></span>
+<span id="cb320-8"><a href="#cb320-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionUnderscores</span>{false}</span>
+<span id="cb320-9"><a href="#cb320-9" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb320-10"><a href="#cb320-10" aria-hidden="true"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span>
+<span id="cb320-11"><a href="#cb320-11" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb320-12"><a href="#cb320-12" aria-hidden="true"></a></span>
+<span id="cb320-13"><a href="#cb320-13" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb318"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb318-1"><a href="#cb318-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb321"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb321-1"><a href="#cb321-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <em>emphasized text</em> and this is a math subscript: <em>mₙ</em>.</p>
<p>This is <em>emphasized text</em> and this is a math subscript: <em>mₙ</em>.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-31"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-32"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb319"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb319-1"><a href="#cb319-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb319-2"><a href="#cb319-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[hybrid]{<span class="ex">markdown</span>}</span>
-<span id="cb319-3"><a href="#cb319-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb319-4"><a href="#cb319-4" aria-hidden="true"></a></span>
-<span id="cb319-5"><a href="#cb319-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb319-6"><a href="#cb319-6" aria-hidden="true"></a>This is _emphasized text_ and this is a math subscript: <span class="ss">$m</span><span class="sc">\_</span><span class="ss">n$</span>.</span>
-<span id="cb319-7"><a href="#cb319-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb319-8"><a href="#cb319-8" aria-hidden="true"></a></span>
-<span id="cb319-9"><a href="#cb319-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{underscores=false}</span>
-<span id="cb319-10"><a href="#cb319-10" aria-hidden="true"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span>
-<span id="cb319-11"><a href="#cb319-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb319-12"><a href="#cb319-12" aria-hidden="true"></a></span>
-<span id="cb319-13"><a href="#cb319-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb322"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb322-1"><a href="#cb322-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb322-2"><a href="#cb322-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[hybrid]{<span class="ex">markdown</span>}</span>
+<span id="cb322-3"><a href="#cb322-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb322-4"><a href="#cb322-4" aria-hidden="true"></a></span>
+<span id="cb322-5"><a href="#cb322-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb322-6"><a href="#cb322-6" aria-hidden="true"></a>This is _emphasized text_ and this is a math subscript: <span class="ss">$m</span><span class="sc">\_</span><span class="ss">n$</span>.</span>
+<span id="cb322-7"><a href="#cb322-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb322-8"><a href="#cb322-8" aria-hidden="true"></a></span>
+<span id="cb322-9"><a href="#cb322-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{underscores=false}</span>
+<span id="cb322-10"><a href="#cb322-10" aria-hidden="true"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span>
+<span id="cb322-11"><a href="#cb322-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb322-12"><a href="#cb322-12" aria-hidden="true"></a></span>
+<span id="cb322-13"><a href="#cb322-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb320"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb320-1"><a href="#cb320-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb323"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb323-1"><a href="#cb323-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <em>emphasized text</em> and this is a math subscript: <em>mₙ</em>.</p>
@@ -3802,22 +3851,22 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-27">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb321"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb321-1"><a href="#cb321-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb321-2"><a href="#cb321-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
-<span id="cb321-3"><a href="#cb321-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb321-4"><a href="#cb321-4" aria-hidden="true"></a></span>
-<span id="cb321-5"><a href="#cb321-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb321-6"><a href="#cb321-6" aria-hidden="true"></a>This is _emphasized text_ and this is a math subscript: <span class="ss">$m</span><span class="sc">\_</span><span class="ss">n$</span>.</span>
-<span id="cb321-7"><a href="#cb321-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb321-8"><a href="#cb321-8" aria-hidden="true"></a></span>
-<span id="cb321-9"><a href="#cb321-9" aria-hidden="true"></a><span class="fu">\def\markdownOptionUnderscores</span>{false}</span>
-<span id="cb321-10"><a href="#cb321-10" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb321-11"><a href="#cb321-11" aria-hidden="true"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span>
-<span id="cb321-12"><a href="#cb321-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb321-13"><a href="#cb321-13" aria-hidden="true"></a></span>
-<span id="cb321-14"><a href="#cb321-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb324"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb324-1"><a href="#cb324-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb324-2"><a href="#cb324-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
+<span id="cb324-3"><a href="#cb324-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb324-4"><a href="#cb324-4" aria-hidden="true"></a></span>
+<span id="cb324-5"><a href="#cb324-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb324-6"><a href="#cb324-6" aria-hidden="true"></a>This is _emphasized text_ and this is a math subscript: <span class="ss">$m</span><span class="sc">\_</span><span class="ss">n$</span>.</span>
+<span id="cb324-7"><a href="#cb324-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb324-8"><a href="#cb324-8" aria-hidden="true"></a></span>
+<span id="cb324-9"><a href="#cb324-9" aria-hidden="true"></a><span class="fu">\def\markdownOptionUnderscores</span>{false}</span>
+<span id="cb324-10"><a href="#cb324-10" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb324-11"><a href="#cb324-11" aria-hidden="true"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span>
+<span id="cb324-12"><a href="#cb324-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb324-13"><a href="#cb324-13" aria-hidden="true"></a></span>
+<span id="cb324-14"><a href="#cb324-14" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb322"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb322-1"><a href="#cb322-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb325"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb325-1"><a href="#cb325-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <em>emphasized text</em> and this is a math subscript: <em>mₙ</em>.</p>
@@ -3827,7 +3876,7 @@ Thomas,Edison,1847</code></pre>
<p>Plain <span class="tex">T<sub>e</sub>X</span> options control the communication between the <span class="tex">T<sub>e</sub>X</span> interface and the <code>markdown</code> Lua module. They are supported by all higher-level interfaces of the Markdown package, i.e. the plain <span class="tex">T<sub>e</sub>X</span>, <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> and Con<span class="tex">T<sub>e</sub>X</span>t interfaces.</p>
<h4 data-number="2.2.2.1" id="setting-lua-options-from-plain-tex"><span class="header-section-number">2.2.2.1</span> Setting Lua options from plain <span class="tex">T<sub>e</sub>X</span></h4>
<p>As a rule of thumb, you can set all Lua options directly from plain <span class="tex">T<sub>e</sub>X</span>. For example, to set the <strong><code>taskLists</code></strong> Lua option to <code>true</code>, you would include the following code in your plain <span class="tex">T<sub>e</sub>X</span> document:</p>
-<div class="sourceCode" id="cb323"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb323-1"><a href="#cb323-1" aria-hidden="true"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span></code></pre></div>
+<div class="sourceCode" id="cb326"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb326-1"><a href="#cb326-1" aria-hidden="true"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span></code></pre></div>
<h4 data-number="2.2.2.2" id="finalizing-and-freezing-the-cache"><span class="header-section-number">2.2.2.2</span> Finalizing and Freezing the Cache</h4>
<p>The <code>\markdownOptionFrozenCache</code> option uses the mapping previously created by the Lua interface <strong><code>finalizeCache</code></strong> option, and uses it to typeset the plain <span class="tex">T<sub>e</sub>X</span> document without invoking Lua. As a result, the plain <span class="tex">T<sub>e</sub>X</span> document becomes more portable, but further changes in the order and the content of markdown documents will not be reflected. It defaults to <code>false</code>.</p>
<p>The standard usage of the <strong><code>finalizeCache</code></strong> and <strong><code>frozenCache</code></strong> options is as follows:</p>
@@ -3852,68 +3901,68 @@ Thomas,Edison,1847</code></pre>
</ul>
<p>The <code>\markdownOptionCacheDir</code> and <code>\markdownOptionFrozenCacheFileName</code> commands correspond to the <code>cacheDir</code> and <code>frozenCacheFileName</code> Lua options.</p>
<p>Using a text editor, create a folder named <code>output-directory</code> and a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb324"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb324-1"><a href="#cb324-1" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
-<span id="cb324-2"><a href="#cb324-2" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb324-3"><a href="#cb324-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionHelperScriptFileName</span>{helper-script.lua}</span>
-<span id="cb324-4"><a href="#cb324-4" aria-hidden="true"></a><span class="fu">\def\markdownOptionInputTempFileName</span>{temporary-input.md}</span>
-<span id="cb324-5"><a href="#cb324-5" aria-hidden="true"></a><span class="fu">\def\markdownOptionOutputTempFileName</span>{temporary-output.tex}</span>
-<span id="cb324-6"><a href="#cb324-6" aria-hidden="true"></a><span class="fu">\def\markdownOptionErrorTempFileName</span>{error-output.txt}</span>
-<span id="cb324-7"><a href="#cb324-7" aria-hidden="true"></a><span class="fu">\def\markdownOptionOutputDir</span>{output-directory}</span>
-<span id="cb324-8"><a href="#cb324-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionCacheDir</span>{output-directory/cache-directory}</span>
-<span id="cb324-9"><a href="#cb324-9" aria-hidden="true"></a><span class="fu">\markdownOptionFinalizeCachetrue</span></span>
-<span id="cb324-10"><a href="#cb324-10" aria-hidden="true"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{output-directory/cache-directory/frozen-cache.tex}</span>
-<span id="cb324-11"><a href="#cb324-11" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb324-12"><a href="#cb324-12" aria-hidden="true"></a>Hello *world*!</span>
-<span id="cb324-13"><a href="#cb324-13" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb324-14"><a href="#cb324-14" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb325"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb325-1"><a href="#cb325-1" aria-hidden="true"></a><span class="ex">luatex</span> --output-directory output-directory document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb327"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb327-1"><a href="#cb327-1" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
+<span id="cb327-2"><a href="#cb327-2" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb327-3"><a href="#cb327-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionHelperScriptFileName</span>{helper-script.lua}</span>
+<span id="cb327-4"><a href="#cb327-4" aria-hidden="true"></a><span class="fu">\def\markdownOptionInputTempFileName</span>{temporary-input.md}</span>
+<span id="cb327-5"><a href="#cb327-5" aria-hidden="true"></a><span class="fu">\def\markdownOptionOutputTempFileName</span>{temporary-output.tex}</span>
+<span id="cb327-6"><a href="#cb327-6" aria-hidden="true"></a><span class="fu">\def\markdownOptionErrorTempFileName</span>{error-output.txt}</span>
+<span id="cb327-7"><a href="#cb327-7" aria-hidden="true"></a><span class="fu">\def\markdownOptionOutputDir</span>{output-directory}</span>
+<span id="cb327-8"><a href="#cb327-8" aria-hidden="true"></a><span class="fu">\def\markdownOptionCacheDir</span>{output-directory/cache-directory}</span>
+<span id="cb327-9"><a href="#cb327-9" aria-hidden="true"></a><span class="fu">\markdownOptionFinalizeCachetrue</span></span>
+<span id="cb327-10"><a href="#cb327-10" aria-hidden="true"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{output-directory/cache-directory/frozen-cache.tex}</span>
+<span id="cb327-11"><a href="#cb327-11" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb327-12"><a href="#cb327-12" aria-hidden="true"></a>Hello *world*!</span>
+<span id="cb327-13"><a href="#cb327-13" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb327-14"><a href="#cb327-14" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb328"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb328-1"><a href="#cb328-1" aria-hidden="true"></a><span class="ex">luatex</span> --output-directory output-directory document.tex</span></code></pre></div>
<p>A text document named <code>temporary-input.md</code> should be produced in the folder named <code>output-directory</code> and contain the following text:</p>
<blockquote>
<p>Hello *world*!</p>
</blockquote>
<p>A folder named <code>output-directory/cache-directory</code> should also be produced and contain fragments of the converted markdown document. LuaTeX does not need other temporary files to perform the conversion from markdown to <span class="tex">T<sub>e</sub>X</span>. To produce the remaining temporary files, invoke pdfTeX from the terminal:</p>
-<div class="sourceCode" id="cb326"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb326-1"><a href="#cb326-1" aria-hidden="true"></a><span class="ex">pdftex</span> --output-directory output-directory --shell-escape document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb329"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb329-1"><a href="#cb329-1" aria-hidden="true"></a><span class="ex">pdftex</span> --output-directory output-directory --shell-escape document.tex</span></code></pre></div>
<p>Text documents named <code>helper-script.lua</code>, and <code>temporary-output.md</code> should be produced in the folder named <code>output-directory</code>. The document named <code>helper-script.lua</code> will contain Lua code that was executed to convert markdown to plain <span class="tex">T<sub>e</sub>X</span>. The document named <code>temporary-output.tex</code> will contain the input markdown document converted to <span class="tex">T<sub>e</sub>X</span>.</p>
<p>No document named <code>error-output.txt</code> should be produced in the folder named <code>output-directory</code>. This document would only be produced if an error had occured while executing the Lua code. If this happens, please <a href="https://github.com/witiko/markdown/issues">file a bug</a>.</p>
<h4 data-number="2.2.2.4" id="package-documentation"><span class="header-section-number">2.2.2.4</span> Package Documentation</h4>
<p>The <code>\markdownOptionStripPercentSigns</code> macro controls whether a percent sign (<code>%</code>) at the beginning of a line will be discarded when reading Markdown input from a <span class="tex">T<sub>e</sub>X</span> document. This enables the use of markdown when writing <span class="tex">T<sub>e</sub>X</span> package documentation using the <a href="https://ctan.org/pkg/doc" title="doc – Format LaTeX documentation">Doc <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> package</a> by Frank Mittelbach. The recognized values of the macro are <code>true</code> (discard) and <code>false</code> (retain). It defaults to <code>false</code>.</p>
<p>Using a text editor, create a text document named <code>document.dtx</code> with the following content:</p>
-<div class="sourceCode" id="cb327"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb327-1"><a href="#cb327-1" aria-hidden="true"></a><span class="co">% \iffalse</span></span>
-<span id="cb327-2"><a href="#cb327-2" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">ltxdoc</span>}</span>
-<span id="cb327-3"><a href="#cb327-3" aria-hidden="true"></a><span class="bu">\usepackage</span>[stripPercentSigns]{<span class="ex">markdown</span>}</span>
-<span id="cb327-4"><a href="#cb327-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb327-5"><a href="#cb327-5" aria-hidden="true"></a><span class="fu">\DocInput</span>{document.dtx}</span>
-<span id="cb327-6"><a href="#cb327-6" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span>
-<span id="cb327-7"><a href="#cb327-7" aria-hidden="true"></a><span class="co">% \fi</span></span>
-<span id="cb327-8"><a href="#cb327-8" aria-hidden="true"></a><span class="co">%</span></span>
-<span id="cb327-9"><a href="#cb327-9" aria-hidden="true"></a><span class="co">% \begin{markdown}</span></span>
-<span id="cb327-10"><a href="#cb327-10" aria-hidden="true"></a><span class="co">% Hello *world*!</span></span>
-<span id="cb327-11"><a href="#cb327-11" aria-hidden="true"></a><span class="co">% \end{markdown}</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb328"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb328-1"><a href="#cb328-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.dtx</span></code></pre></div>
+<div class="sourceCode" id="cb330"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb330-1"><a href="#cb330-1" aria-hidden="true"></a><span class="co">% \iffalse</span></span>
+<span id="cb330-2"><a href="#cb330-2" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">ltxdoc</span>}</span>
+<span id="cb330-3"><a href="#cb330-3" aria-hidden="true"></a><span class="bu">\usepackage</span>[stripPercentSigns]{<span class="ex">markdown</span>}</span>
+<span id="cb330-4"><a href="#cb330-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb330-5"><a href="#cb330-5" aria-hidden="true"></a><span class="fu">\DocInput</span>{document.dtx}</span>
+<span id="cb330-6"><a href="#cb330-6" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span>
+<span id="cb330-7"><a href="#cb330-7" aria-hidden="true"></a><span class="co">% \fi</span></span>
+<span id="cb330-8"><a href="#cb330-8" aria-hidden="true"></a><span class="co">%</span></span>
+<span id="cb330-9"><a href="#cb330-9" aria-hidden="true"></a><span class="co">% \begin{markdown}</span></span>
+<span id="cb330-10"><a href="#cb330-10" aria-hidden="true"></a><span class="co">% Hello *world*!</span></span>
+<span id="cb330-11"><a href="#cb330-11" aria-hidden="true"></a><span class="co">% \end{markdown}</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb331"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb331-1"><a href="#cb331-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.dtx</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the text “Hello <em>world</em>!”</p>
<h3 data-number="2.2.3" id="latex-1"><span class="header-section-number">2.2.3</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span></h3>
<p><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> options allow us to disable the redefinition of the default renderer prototypes from plain <span class="tex">T<sub>e</sub>X</span>, load user-contributed themes, and invoke user-defined setup snippets.</p>
<h4 data-number="2.2.3.1" id="setting-lua-and-plain-tex-options-from-latex"><span class="header-section-number">2.2.3.1</span> Setting Lua and plain <span class="tex">T<sub>e</sub>X</span> options from <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span></h4>
<p>As a rule of thumb, we can set all Lua options directly from <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>. For example, to set the <strong><code>taskLists</code></strong> Lua option to <code>true</code>, we would include the following code in our <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> document:</p>
-<div class="sourceCode" id="cb329"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb329-1"><a href="#cb329-1" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb329-2"><a href="#cb329-2" aria-hidden="true"></a> taskLists = true,</span>
-<span id="cb329-3"><a href="#cb329-3" aria-hidden="true"></a>}</span></code></pre></div>
+<div class="sourceCode" id="cb332"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb332-1"><a href="#cb332-1" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb332-2"><a href="#cb332-2" aria-hidden="true"></a> taskLists = true,</span>
+<span id="cb332-3"><a href="#cb332-3" aria-hidden="true"></a>}</span></code></pre></div>
<p>We can also set all plain <span class="tex">T<sub>e</sub>X</span> options directly from <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>. For example, to set the <code>\markdownOptionHelperScriptFileName</code> plain <span class="tex">T<sub>e</sub>X</span> option to <code>helper-script.lua</code>, we would inclde the following code in our <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> document:</p>
-<div class="sourceCode" id="cb330"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb330-1"><a href="#cb330-1" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb330-2"><a href="#cb330-2" aria-hidden="true"></a> helperScriptFileName = helper-script.lua,</span>
-<span id="cb330-3"><a href="#cb330-3" aria-hidden="true"></a>}</span></code></pre></div>
-<h4 data-number="2.2.3.2" id="no-default-token-renderer-prototypes"><span class="header-section-number">2.2.3.2</span> No default token renderer prototypes</h4>
+<div class="sourceCode" id="cb333"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb333-1"><a href="#cb333-1" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb333-2"><a href="#cb333-2" aria-hidden="true"></a> helperScriptFileName = helper-script.lua,</span>
+<span id="cb333-3"><a href="#cb333-3" aria-hidden="true"></a>}</span></code></pre></div>
+<h4 data-number="2.2.3.2" id="latexplain"><span class="header-section-number">2.2.3.2</span> No default token renderer prototypes</h4>
<p>Default token renderer prototypes require <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> packages that may clash with other packages used in a document. Additionally, if we redefine token renderers and renderer prototypes ourselves, the default definitions will bring no benefit to us. Using the <code>plain</code> package option, we can keep the default definitions from the plain <span class="tex">T<sub>e</sub>X</span> implementation and prevent the soft <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> prerequisites from being loaded:</p>
-<div class="sourceCode" id="cb331"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb331-1"><a href="#cb331-1" aria-hidden="true"></a><span class="bu">\usepackage</span>[plain]{<span class="ex">markdown</span>}</span></code></pre></div>
-<h4 data-number="2.2.3.3" id="latex-themes"><span class="header-section-number">2.2.3.3</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> themes</h4>
+<div class="sourceCode" id="cb334"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb334-1"><a href="#cb334-1" aria-hidden="true"></a><span class="bu">\usepackage</span>[plain]{<span class="ex">markdown</span>}</span></code></pre></div>
+<h4 data-number="2.2.3.3" id="latexthemes"><span class="header-section-number">2.2.3.3</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> themes</h4>
<p>User-contributed <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> themes for the Markdown package provide a domain-specific interpretation of some Markdown tokens. Similarly to <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> packages, themes allow the authors to achieve a specific look and other high-level goals without low-level programming.</p>
<p>For example, to load themes named <code>witiko/beamer/MU</code> and <code>witiko/dot</code>, you would use the following code in the preamble of your document:</p>
-<div class="sourceCode" id="cb332"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb332-1"><a href="#cb332-1" aria-hidden="true"></a><span class="bu">\usepackage</span>[</span>
-<span id="cb332-2"><a href="#cb332-2" aria-hidden="true"></a> theme = witiko/beamer/MU,</span>
-<span id="cb332-3"><a href="#cb332-3" aria-hidden="true"></a> theme = witiko/dot,</span>
-<span id="cb332-4"><a href="#cb332-4" aria-hidden="true"></a>]{<span class="ex">markdown</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb335"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb335-1"><a href="#cb335-1" aria-hidden="true"></a><span class="bu">\usepackage</span>[</span>
+<span id="cb335-2"><a href="#cb335-2" aria-hidden="true"></a> theme = witiko/beamer/MU,</span>
+<span id="cb335-3"><a href="#cb335-3" aria-hidden="true"></a> theme = witiko/dot,</span>
+<span id="cb335-4"><a href="#cb335-4" aria-hidden="true"></a>]{<span class="ex">markdown</span>}</span></code></pre></div>
<p>Due to limitations of <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>, themes may not be loaded after the beginning of a <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> document.</p>
<p>Example themes provided with the Markdown package include:</p>
<dl>
@@ -3921,44 +3970,44 @@ Thomas,Edison,1847</code></pre>
<dd><p>A theme that typesets fenced code blocks with the <code>dot …</code> infostring as images of directed graphs rendered by the Graphviz tools. The right tail of the infostring is used as the image title. The theme requires a Unix-like operating system with GNU Diffutils and Graphviz installed. The theme also requires shell access unless the plain <span class="tex">T<sub>e</sub>X</span> option is enabled.</p>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-32"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-33"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb333"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb333-1"><a href="#cb333-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb333-2"><a href="#cb333-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[theme=witiko/dot]{<span class="ex">markdown</span>}</span>
-<span id="cb333-3"><a href="#cb333-3" aria-hidden="true"></a><span class="fu">\setkeys</span>{Gin}{</span>
-<span id="cb333-4"><a href="#cb333-4" aria-hidden="true"></a> width=<span class="fu">\columnwidth</span>,</span>
-<span id="cb333-5"><a href="#cb333-5" aria-hidden="true"></a> height=0.65<span class="fu">\paperheight</span>,</span>
-<span id="cb333-6"><a href="#cb333-6" aria-hidden="true"></a> keepaspectratio}</span>
-<span id="cb333-7"><a href="#cb333-7" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb333-8"><a href="#cb333-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb333-9"><a href="#cb333-9" aria-hidden="true"></a>``` dot Various formats of mathemathical formulae</span>
-<span id="cb333-10"><a href="#cb333-10" aria-hidden="true"></a>digraph tree {</span>
-<span id="cb333-11"><a href="#cb333-11" aria-hidden="true"></a> margin = 0;</span>
-<span id="cb333-12"><a href="#cb333-12" aria-hidden="true"></a> rankdir = &quot;LR&quot;;</span>
-<span id="cb333-13"><a href="#cb333-13" aria-hidden="true"></a></span>
-<span id="cb333-14"><a href="#cb333-14" aria-hidden="true"></a> latex -&gt; pmml;</span>
-<span id="cb333-15"><a href="#cb333-15" aria-hidden="true"></a> latex -&gt; cmml;</span>
-<span id="cb333-16"><a href="#cb333-16" aria-hidden="true"></a> pmml -&gt; slt;</span>
-<span id="cb333-17"><a href="#cb333-17" aria-hidden="true"></a> cmml -&gt; opt;</span>
-<span id="cb333-18"><a href="#cb333-18" aria-hidden="true"></a> cmml -&gt; prefix;</span>
-<span id="cb333-19"><a href="#cb333-19" aria-hidden="true"></a> cmml -&gt; infix;</span>
-<span id="cb333-20"><a href="#cb333-20" aria-hidden="true"></a> pmml -&gt; mterms [style=dashed];</span>
-<span id="cb333-21"><a href="#cb333-21" aria-hidden="true"></a> cmml -&gt; mterms;</span>
-<span id="cb333-22"><a href="#cb333-22" aria-hidden="true"></a></span>
-<span id="cb333-23"><a href="#cb333-23" aria-hidden="true"></a> latex [label = &quot;LaTeX&quot;];</span>
-<span id="cb333-24"><a href="#cb333-24" aria-hidden="true"></a> pmml [label = &quot;Presentation MathML&quot;];</span>
-<span id="cb333-25"><a href="#cb333-25" aria-hidden="true"></a> cmml [label = &quot;Content MathML&quot;];</span>
-<span id="cb333-26"><a href="#cb333-26" aria-hidden="true"></a> slt [label = &quot;Symbol Layout Tree&quot;];</span>
-<span id="cb333-27"><a href="#cb333-27" aria-hidden="true"></a> opt [label = &quot;Operator Tree&quot;];</span>
-<span id="cb333-28"><a href="#cb333-28" aria-hidden="true"></a> prefix [label = &quot;Prefix&quot;];</span>
-<span id="cb333-29"><a href="#cb333-29" aria-hidden="true"></a> infix [label = &quot;Infix&quot;];</span>
-<span id="cb333-30"><a href="#cb333-30" aria-hidden="true"></a> mterms [label = &quot;M-Terms&quot;];</span>
-<span id="cb333-31"><a href="#cb333-31" aria-hidden="true"></a>}</span>
-<span id="cb333-32"><a href="#cb333-32" aria-hidden="true"></a>```</span>
-<span id="cb333-33"><a href="#cb333-33" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb333-34"><a href="#cb333-34" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb334"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb334-1"><a href="#cb334-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb336"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb336-1"><a href="#cb336-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb336-2"><a href="#cb336-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[theme=witiko/dot]{<span class="ex">markdown</span>}</span>
+<span id="cb336-3"><a href="#cb336-3" aria-hidden="true"></a><span class="fu">\setkeys</span>{Gin}{</span>
+<span id="cb336-4"><a href="#cb336-4" aria-hidden="true"></a> width=<span class="fu">\columnwidth</span>,</span>
+<span id="cb336-5"><a href="#cb336-5" aria-hidden="true"></a> height=0.65<span class="fu">\paperheight</span>,</span>
+<span id="cb336-6"><a href="#cb336-6" aria-hidden="true"></a> keepaspectratio}</span>
+<span id="cb336-7"><a href="#cb336-7" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb336-8"><a href="#cb336-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb336-9"><a href="#cb336-9" aria-hidden="true"></a>``` dot Various formats of mathemathical formulae</span>
+<span id="cb336-10"><a href="#cb336-10" aria-hidden="true"></a>digraph tree {</span>
+<span id="cb336-11"><a href="#cb336-11" aria-hidden="true"></a> margin = 0;</span>
+<span id="cb336-12"><a href="#cb336-12" aria-hidden="true"></a> rankdir = &quot;LR&quot;;</span>
+<span id="cb336-13"><a href="#cb336-13" aria-hidden="true"></a></span>
+<span id="cb336-14"><a href="#cb336-14" aria-hidden="true"></a> latex -&gt; pmml;</span>
+<span id="cb336-15"><a href="#cb336-15" aria-hidden="true"></a> latex -&gt; cmml;</span>
+<span id="cb336-16"><a href="#cb336-16" aria-hidden="true"></a> pmml -&gt; slt;</span>
+<span id="cb336-17"><a href="#cb336-17" aria-hidden="true"></a> cmml -&gt; opt;</span>
+<span id="cb336-18"><a href="#cb336-18" aria-hidden="true"></a> cmml -&gt; prefix;</span>
+<span id="cb336-19"><a href="#cb336-19" aria-hidden="true"></a> cmml -&gt; infix;</span>
+<span id="cb336-20"><a href="#cb336-20" aria-hidden="true"></a> pmml -&gt; mterms [style=dashed];</span>
+<span id="cb336-21"><a href="#cb336-21" aria-hidden="true"></a> cmml -&gt; mterms;</span>
+<span id="cb336-22"><a href="#cb336-22" aria-hidden="true"></a></span>
+<span id="cb336-23"><a href="#cb336-23" aria-hidden="true"></a> latex [label = &quot;LaTeX&quot;];</span>
+<span id="cb336-24"><a href="#cb336-24" aria-hidden="true"></a> pmml [label = &quot;Presentation MathML&quot;];</span>
+<span id="cb336-25"><a href="#cb336-25" aria-hidden="true"></a> cmml [label = &quot;Content MathML&quot;];</span>
+<span id="cb336-26"><a href="#cb336-26" aria-hidden="true"></a> slt [label = &quot;Symbol Layout Tree&quot;];</span>
+<span id="cb336-27"><a href="#cb336-27" aria-hidden="true"></a> opt [label = &quot;Operator Tree&quot;];</span>
+<span id="cb336-28"><a href="#cb336-28" aria-hidden="true"></a> prefix [label = &quot;Prefix&quot;];</span>
+<span id="cb336-29"><a href="#cb336-29" aria-hidden="true"></a> infix [label = &quot;Infix&quot;];</span>
+<span id="cb336-30"><a href="#cb336-30" aria-hidden="true"></a> mterms [label = &quot;M-Terms&quot;];</span>
+<span id="cb336-31"><a href="#cb336-31" aria-hidden="true"></a>}</span>
+<span id="cb336-32"><a href="#cb336-32" aria-hidden="true"></a>```</span>
+<span id="cb336-33"><a href="#cb336-33" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb336-34"><a href="#cb336-34" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb337"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb337-1"><a href="#cb337-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain a drawing of a directed graph similar to Figure 1 from the following conference article:</p>
<blockquote>
<p>NOVOTNÝ, Vít, Petr SOJKA, Michal ŠTEFÁNIK and Dávid LUPTÁK. Three is Better than One: Ensembling Math Information Retrieval Systems. <em>CEUR Workshop Proceedings</em>. Thessaloniki, Greece: M. Jeusfeld c/o Redaktion Sun SITE, Informatik V, RWTH Aachen., 2020, vol. 2020, No 2696, p. 1-30. ISSN 1613-0073. <a href="http://ceur-ws.org/Vol-2696/paper_235.pdf" class="uri">http://ceur-ws.org/Vol-2696/paper_235.pdf</a></p>
@@ -3968,18 +4017,18 @@ Thomas,Edison,1847</code></pre>
<dd><p>A theme that adds support for downloading images whose URL has the http or https protocol. The theme requires the <strong><code>catchfile</code></strong> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> package and a Unix-like operating system with GNU Coreutils <code>md5sum</code> and either GNU Wget or cURL installed. The theme also requires shell access unless the plain <span class="tex">T<sub>e</sub>X</span> option is enabled.</p>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-33"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-34"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb335"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb335-1"><a href="#cb335-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb335-2"><a href="#cb335-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[theme=witiko/graphicx/http]{<span class="ex">markdown</span>}</span>
-<span id="cb335-3"><a href="#cb335-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb335-4"><a href="#cb335-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb335-5"><a href="#cb335-5" aria-hidden="true"></a>![img](https://github.com/witiko/markdown/raw/main/markdown.png</span>
-<span id="cb335-6"><a href="#cb335-6" aria-hidden="true"></a> &quot;The banner of the Markdown package&quot;)</span>
-<span id="cb335-7"><a href="#cb335-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb335-8"><a href="#cb335-8" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb338"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb338-1"><a href="#cb338-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb338-2"><a href="#cb338-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[theme=witiko/graphicx/http]{<span class="ex">markdown</span>}</span>
+<span id="cb338-3"><a href="#cb338-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb338-4"><a href="#cb338-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb338-5"><a href="#cb338-5" aria-hidden="true"></a>![img](https://github.com/witiko/markdown/raw/main/markdown.png</span>
+<span id="cb338-6"><a href="#cb338-6" aria-hidden="true"></a> &quot;The banner of the Markdown package&quot;)</span>
+<span id="cb338-7"><a href="#cb338-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb338-8"><a href="#cb338-8" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb336"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb336-1"><a href="#cb336-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb339"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb339-1"><a href="#cb339-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following image:</p>
<blockquote>
<figure>
@@ -3991,71 +4040,71 @@ Thomas,Edison,1847</code></pre>
<dd><p>A theme that makes tilde (<code>~</code>) always typeset the non-breaking space even when the <strong><code>hybrid</code></strong> Lua option is <code>false</code>.</p>
</dd>
</dl>
-<h5 class="unnumbered" data-number="" id="latex-example-34"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-35"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb337"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb337-1"><a href="#cb337-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb337-2"><a href="#cb337-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[theme=witiko/tilde]{<span class="ex">markdown</span>}</span>
-<span id="cb337-3"><a href="#cb337-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb337-4"><a href="#cb337-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb337-5"><a href="#cb337-5" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
-<span id="cb337-6"><a href="#cb337-6" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb337-7"><a href="#cb337-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb340"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb340-1"><a href="#cb340-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb340-2"><a href="#cb340-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[theme=witiko/tilde]{<span class="ex">markdown</span>}</span>
+<span id="cb340-3"><a href="#cb340-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb340-4"><a href="#cb340-4" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb340-5"><a href="#cb340-5" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
+<span id="cb340-6"><a href="#cb340-6" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb340-7"><a href="#cb340-7" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb338"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb338-1"><a href="#cb338-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb341"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb341-1"><a href="#cb341-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text, where the middot (<code>·</code>) denotes a non-breaking space:</p>
<blockquote>
<p>Bartel·Leendert van·der·Waerden</p>
</blockquote>
-<h4 data-number="2.2.3.4" id="latex-setup-snippets"><span class="header-section-number">2.2.3.4</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> setup snippets</h4>
+<h4 data-number="2.2.3.4" id="latexsetupsnippets"><span class="header-section-number">2.2.3.4</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> setup snippets</h4>
<p>User-contributed <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> themes provide global control over high-level goals. However, it is often desirable to change only some local aspects of a document. <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> setup snippets provide syntactic sugar for defining and invoking various options locally.</p>
<p>Here is how we can use setup snippets to store options and invoke them later:</p>
-<div class="sourceCode" id="cb339"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb339-1"><a href="#cb339-1" aria-hidden="true"></a><span class="fu">\markdownSetupSnippet</span>{romanNumerals}{</span>
-<span id="cb339-2"><a href="#cb339-2" aria-hidden="true"></a> renderers = {</span>
-<span id="cb339-3"><a href="#cb339-3" aria-hidden="true"></a> olItemWithNumber = {<span class="co">%</span></span>
-<span id="cb339-4"><a href="#cb339-4" aria-hidden="true"></a> <span class="fu">\item</span>[<span class="fu">\romannumeral</span>#1<span class="fu">\relax</span>.]<span class="co">%</span></span>
-<span id="cb339-5"><a href="#cb339-5" aria-hidden="true"></a> },</span>
-<span id="cb339-6"><a href="#cb339-6" aria-hidden="true"></a> },</span>
-<span id="cb339-7"><a href="#cb339-7" aria-hidden="true"></a>}</span>
-<span id="cb339-8"><a href="#cb339-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb339-9"><a href="#cb339-9" aria-hidden="true"></a></span>
-<span id="cb339-10"><a href="#cb339-10" aria-hidden="true"></a>The following ordered list will be preceded by arabic numerals:</span>
-<span id="cb339-11"><a href="#cb339-11" aria-hidden="true"></a></span>
-<span id="cb339-12"><a href="#cb339-12" aria-hidden="true"></a>1. wahid</span>
-<span id="cb339-13"><a href="#cb339-13" aria-hidden="true"></a>2. aithnayn</span>
-<span id="cb339-14"><a href="#cb339-14" aria-hidden="true"></a></span>
-<span id="cb339-15"><a href="#cb339-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb339-16"><a href="#cb339-16" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{snippet=romanNumerals}</span>
-<span id="cb339-17"><a href="#cb339-17" aria-hidden="true"></a></span>
-<span id="cb339-18"><a href="#cb339-18" aria-hidden="true"></a>The following ordered list will be preceded by roman numerals:</span>
-<span id="cb339-19"><a href="#cb339-19" aria-hidden="true"></a></span>
-<span id="cb339-20"><a href="#cb339-20" aria-hidden="true"></a>3. tres</span>
-<span id="cb339-21"><a href="#cb339-21" aria-hidden="true"></a>4. quattuor</span>
-<span id="cb339-22"><a href="#cb339-22" aria-hidden="true"></a></span>
-<span id="cb339-23"><a href="#cb339-23" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb342"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb342-1"><a href="#cb342-1" aria-hidden="true"></a><span class="fu">\markdownSetupSnippet</span>{romanNumerals}{</span>
+<span id="cb342-2"><a href="#cb342-2" aria-hidden="true"></a> renderers = {</span>
+<span id="cb342-3"><a href="#cb342-3" aria-hidden="true"></a> olItemWithNumber = {<span class="co">%</span></span>
+<span id="cb342-4"><a href="#cb342-4" aria-hidden="true"></a> <span class="fu">\item</span>[<span class="fu">\romannumeral</span>#1<span class="fu">\relax</span>.]<span class="co">%</span></span>
+<span id="cb342-5"><a href="#cb342-5" aria-hidden="true"></a> },</span>
+<span id="cb342-6"><a href="#cb342-6" aria-hidden="true"></a> },</span>
+<span id="cb342-7"><a href="#cb342-7" aria-hidden="true"></a>}</span>
+<span id="cb342-8"><a href="#cb342-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb342-9"><a href="#cb342-9" aria-hidden="true"></a></span>
+<span id="cb342-10"><a href="#cb342-10" aria-hidden="true"></a>The following ordered list will be preceded by arabic numerals:</span>
+<span id="cb342-11"><a href="#cb342-11" aria-hidden="true"></a></span>
+<span id="cb342-12"><a href="#cb342-12" aria-hidden="true"></a>1. wahid</span>
+<span id="cb342-13"><a href="#cb342-13" aria-hidden="true"></a>2. aithnayn</span>
+<span id="cb342-14"><a href="#cb342-14" aria-hidden="true"></a></span>
+<span id="cb342-15"><a href="#cb342-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb342-16"><a href="#cb342-16" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{snippet=romanNumerals}</span>
+<span id="cb342-17"><a href="#cb342-17" aria-hidden="true"></a></span>
+<span id="cb342-18"><a href="#cb342-18" aria-hidden="true"></a>The following ordered list will be preceded by roman numerals:</span>
+<span id="cb342-19"><a href="#cb342-19" aria-hidden="true"></a></span>
+<span id="cb342-20"><a href="#cb342-20" aria-hidden="true"></a>3. tres</span>
+<span id="cb342-21"><a href="#cb342-21" aria-hidden="true"></a>4. quattuor</span>
+<span id="cb342-22"><a href="#cb342-22" aria-hidden="true"></a></span>
+<span id="cb342-23"><a href="#cb342-23" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span></code></pre></div>
<h2 data-number="2.3" id="markdown-tokens"><span class="header-section-number">2.3</span> Markdown Tokens</h2>
<p>A key feature of the Markdown package is the support for manipulating markdown tokens, such as headings, emphasized text, links, and lists, in <span class="tex">T<sub>e</sub>X</span>. Instead of reducing <span class="tex">T<sub>e</sub>X</span> to a PDF document producer, the Markdown package allows the user to specify how every markdown token should be processed and rendered.</p>
-<h3 data-number="2.3.1" id="token-renderers"><span class="header-section-number">2.3.1</span> Token Renderers</h3>
+<h3 data-number="2.3.1" id="texrenderersuser"><span class="header-section-number">2.3.1</span> Token Renderers</h3>
<p>Token renderers are user-defined <span class="tex">T<sub>e</sub>X</span> macros, which render markdown tokens. In this section, I will describe the individual token renderers.</p>
<h4 data-number="2.3.1.1" id="tickbox-renderers"><span class="header-section-number">2.3.1.1</span> Tickbox Renderers</h4>
<p>The macros named <code>\markdownRendererTickedBox</code>, <code>\markdownRendererHalfTickedBox</code>, and <code>\markdownRendererUntickedBox</code> represent ticked and unticked boxes, respectively. These macros will either be produced, when the <strong><code>taskLists</code></strong> option is enabled, or when the Ballot Box with X (☒, U+2612), Hourglass (⌛, U+231B) or Ballot Box (☐, U+2610) Unicode characters are encountered in the markdown input, respectively.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-35"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-36"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb340"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb340-1"><a href="#cb340-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb340-2"><a href="#cb340-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span>
-<span id="cb340-3"><a href="#cb340-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb340-4"><a href="#cb340-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb340-5"><a href="#cb340-5" aria-hidden="true"></a> untickedBox = No,</span>
-<span id="cb340-6"><a href="#cb340-6" aria-hidden="true"></a> tickedBox = Yes,</span>
-<span id="cb340-7"><a href="#cb340-7" aria-hidden="true"></a> },</span>
-<span id="cb340-8"><a href="#cb340-8" aria-hidden="true"></a>}</span>
-<span id="cb340-9"><a href="#cb340-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb340-10"><a href="#cb340-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb340-11"><a href="#cb340-11" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
-<span id="cb340-12"><a href="#cb340-12" aria-hidden="true"></a>- [x] I can!</span>
-<span id="cb340-13"><a href="#cb340-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb340-14"><a href="#cb340-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb343"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb343-1"><a href="#cb343-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb343-2"><a href="#cb343-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span>
+<span id="cb343-3"><a href="#cb343-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb343-4"><a href="#cb343-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb343-5"><a href="#cb343-5" aria-hidden="true"></a> untickedBox = No,</span>
+<span id="cb343-6"><a href="#cb343-6" aria-hidden="true"></a> tickedBox = Yes,</span>
+<span id="cb343-7"><a href="#cb343-7" aria-hidden="true"></a> },</span>
+<span id="cb343-8"><a href="#cb343-8" aria-hidden="true"></a>}</span>
+<span id="cb343-9"><a href="#cb343-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb343-10"><a href="#cb343-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb343-11"><a href="#cb343-11" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
+<span id="cb343-12"><a href="#cb343-12" aria-hidden="true"></a>- [x] I can!</span>
+<span id="cb343-13"><a href="#cb343-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb343-14"><a href="#cb343-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb341"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb341-1"><a href="#cb341-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb344"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb344-1"><a href="#cb344-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<ul>
@@ -4065,18 +4114,18 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-28">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb342"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb342-1"><a href="#cb342-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb342-2"><a href="#cb342-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span>
-<span id="cb342-3"><a href="#cb342-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span>
-<span id="cb342-4"><a href="#cb342-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span>
-<span id="cb342-5"><a href="#cb342-5" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb342-6"><a href="#cb342-6" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb342-7"><a href="#cb342-7" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
-<span id="cb342-8"><a href="#cb342-8" aria-hidden="true"></a>- [x] I can!</span>
-<span id="cb342-9"><a href="#cb342-9" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb342-10"><a href="#cb342-10" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb345"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb345-1"><a href="#cb345-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb345-2"><a href="#cb345-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span>
+<span id="cb345-3"><a href="#cb345-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span>
+<span id="cb345-4"><a href="#cb345-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span>
+<span id="cb345-5"><a href="#cb345-5" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb345-6"><a href="#cb345-6" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb345-7"><a href="#cb345-7" aria-hidden="true"></a>- [ ] you can&#39;t.</span>
+<span id="cb345-8"><a href="#cb345-8" aria-hidden="true"></a>- [x] I can!</span>
+<span id="cb345-9"><a href="#cb345-9" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb345-10"><a href="#cb345-10" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb343"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb343-1"><a href="#cb343-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb346"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb346-1"><a href="#cb346-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<ul>
@@ -4087,75 +4136,75 @@ Thomas,Edison,1847</code></pre>
<h4 data-number="2.3.1.2" id="markdown-document-renderers"><span class="header-section-number">2.3.1.2</span> Markdown Document Renderers</h4>
<p>The <code>\markdownRendererDocumentBegin</code> and <code>\markdownRendererDocumentEnd</code> macros represent the beginning and the end of a <em>markdown</em> document. The macros receive no arguments.</p>
<p>A <span class="tex">T<sub>e</sub>X</span> document may contain any number of markdown documents. Additionally, markdown documents may appear not only in a sequence, but several markdown documents may also be <em>nested</em>. Redefinitions of the macros should take this into account.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-36"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-37"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>nested.md</code> with the following content:</p>
-<div class="sourceCode" id="cb344"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb344-1"><a href="#cb344-1" aria-hidden="true"></a>This is a *nested* markdown document.</span></code></pre></div>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb345"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb345-1"><a href="#cb345-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb345-2"><a href="#cb345-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span>
-<span id="cb345-3"><a href="#cb345-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb345-4"><a href="#cb345-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb345-5"><a href="#cb345-5" aria-hidden="true"></a> contentBlock = {<span class="co">%</span></span>
-<span id="cb345-6"><a href="#cb345-6" aria-hidden="true"></a> <span class="fu">\markdownInput</span>{#3}<span class="co">%</span></span>
-<span id="cb345-7"><a href="#cb345-7" aria-hidden="true"></a> },</span>
-<span id="cb345-8"><a href="#cb345-8" aria-hidden="true"></a> documentBegin = {<span class="co">%</span></span>
-<span id="cb345-9"><a href="#cb345-9" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-10"><a href="#cb345-10" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a document)}</span>
-<span id="cb345-11"><a href="#cb345-11" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-12"><a href="#cb345-12" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
-<span id="cb345-13"><a href="#cb345-13" aria-hidden="true"></a> <span class="fu">\markdownSetup</span>{snippet=first-nesting-level}<span class="co">%</span></span>
-<span id="cb345-14"><a href="#cb345-14" aria-hidden="true"></a> },</span>
-<span id="cb345-15"><a href="#cb345-15" aria-hidden="true"></a> documentEnd = {<span class="co">%</span></span>
-<span id="cb345-16"><a href="#cb345-16" aria-hidden="true"></a> <span class="fu">\endgroup</span></span>
-<span id="cb345-17"><a href="#cb345-17" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-18"><a href="#cb345-18" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a document)}</span>
-<span id="cb345-19"><a href="#cb345-19" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-20"><a href="#cb345-20" aria-hidden="true"></a> },</span>
-<span id="cb345-21"><a href="#cb345-21" aria-hidden="true"></a> },</span>
-<span id="cb345-22"><a href="#cb345-22" aria-hidden="true"></a>}</span>
-<span id="cb345-23"><a href="#cb345-23" aria-hidden="true"></a><span class="fu">\markdownSetupSnippet</span>{first-nesting-level}{</span>
-<span id="cb345-24"><a href="#cb345-24" aria-hidden="true"></a> renderers = {</span>
-<span id="cb345-25"><a href="#cb345-25" aria-hidden="true"></a> documentBegin = {</span>
-<span id="cb345-26"><a href="#cb345-26" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-27"><a href="#cb345-27" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span>
-<span id="cb345-28"><a href="#cb345-28" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-29"><a href="#cb345-29" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
-<span id="cb345-30"><a href="#cb345-30" aria-hidden="true"></a> <span class="fu">\markdownSetup</span>{snippet=second-nesting-level-and-below}</span>
-<span id="cb345-31"><a href="#cb345-31" aria-hidden="true"></a> },</span>
-<span id="cb345-32"><a href="#cb345-32" aria-hidden="true"></a> },</span>
-<span id="cb345-33"><a href="#cb345-33" aria-hidden="true"></a>}</span>
-<span id="cb345-34"><a href="#cb345-34" aria-hidden="true"></a><span class="fu">\markdownSetupSnippet</span>{second-nesting-level-and-below}{</span>
-<span id="cb345-35"><a href="#cb345-35" aria-hidden="true"></a> renderers = {</span>
-<span id="cb345-36"><a href="#cb345-36" aria-hidden="true"></a> documentBegin = {</span>
-<span id="cb345-37"><a href="#cb345-37" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-38"><a href="#cb345-38" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span>
-<span id="cb345-39"><a href="#cb345-39" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-40"><a href="#cb345-40" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
-<span id="cb345-41"><a href="#cb345-41" aria-hidden="true"></a> },</span>
-<span id="cb345-42"><a href="#cb345-42" aria-hidden="true"></a> documentEnd = {</span>
-<span id="cb345-43"><a href="#cb345-43" aria-hidden="true"></a> <span class="fu">\endgroup</span></span>
-<span id="cb345-44"><a href="#cb345-44" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-45"><a href="#cb345-45" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a nested document)}</span>
-<span id="cb345-46"><a href="#cb345-46" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb345-47"><a href="#cb345-47" aria-hidden="true"></a> },</span>
-<span id="cb345-48"><a href="#cb345-48" aria-hidden="true"></a> },</span>
-<span id="cb345-49"><a href="#cb345-49" aria-hidden="true"></a>}</span>
-<span id="cb345-50"><a href="#cb345-50" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb345-51"><a href="#cb345-51" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb345-52"><a href="#cb345-52" aria-hidden="true"></a>Hello *world*!</span>
-<span id="cb345-53"><a href="#cb345-53" aria-hidden="true"></a></span>
-<span id="cb345-54"><a href="#cb345-54" aria-hidden="true"></a>/nested.md</span>
-<span id="cb345-55"><a href="#cb345-55" aria-hidden="true"></a></span>
-<span id="cb345-56"><a href="#cb345-56" aria-hidden="true"></a>_Foo_ bar!</span>
-<span id="cb345-57"><a href="#cb345-57" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb345-58"><a href="#cb345-58" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb345-59"><a href="#cb345-59" aria-hidden="true"></a></span>
-<span id="cb345-60"><a href="#cb345-60" aria-hidden="true"></a>Bar baz!</span>
-<span id="cb345-61"><a href="#cb345-61" aria-hidden="true"></a></span>
-<span id="cb345-62"><a href="#cb345-62" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb345-63"><a href="#cb345-63" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb346"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb346-1"><a href="#cb346-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb347"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb347-1"><a href="#cb347-1" aria-hidden="true"></a>This is a *nested* markdown document.</span></code></pre></div>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb348"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb348-1"><a href="#cb348-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb348-2"><a href="#cb348-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span>
+<span id="cb348-3"><a href="#cb348-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb348-4"><a href="#cb348-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb348-5"><a href="#cb348-5" aria-hidden="true"></a> contentBlock = {<span class="co">%</span></span>
+<span id="cb348-6"><a href="#cb348-6" aria-hidden="true"></a> <span class="fu">\markdownInput</span>{#3}<span class="co">%</span></span>
+<span id="cb348-7"><a href="#cb348-7" aria-hidden="true"></a> },</span>
+<span id="cb348-8"><a href="#cb348-8" aria-hidden="true"></a> documentBegin = {<span class="co">%</span></span>
+<span id="cb348-9"><a href="#cb348-9" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-10"><a href="#cb348-10" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a document)}</span>
+<span id="cb348-11"><a href="#cb348-11" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-12"><a href="#cb348-12" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
+<span id="cb348-13"><a href="#cb348-13" aria-hidden="true"></a> <span class="fu">\markdownSetup</span>{snippet=first-nesting-level}<span class="co">%</span></span>
+<span id="cb348-14"><a href="#cb348-14" aria-hidden="true"></a> },</span>
+<span id="cb348-15"><a href="#cb348-15" aria-hidden="true"></a> documentEnd = {<span class="co">%</span></span>
+<span id="cb348-16"><a href="#cb348-16" aria-hidden="true"></a> <span class="fu">\endgroup</span></span>
+<span id="cb348-17"><a href="#cb348-17" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-18"><a href="#cb348-18" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a document)}</span>
+<span id="cb348-19"><a href="#cb348-19" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-20"><a href="#cb348-20" aria-hidden="true"></a> },</span>
+<span id="cb348-21"><a href="#cb348-21" aria-hidden="true"></a> },</span>
+<span id="cb348-22"><a href="#cb348-22" aria-hidden="true"></a>}</span>
+<span id="cb348-23"><a href="#cb348-23" aria-hidden="true"></a><span class="fu">\markdownSetupSnippet</span>{first-nesting-level}{</span>
+<span id="cb348-24"><a href="#cb348-24" aria-hidden="true"></a> renderers = {</span>
+<span id="cb348-25"><a href="#cb348-25" aria-hidden="true"></a> documentBegin = {</span>
+<span id="cb348-26"><a href="#cb348-26" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-27"><a href="#cb348-27" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span>
+<span id="cb348-28"><a href="#cb348-28" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-29"><a href="#cb348-29" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
+<span id="cb348-30"><a href="#cb348-30" aria-hidden="true"></a> <span class="fu">\markdownSetup</span>{snippet=second-nesting-level-and-below}</span>
+<span id="cb348-31"><a href="#cb348-31" aria-hidden="true"></a> },</span>
+<span id="cb348-32"><a href="#cb348-32" aria-hidden="true"></a> },</span>
+<span id="cb348-33"><a href="#cb348-33" aria-hidden="true"></a>}</span>
+<span id="cb348-34"><a href="#cb348-34" aria-hidden="true"></a><span class="fu">\markdownSetupSnippet</span>{second-nesting-level-and-below}{</span>
+<span id="cb348-35"><a href="#cb348-35" aria-hidden="true"></a> renderers = {</span>
+<span id="cb348-36"><a href="#cb348-36" aria-hidden="true"></a> documentBegin = {</span>
+<span id="cb348-37"><a href="#cb348-37" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-38"><a href="#cb348-38" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span>
+<span id="cb348-39"><a href="#cb348-39" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-40"><a href="#cb348-40" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
+<span id="cb348-41"><a href="#cb348-41" aria-hidden="true"></a> },</span>
+<span id="cb348-42"><a href="#cb348-42" aria-hidden="true"></a> documentEnd = {</span>
+<span id="cb348-43"><a href="#cb348-43" aria-hidden="true"></a> <span class="fu">\endgroup</span></span>
+<span id="cb348-44"><a href="#cb348-44" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-45"><a href="#cb348-45" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a nested document)}</span>
+<span id="cb348-46"><a href="#cb348-46" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb348-47"><a href="#cb348-47" aria-hidden="true"></a> },</span>
+<span id="cb348-48"><a href="#cb348-48" aria-hidden="true"></a> },</span>
+<span id="cb348-49"><a href="#cb348-49" aria-hidden="true"></a>}</span>
+<span id="cb348-50"><a href="#cb348-50" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb348-51"><a href="#cb348-51" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb348-52"><a href="#cb348-52" aria-hidden="true"></a>Hello *world*!</span>
+<span id="cb348-53"><a href="#cb348-53" aria-hidden="true"></a></span>
+<span id="cb348-54"><a href="#cb348-54" aria-hidden="true"></a>/nested.md</span>
+<span id="cb348-55"><a href="#cb348-55" aria-hidden="true"></a></span>
+<span id="cb348-56"><a href="#cb348-56" aria-hidden="true"></a>_Foo_ bar!</span>
+<span id="cb348-57"><a href="#cb348-57" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb348-58"><a href="#cb348-58" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb348-59"><a href="#cb348-59" aria-hidden="true"></a></span>
+<span id="cb348-60"><a href="#cb348-60" aria-hidden="true"></a>Bar baz!</span>
+<span id="cb348-61"><a href="#cb348-61" aria-hidden="true"></a></span>
+<span id="cb348-62"><a href="#cb348-62" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb348-63"><a href="#cb348-63" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb349"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb349-1"><a href="#cb349-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p><em>(The beginning of a document)</em></p>
@@ -4173,48 +4222,48 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererInterblockSeparator</code> macro represents a separator between two markdown block elements. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-17">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb347"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb347-1"><a href="#cb347-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb347-2"><a href="#cb347-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb347-3"><a href="#cb347-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb347-4"><a href="#cb347-4" aria-hidden="true"></a> {<span class="fu">\it</span>(The end of a block)}<span class="co">%</span></span>
-<span id="cb347-5"><a href="#cb347-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb347-6"><a href="#cb347-6" aria-hidden="true"></a>}</span>
-<span id="cb347-7"><a href="#cb347-7" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb347-8"><a href="#cb347-8" aria-hidden="true"></a>Hello *world*!</span>
-<span id="cb347-9"><a href="#cb347-9" aria-hidden="true"></a></span>
-<span id="cb347-10"><a href="#cb347-10" aria-hidden="true"></a>_Foo_ bar!</span>
-<span id="cb347-11"><a href="#cb347-11" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb347-12"><a href="#cb347-12" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb350"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb350-1"><a href="#cb350-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb350-2"><a href="#cb350-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb350-3"><a href="#cb350-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb350-4"><a href="#cb350-4" aria-hidden="true"></a> {<span class="fu">\it</span>(The end of a block)}<span class="co">%</span></span>
+<span id="cb350-5"><a href="#cb350-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb350-6"><a href="#cb350-6" aria-hidden="true"></a>}</span>
+<span id="cb350-7"><a href="#cb350-7" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb350-8"><a href="#cb350-8" aria-hidden="true"></a>Hello *world*!</span>
+<span id="cb350-9"><a href="#cb350-9" aria-hidden="true"></a></span>
+<span id="cb350-10"><a href="#cb350-10" aria-hidden="true"></a>_Foo_ bar!</span>
+<span id="cb350-11"><a href="#cb350-11" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb350-12"><a href="#cb350-12" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb348"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb348-1"><a href="#cb348-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb351"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb351-1"><a href="#cb351-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
<p><em>(The end of a block)</em></p>
<p><em>Foo</em> bar!</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-37"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-38"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb349"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb349-1"><a href="#cb349-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb349-2"><a href="#cb349-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb349-3"><a href="#cb349-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb349-4"><a href="#cb349-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb349-5"><a href="#cb349-5" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
-<span id="cb349-6"><a href="#cb349-6" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb349-7"><a href="#cb349-7" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span>
-<span id="cb349-8"><a href="#cb349-8" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb349-9"><a href="#cb349-9" aria-hidden="true"></a> },</span>
-<span id="cb349-10"><a href="#cb349-10" aria-hidden="true"></a> },</span>
-<span id="cb349-11"><a href="#cb349-11" aria-hidden="true"></a>}</span>
-<span id="cb349-12"><a href="#cb349-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb349-13"><a href="#cb349-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb349-14"><a href="#cb349-14" aria-hidden="true"></a>Hello *world*!</span>
-<span id="cb349-15"><a href="#cb349-15" aria-hidden="true"></a></span>
-<span id="cb349-16"><a href="#cb349-16" aria-hidden="true"></a>_Foo_ bar!</span>
-<span id="cb349-17"><a href="#cb349-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb349-18"><a href="#cb349-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb350"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb350-1"><a href="#cb350-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb352"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb352-1"><a href="#cb352-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb352-2"><a href="#cb352-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb352-3"><a href="#cb352-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb352-4"><a href="#cb352-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb352-5"><a href="#cb352-5" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
+<span id="cb352-6"><a href="#cb352-6" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb352-7"><a href="#cb352-7" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span>
+<span id="cb352-8"><a href="#cb352-8" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb352-9"><a href="#cb352-9" aria-hidden="true"></a> },</span>
+<span id="cb352-10"><a href="#cb352-10" aria-hidden="true"></a> },</span>
+<span id="cb352-11"><a href="#cb352-11" aria-hidden="true"></a>}</span>
+<span id="cb352-12"><a href="#cb352-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb352-13"><a href="#cb352-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb352-14"><a href="#cb352-14" aria-hidden="true"></a>Hello *world*!</span>
+<span id="cb352-15"><a href="#cb352-15" aria-hidden="true"></a></span>
+<span id="cb352-16"><a href="#cb352-16" aria-hidden="true"></a>_Foo_ bar!</span>
+<span id="cb352-17"><a href="#cb352-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb352-18"><a href="#cb352-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb353"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb353-1"><a href="#cb353-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
@@ -4223,21 +4272,21 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-29">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb351"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb351-1"><a href="#cb351-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb351-2"><a href="#cb351-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb351-3"><a href="#cb351-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb351-4"><a href="#cb351-4" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span>
-<span id="cb351-5"><a href="#cb351-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb351-6"><a href="#cb351-6" aria-hidden="true"></a>}</span>
-<span id="cb351-7"><a href="#cb351-7" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb351-8"><a href="#cb351-8" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb351-9"><a href="#cb351-9" aria-hidden="true"></a>Hello *world*!</span>
-<span id="cb351-10"><a href="#cb351-10" aria-hidden="true"></a></span>
-<span id="cb351-11"><a href="#cb351-11" aria-hidden="true"></a>_Foo_ bar!</span>
-<span id="cb351-12"><a href="#cb351-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb351-13"><a href="#cb351-13" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb354"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb354-1"><a href="#cb354-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb354-2"><a href="#cb354-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb354-3"><a href="#cb354-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb354-4"><a href="#cb354-4" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span>
+<span id="cb354-5"><a href="#cb354-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb354-6"><a href="#cb354-6" aria-hidden="true"></a>}</span>
+<span id="cb354-7"><a href="#cb354-7" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb354-8"><a href="#cb354-8" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb354-9"><a href="#cb354-9" aria-hidden="true"></a>Hello *world*!</span>
+<span id="cb354-10"><a href="#cb354-10" aria-hidden="true"></a></span>
+<span id="cb354-11"><a href="#cb354-11" aria-hidden="true"></a>_Foo_ bar!</span>
+<span id="cb354-12"><a href="#cb354-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb354-13"><a href="#cb354-13" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb352"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb352-1"><a href="#cb352-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb355"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb355-1"><a href="#cb355-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
@@ -4248,44 +4297,44 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererLineBreak</code> macro represents a forced line break. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-18">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb353"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb353-1"><a href="#cb353-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb353-2"><a href="#cb353-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLineBreak</span>{<span class="co">%</span></span>
-<span id="cb353-3"><a href="#cb353-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb353-4"><a href="#cb353-4" aria-hidden="true"></a> {<span class="fu">\it</span>(A forced linebreak)}<span class="co">%</span></span>
-<span id="cb353-5"><a href="#cb353-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb353-6"><a href="#cb353-6" aria-hidden="true"></a>}</span>
-<span id="cb353-7"><a href="#cb353-7" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb353-8"><a href="#cb353-8" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb356"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb356-1"><a href="#cb356-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb356-2"><a href="#cb356-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLineBreak</span>{<span class="co">%</span></span>
+<span id="cb356-3"><a href="#cb356-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb356-4"><a href="#cb356-4" aria-hidden="true"></a> {<span class="fu">\it</span>(A forced linebreak)}<span class="co">%</span></span>
+<span id="cb356-5"><a href="#cb356-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb356-6"><a href="#cb356-6" aria-hidden="true"></a>}</span>
+<span id="cb356-7"><a href="#cb356-7" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb356-8"><a href="#cb356-8" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Using a text editor, create a text document named <code>example.md</code> with the following content. Note the two spaces at the end of the first line, which specify a hard linebreak. Due to the limitations of the <span class="tex">T<sub>e</sub>X</span> input processor, hard linebreaks would be ignored if we typed them directly into the <code>document.tex</code> document.</p>
<pre><code>Hello world! <br/>_Foo_ bar!</code></pre>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb354"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb354-1"><a href="#cb354-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb357"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb357-1"><a href="#cb357-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
<p><em>(A forced linebreak)</em></p>
<p><em>Foo</em> bar!</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-38"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-39"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb355"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb355-1"><a href="#cb355-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb355-2"><a href="#cb355-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb355-3"><a href="#cb355-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb355-4"><a href="#cb355-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb355-5"><a href="#cb355-5" aria-hidden="true"></a> lineBreak = {<span class="co">%</span></span>
-<span id="cb355-6"><a href="#cb355-6" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb355-7"><a href="#cb355-7" aria-hidden="true"></a> <span class="fu">\emph</span>{(A forced linebreak)}<span class="co">%</span></span>
-<span id="cb355-8"><a href="#cb355-8" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb355-9"><a href="#cb355-9" aria-hidden="true"></a> },</span>
-<span id="cb355-10"><a href="#cb355-10" aria-hidden="true"></a> },</span>
-<span id="cb355-11"><a href="#cb355-11" aria-hidden="true"></a>}</span>
-<span id="cb355-12"><a href="#cb355-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb355-13"><a href="#cb355-13" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb355-14"><a href="#cb355-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb358"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb358-1"><a href="#cb358-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb358-2"><a href="#cb358-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb358-3"><a href="#cb358-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb358-4"><a href="#cb358-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb358-5"><a href="#cb358-5" aria-hidden="true"></a> lineBreak = {<span class="co">%</span></span>
+<span id="cb358-6"><a href="#cb358-6" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb358-7"><a href="#cb358-7" aria-hidden="true"></a> <span class="fu">\emph</span>{(A forced linebreak)}<span class="co">%</span></span>
+<span id="cb358-8"><a href="#cb358-8" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb358-9"><a href="#cb358-9" aria-hidden="true"></a> },</span>
+<span id="cb358-10"><a href="#cb358-10" aria-hidden="true"></a> },</span>
+<span id="cb358-11"><a href="#cb358-11" aria-hidden="true"></a>}</span>
+<span id="cb358-12"><a href="#cb358-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb358-13"><a href="#cb358-13" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb358-14"><a href="#cb358-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Using a text editor, create a text document named <code>example.md</code> with the following content. Note the two spaces at the end of the first line, which specify a hard linebreak. Due to the limitations of the <span class="tex">T<sub>e</sub>X</span> input processor, hard linebreaks would be ignored if we typed them directly into the <code>document.tex</code> document.</p>
<pre><code>Hello world! <br/>_Foo_ bar!</code></pre>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb356"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb356-1"><a href="#cb356-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb359"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb359-1"><a href="#cb359-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
@@ -4294,19 +4343,19 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-30">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb357"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb357-1"><a href="#cb357-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb357-2"><a href="#cb357-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLineBreak</span>{<span class="co">%</span></span>
-<span id="cb357-3"><a href="#cb357-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb357-4"><a href="#cb357-4" aria-hidden="true"></a> <span class="fu">\emph</span>{(A forced linebreak)}<span class="co">%</span></span>
-<span id="cb357-5"><a href="#cb357-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb357-6"><a href="#cb357-6" aria-hidden="true"></a>}</span>
-<span id="cb357-7"><a href="#cb357-7" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb357-8"><a href="#cb357-8" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
-<span id="cb357-9"><a href="#cb357-9" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb360"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb360-1"><a href="#cb360-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb360-2"><a href="#cb360-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLineBreak</span>{<span class="co">%</span></span>
+<span id="cb360-3"><a href="#cb360-3" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb360-4"><a href="#cb360-4" aria-hidden="true"></a> <span class="fu">\emph</span>{(A forced linebreak)}<span class="co">%</span></span>
+<span id="cb360-5"><a href="#cb360-5" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb360-6"><a href="#cb360-6" aria-hidden="true"></a>}</span>
+<span id="cb360-7"><a href="#cb360-7" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb360-8"><a href="#cb360-8" aria-hidden="true"></a><span class="fu">\markdownInput</span>{example.md}</span>
+<span id="cb360-9"><a href="#cb360-9" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Using a text editor, create a text document named <code>example.md</code> with the following content. Note the two spaces at the end of the first line, which specify a hard linebreak. Due to the limitations of the <span class="tex">T<sub>e</sub>X</span> input processor, hard linebreaks would be ignored if we typed them directly into the <code>document.tex</code> document.</p>
<pre><code>Hello world! <br/>_Foo_ bar!</code></pre>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb358"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb358-1"><a href="#cb358-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb361"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb361-1"><a href="#cb361-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
@@ -4317,51 +4366,51 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererEllipsis</code> macro replaces any occurance of ASCII ellipses in the input text. This macro will only be produced, when the <strong><code>smartEllipses</code></strong> option is enabled. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-19">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb359"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb359-1"><a href="#cb359-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb359-2"><a href="#cb359-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
-<span id="cb359-3"><a href="#cb359-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{{<span class="fu">\it</span> SHAZAM}!}</span>
-<span id="cb359-4"><a href="#cb359-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb359-5"><a href="#cb359-5" aria-hidden="true"></a>The secret word is ...</span>
-<span id="cb359-6"><a href="#cb359-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb359-7"><a href="#cb359-7" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb362"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb362-1"><a href="#cb362-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb362-2"><a href="#cb362-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
+<span id="cb362-3"><a href="#cb362-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{{<span class="fu">\it</span> SHAZAM}!}</span>
+<span id="cb362-4"><a href="#cb362-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb362-5"><a href="#cb362-5" aria-hidden="true"></a>The secret word is ...</span>
+<span id="cb362-6"><a href="#cb362-6" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb362-7"><a href="#cb362-7" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb360"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb360-1"><a href="#cb360-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb363"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb363-1"><a href="#cb363-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>The secret word is <em>SHAZAM</em>!</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-39"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-40"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb361"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb361-1"><a href="#cb361-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb361-2"><a href="#cb361-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span>
-<span id="cb361-3"><a href="#cb361-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb361-4"><a href="#cb361-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb361-5"><a href="#cb361-5" aria-hidden="true"></a> ellipsis = <span class="fu">\emph</span>{SHAZAM}!,</span>
-<span id="cb361-6"><a href="#cb361-6" aria-hidden="true"></a> },</span>
-<span id="cb361-7"><a href="#cb361-7" aria-hidden="true"></a>}</span>
-<span id="cb361-8"><a href="#cb361-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb361-9"><a href="#cb361-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb361-10"><a href="#cb361-10" aria-hidden="true"></a>The secret word is ...</span>
-<span id="cb361-11"><a href="#cb361-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb361-12"><a href="#cb361-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb364"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb364-1"><a href="#cb364-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb364-2"><a href="#cb364-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span>
+<span id="cb364-3"><a href="#cb364-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb364-4"><a href="#cb364-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb364-5"><a href="#cb364-5" aria-hidden="true"></a> ellipsis = <span class="fu">\emph</span>{SHAZAM}!,</span>
+<span id="cb364-6"><a href="#cb364-6" aria-hidden="true"></a> },</span>
+<span id="cb364-7"><a href="#cb364-7" aria-hidden="true"></a>}</span>
+<span id="cb364-8"><a href="#cb364-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb364-9"><a href="#cb364-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb364-10"><a href="#cb364-10" aria-hidden="true"></a>The secret word is ...</span>
+<span id="cb364-11"><a href="#cb364-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb364-12"><a href="#cb364-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb362"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb362-1"><a href="#cb362-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb365"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb365-1"><a href="#cb365-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>The secret word is <em>SHAZAM</em>!</p>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-31">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb363"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb363-1"><a href="#cb363-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb363-2"><a href="#cb363-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
-<span id="cb363-3"><a href="#cb363-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{<span class="fu">\emph</span>{SHAZAM}!}</span>
-<span id="cb363-4"><a href="#cb363-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb363-5"><a href="#cb363-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb363-6"><a href="#cb363-6" aria-hidden="true"></a>The secret word is ...</span>
-<span id="cb363-7"><a href="#cb363-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb363-8"><a href="#cb363-8" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb366"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb366-1"><a href="#cb366-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb366-2"><a href="#cb366-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span>
+<span id="cb366-3"><a href="#cb366-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererEllipsis</span>{<span class="fu">\emph</span>{SHAZAM}!}</span>
+<span id="cb366-4"><a href="#cb366-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb366-5"><a href="#cb366-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb366-6"><a href="#cb366-6" aria-hidden="true"></a>The secret word is ...</span>
+<span id="cb366-7"><a href="#cb366-7" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb366-8"><a href="#cb366-8" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb364"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb364-1"><a href="#cb364-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb367"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb367-1"><a href="#cb367-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Hello <em>world</em>!</p>
@@ -4370,45 +4419,45 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h4 data-number="2.3.1.6" id="non-breaking-space-renderer"><span class="header-section-number">2.3.1.6</span> Non-Breaking Space Renderer</h4>
<p>The <code>\markdownRendererNbsp</code> macro represents a non-breaking space.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-40"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-41"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.bib</code> with the following content:</p>
-<div class="sourceCode" id="cb365"><pre class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb365-1"><a href="#cb365-1" aria-hidden="true"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span>
-<span id="cb365-2"><a href="#cb365-2" aria-hidden="true"></a> <span class="dt">author</span> = &quot;<span class="st">Knuth, Donald Ervin</span>&quot;,</span>
-<span id="cb365-3"><a href="#cb365-3" aria-hidden="true"></a> <span class="dt">title</span> = &quot;<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>&quot;,</span>
-<span id="cb365-4"><a href="#cb365-4" aria-hidden="true"></a> <span class="dt">publisher</span> = &quot;<span class="st">Addison-Wesley</span>&quot;,</span>
-<span id="cb365-5"><a href="#cb365-5" aria-hidden="true"></a> <span class="dt">year</span> = &quot;<span class="st">1984</span>&quot;</span>
-<span id="cb365-6"><a href="#cb365-6" aria-hidden="true"></a>}</span></code></pre></div>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb366"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb366-1"><a href="#cb366-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb366-2"><a href="#cb366-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[</span>
-<span id="cb366-3"><a href="#cb366-3" aria-hidden="true"></a> citations,</span>
-<span id="cb366-4"><a href="#cb366-4" aria-hidden="true"></a> citationNbsps,</span>
-<span id="cb366-5"><a href="#cb366-5" aria-hidden="true"></a>]{<span class="ex">markdown</span>}</span>
-<span id="cb366-6"><a href="#cb366-6" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb366-7"><a href="#cb366-7" aria-hidden="true"></a> renderers = {</span>
-<span id="cb366-8"><a href="#cb366-8" aria-hidden="true"></a> nbsp = {<span class="ss">$</span><span class="sc">\cdot</span><span class="ss">$</span>},</span>
-<span id="cb366-9"><a href="#cb366-9" aria-hidden="true"></a> },</span>
-<span id="cb366-10"><a href="#cb366-10" aria-hidden="true"></a>}</span>
-<span id="cb366-11"><a href="#cb366-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb366-12"><a href="#cb366-12" aria-hidden="true"></a></span>
-<span id="cb366-13"><a href="#cb366-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb366-14"><a href="#cb366-14" aria-hidden="true"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span>
-<span id="cb366-15"><a href="#cb366-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb366-16"><a href="#cb366-16" aria-hidden="true"></a></span>
-<span id="cb366-17"><a href="#cb366-17" aria-hidden="true"></a><span class="bu">\bibliographystyle</span>{<span class="ex">plain</span>}</span>
-<span id="cb366-18"><a href="#cb366-18" aria-hidden="true"></a><span class="bu">\bibliography</span>{<span class="ex">document.bib</span>}</span>
-<span id="cb366-19"><a href="#cb366-19" aria-hidden="true"></a></span>
-<span id="cb366-20"><a href="#cb366-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<div class="sourceCode" id="cb368"><pre class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb368-1"><a href="#cb368-1" aria-hidden="true"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span>
+<span id="cb368-2"><a href="#cb368-2" aria-hidden="true"></a> <span class="dt">author</span> = &quot;<span class="st">Knuth, Donald Ervin</span>&quot;,</span>
+<span id="cb368-3"><a href="#cb368-3" aria-hidden="true"></a> <span class="dt">title</span> = &quot;<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>&quot;,</span>
+<span id="cb368-4"><a href="#cb368-4" aria-hidden="true"></a> <span class="dt">publisher</span> = &quot;<span class="st">Addison-Wesley</span>&quot;,</span>
+<span id="cb368-5"><a href="#cb368-5" aria-hidden="true"></a> <span class="dt">year</span> = &quot;<span class="st">1984</span>&quot;</span>
+<span id="cb368-6"><a href="#cb368-6" aria-hidden="true"></a>}</span></code></pre></div>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb369"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb369-1"><a href="#cb369-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb369-2"><a href="#cb369-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[</span>
+<span id="cb369-3"><a href="#cb369-3" aria-hidden="true"></a> citations,</span>
+<span id="cb369-4"><a href="#cb369-4" aria-hidden="true"></a> citationNbsps,</span>
+<span id="cb369-5"><a href="#cb369-5" aria-hidden="true"></a>]{<span class="ex">markdown</span>}</span>
+<span id="cb369-6"><a href="#cb369-6" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb369-7"><a href="#cb369-7" aria-hidden="true"></a> renderers = {</span>
+<span id="cb369-8"><a href="#cb369-8" aria-hidden="true"></a> nbsp = {<span class="ss">$</span><span class="sc">\cdot</span><span class="ss">$</span>},</span>
+<span id="cb369-9"><a href="#cb369-9" aria-hidden="true"></a> },</span>
+<span id="cb369-10"><a href="#cb369-10" aria-hidden="true"></a>}</span>
+<span id="cb369-11"><a href="#cb369-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb369-12"><a href="#cb369-12" aria-hidden="true"></a></span>
+<span id="cb369-13"><a href="#cb369-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb369-14"><a href="#cb369-14" aria-hidden="true"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span>
+<span id="cb369-15"><a href="#cb369-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb369-16"><a href="#cb369-16" aria-hidden="true"></a></span>
+<span id="cb369-17"><a href="#cb369-17" aria-hidden="true"></a><span class="bu">\bibliographystyle</span>{<span class="ex">plain</span>}</span>
+<span id="cb369-18"><a href="#cb369-18" aria-hidden="true"></a><span class="bu">\bibliography</span>{<span class="ex">document.bib</span>}</span>
+<span id="cb369-19"><a href="#cb369-19" aria-hidden="true"></a></span>
+<span id="cb369-20"><a href="#cb369-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
<p>Next, invoke LuaTeX and BibTeX from the terminal:</p>
-<div class="sourceCode" id="cb367"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb367-1"><a href="#cb367-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
-<span id="cb367-2"><a href="#cb367-2" aria-hidden="true"></a><span class="ex">bibtex</span> document.aux</span>
-<span id="cb367-3"><a href="#cb367-3" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
-<span id="cb367-4"><a href="#cb367-4" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb370"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb370-1"><a href="#cb370-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
+<span id="cb370-2"><a href="#cb370-2" aria-hidden="true"></a><span class="ex">bibtex</span> document.aux</span>
+<span id="cb370-3"><a href="#cb370-3" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
+<span id="cb370-4"><a href="#cb370-4" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>The TeXbook [1, p.·123·and·130] is good.</p>
<h3 id="references-2">References</h3>
-<p>[1] Donald Ervin Knuth. <em>The TeXbook, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p>
+<p><a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">1</a> Donald Ervin Knuth. <em>The TeXbook, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p>
</blockquote>
<h4 data-number="2.3.1.7" id="special-character-renderers"><span class="header-section-number">2.3.1.7</span> Special Character Renderers</h4>
<p>The following macros replace any special plain <span class="tex">T<sub>e</sub>X</span> characters, including the active pipe character (<code>|</code>) of Con<span class="tex">T<sub>e</sub>X</span>t, in the input text:</p>
@@ -4427,49 +4476,49 @@ Thomas,Edison,1847</code></pre>
</ul>
<h5 class="unnumbered" data-number="" id="plain-tex-example-20">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content. We will make the tilde behave as if it were written in <span class="tex">T<sub>e</sub>X</span>, where it represents a non-breaking space.</p>
-<div class="sourceCode" id="cb368"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb368-1"><a href="#cb368-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb368-2"><a href="#cb368-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span>
-<span id="cb368-3"><a href="#cb368-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb368-4"><a href="#cb368-4" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
-<span id="cb368-5"><a href="#cb368-5" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb368-6"><a href="#cb368-6" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb369"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb369-1"><a href="#cb369-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb371"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb371-1"><a href="#cb371-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb371-2"><a href="#cb371-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span>
+<span id="cb371-3"><a href="#cb371-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb371-4"><a href="#cb371-4" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
+<span id="cb371-5"><a href="#cb371-5" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb371-6"><a href="#cb371-6" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb372"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb372-1"><a href="#cb372-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text, where the middot (<code>·</code>) denotes a non-breaking space:</p>
<blockquote>
<p>Bartel·Leendert van·der·Waerden</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-41"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-42"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content. We will make the tilde behave as if it were written in <span class="tex">T<sub>e</sub>X</span>, where it represents a non-breaking space.</p>
-<div class="sourceCode" id="cb370"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb370-1"><a href="#cb370-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb370-2"><a href="#cb370-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb370-3"><a href="#cb370-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb370-4"><a href="#cb370-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb370-5"><a href="#cb370-5" aria-hidden="true"></a> tilde = ~,</span>
-<span id="cb370-6"><a href="#cb370-6" aria-hidden="true"></a> },</span>
-<span id="cb370-7"><a href="#cb370-7" aria-hidden="true"></a>}</span>
-<span id="cb370-8"><a href="#cb370-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb370-9"><a href="#cb370-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb370-10"><a href="#cb370-10" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
-<span id="cb370-11"><a href="#cb370-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb370-12"><a href="#cb370-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb371"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb371-1"><a href="#cb371-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb373"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb373-1"><a href="#cb373-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb373-2"><a href="#cb373-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb373-3"><a href="#cb373-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb373-4"><a href="#cb373-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb373-5"><a href="#cb373-5" aria-hidden="true"></a> tilde = ~,</span>
+<span id="cb373-6"><a href="#cb373-6" aria-hidden="true"></a> },</span>
+<span id="cb373-7"><a href="#cb373-7" aria-hidden="true"></a>}</span>
+<span id="cb373-8"><a href="#cb373-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb373-9"><a href="#cb373-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb373-10"><a href="#cb373-10" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
+<span id="cb373-11"><a href="#cb373-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb373-12"><a href="#cb373-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb374"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb374-1"><a href="#cb374-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text, where the middot (<code>·</code>) denotes a non-breaking space:</p>
<blockquote>
<p>Bartel·Leendert van·der·Waerden</p>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-32">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content. We will make the tilde behave as if it were written in <span class="tex">T<sub>e</sub>X</span>, where it represents a non-breaking space.</p>
-<div class="sourceCode" id="cb372"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb372-1"><a href="#cb372-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb372-2"><a href="#cb372-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span>
-<span id="cb372-3"><a href="#cb372-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb372-4"><a href="#cb372-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb372-5"><a href="#cb372-5" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
-<span id="cb372-6"><a href="#cb372-6" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb372-7"><a href="#cb372-7" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb373"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb373-1"><a href="#cb373-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb375"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb375-1"><a href="#cb375-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb375-2"><a href="#cb375-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span>
+<span id="cb375-3"><a href="#cb375-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb375-4"><a href="#cb375-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb375-5"><a href="#cb375-5" aria-hidden="true"></a>Bartel~Leendert van~der~Waerden</span>
+<span id="cb375-6"><a href="#cb375-6" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb375-7"><a href="#cb375-7" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb376"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb376-1"><a href="#cb376-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text, where the middot (<code>·</code>) denotes a non-breaking space:</p>
<blockquote>
<p>Bartel·Leendert van·der·Waerden</p>
@@ -4478,55 +4527,55 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererCodeSpan</code> macro represents inlined code span in the input text. It receives a single argument that corresponds to the inlined code span.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-21">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb374"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb374-1"><a href="#cb374-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb374-2"><a href="#cb374-2" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
-<span id="cb374-3"><a href="#cb374-3" aria-hidden="true"></a></span>
-<span id="cb374-4"><a href="#cb374-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span>
-<span id="cb374-5"><a href="#cb374-5" aria-hidden="true"></a></span>
-<span id="cb374-6"><a href="#cb374-6" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb374-7"><a href="#cb374-7" aria-hidden="true"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span>
-<span id="cb374-8"><a href="#cb374-8" aria-hidden="true"></a></span>
-<span id="cb374-9"><a href="#cb374-9" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
-<span id="cb374-10"><a href="#cb374-10" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb374-11"><a href="#cb374-11" aria-hidden="true"></a></span>
-<span id="cb374-12"><a href="#cb374-12" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
-<span id="cb374-13"><a href="#cb374-13" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb374-14"><a href="#cb374-14" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
-<span id="cb374-15"><a href="#cb374-15" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb374-16"><a href="#cb374-16" aria-hidden="true"></a></span>
-<span id="cb374-17"><a href="#cb374-17" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb375"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb375-1"><a href="#cb375-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb377"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb377-1"><a href="#cb377-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb377-2"><a href="#cb377-2" aria-hidden="true"></a><span class="fu">\input</span> lmfonts</span>
+<span id="cb377-3"><a href="#cb377-3" aria-hidden="true"></a></span>
+<span id="cb377-4"><a href="#cb377-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span>
+<span id="cb377-5"><a href="#cb377-5" aria-hidden="true"></a></span>
+<span id="cb377-6"><a href="#cb377-6" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb377-7"><a href="#cb377-7" aria-hidden="true"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span>
+<span id="cb377-8"><a href="#cb377-8" aria-hidden="true"></a></span>
+<span id="cb377-9"><a href="#cb377-9" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
+<span id="cb377-10"><a href="#cb377-10" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb377-11"><a href="#cb377-11" aria-hidden="true"></a></span>
+<span id="cb377-12"><a href="#cb377-12" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
+<span id="cb377-13"><a href="#cb377-13" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb377-14"><a href="#cb377-14" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
+<span id="cb377-15"><a href="#cb377-15" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb377-16"><a href="#cb377-16" aria-hidden="true"></a></span>
+<span id="cb377-17"><a href="#cb377-17" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb378"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb378-1"><a href="#cb378-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>$\sqrt{-1}$ *equals* $i$.</p>
<p>$\sqrt{-1}$ <em>equals</em> $i$.</p>
<p>√-̅1̅ <em>equals</em> <span class="math inline"><em>i</em></span>.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-42"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-43"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb376"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb376-1"><a href="#cb376-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb376-2"><a href="#cb376-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span>
-<span id="cb376-3"><a href="#cb376-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb376-4"><a href="#cb376-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb376-5"><a href="#cb376-5" aria-hidden="true"></a> codeSpan = {#1},</span>
-<span id="cb376-6"><a href="#cb376-6" aria-hidden="true"></a> },</span>
-<span id="cb376-7"><a href="#cb376-7" aria-hidden="true"></a>}</span>
-<span id="cb376-8"><a href="#cb376-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb376-9"><a href="#cb376-9" aria-hidden="true"></a></span>
-<span id="cb376-10"><a href="#cb376-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb376-11"><a href="#cb376-11" aria-hidden="true"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span>
-<span id="cb376-12"><a href="#cb376-12" aria-hidden="true"></a></span>
-<span id="cb376-13"><a href="#cb376-13" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
-<span id="cb376-14"><a href="#cb376-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb376-15"><a href="#cb376-15" aria-hidden="true"></a></span>
-<span id="cb376-16"><a href="#cb376-16" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{hybrid}</span>
-<span id="cb376-17"><a href="#cb376-17" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
-<span id="cb376-18"><a href="#cb376-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb376-19"><a href="#cb376-19" aria-hidden="true"></a></span>
-<span id="cb376-20"><a href="#cb376-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb377"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb377-1"><a href="#cb377-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb379"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb379-1"><a href="#cb379-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb379-2"><a href="#cb379-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span>
+<span id="cb379-3"><a href="#cb379-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb379-4"><a href="#cb379-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb379-5"><a href="#cb379-5" aria-hidden="true"></a> codeSpan = {#1},</span>
+<span id="cb379-6"><a href="#cb379-6" aria-hidden="true"></a> },</span>
+<span id="cb379-7"><a href="#cb379-7" aria-hidden="true"></a>}</span>
+<span id="cb379-8"><a href="#cb379-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb379-9"><a href="#cb379-9" aria-hidden="true"></a></span>
+<span id="cb379-10"><a href="#cb379-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb379-11"><a href="#cb379-11" aria-hidden="true"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span>
+<span id="cb379-12"><a href="#cb379-12" aria-hidden="true"></a></span>
+<span id="cb379-13"><a href="#cb379-13" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
+<span id="cb379-14"><a href="#cb379-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb379-15"><a href="#cb379-15" aria-hidden="true"></a></span>
+<span id="cb379-16"><a href="#cb379-16" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{hybrid}</span>
+<span id="cb379-17"><a href="#cb379-17" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
+<span id="cb379-18"><a href="#cb379-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb379-19"><a href="#cb379-19" aria-hidden="true"></a></span>
+<span id="cb379-20"><a href="#cb379-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb380"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb380-1"><a href="#cb380-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>$\sqrt{-1}$ *equals* $i$.</p>
@@ -4535,24 +4584,24 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-33">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb378"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb378-1"><a href="#cb378-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb378-2"><a href="#cb378-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span>
-<span id="cb378-3"><a href="#cb378-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb378-4"><a href="#cb378-4" aria-hidden="true"></a></span>
-<span id="cb378-5"><a href="#cb378-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb378-6"><a href="#cb378-6" aria-hidden="true"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span>
-<span id="cb378-7"><a href="#cb378-7" aria-hidden="true"></a></span>
-<span id="cb378-8"><a href="#cb378-8" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
-<span id="cb378-9"><a href="#cb378-9" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb378-10"><a href="#cb378-10" aria-hidden="true"></a></span>
-<span id="cb378-11"><a href="#cb378-11" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
-<span id="cb378-12"><a href="#cb378-12" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb378-13"><a href="#cb378-13" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
-<span id="cb378-14"><a href="#cb378-14" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb378-15"><a href="#cb378-15" aria-hidden="true"></a></span>
-<span id="cb378-16"><a href="#cb378-16" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb379"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb379-1"><a href="#cb379-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb381"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb381-1"><a href="#cb381-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb381-2"><a href="#cb381-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span>
+<span id="cb381-3"><a href="#cb381-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb381-4"><a href="#cb381-4" aria-hidden="true"></a></span>
+<span id="cb381-5"><a href="#cb381-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb381-6"><a href="#cb381-6" aria-hidden="true"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span>
+<span id="cb381-7"><a href="#cb381-7" aria-hidden="true"></a></span>
+<span id="cb381-8"><a href="#cb381-8" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
+<span id="cb381-9"><a href="#cb381-9" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb381-10"><a href="#cb381-10" aria-hidden="true"></a></span>
+<span id="cb381-11"><a href="#cb381-11" aria-hidden="true"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span>
+<span id="cb381-12"><a href="#cb381-12" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb381-13"><a href="#cb381-13" aria-hidden="true"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span>
+<span id="cb381-14"><a href="#cb381-14" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb381-15"><a href="#cb381-15" aria-hidden="true"></a></span>
+<span id="cb381-16"><a href="#cb381-16" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb382"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb382-1"><a href="#cb382-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>$\sqrt{-1}$ *equals* $i$.</p>
@@ -4563,175 +4612,175 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererLink</code> macro represents a hyperlink. It receives four arguments: the label, the fully escaped <abbr>uri</abbr> that can be directly typeset, the raw <abbr>uri</abbr> that can be used outside typesetting, and the title of the link.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-22">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb380"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb380-1"><a href="#cb380-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb380-2"><a href="#cb380-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb380-3"><a href="#cb380-3" aria-hidden="true"></a> #1 {<span class="fu">\tt</span>#2} titled {<span class="fu">\it</span>#4}<span class="co">%</span></span>
-<span id="cb380-4"><a href="#cb380-4" aria-hidden="true"></a>}</span>
-<span id="cb380-5"><a href="#cb380-5" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb380-6"><a href="#cb380-6" aria-hidden="true"></a>Please visit [the link][ctan].</span>
-<span id="cb380-7"><a href="#cb380-7" aria-hidden="true"></a></span>
-<span id="cb380-8"><a href="#cb380-8" aria-hidden="true"></a> [ctan]: https://ctan.org/</span>
-<span id="cb380-9"><a href="#cb380-9" aria-hidden="true"></a> (the Comprehensive TeX Archive Network)</span>
-<span id="cb380-10"><a href="#cb380-10" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb380-11"><a href="#cb380-11" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb383"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb383-1"><a href="#cb383-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb383-2"><a href="#cb383-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb383-3"><a href="#cb383-3" aria-hidden="true"></a> #1 {<span class="fu">\tt</span>#2} titled {<span class="fu">\it</span>#4}<span class="co">%</span></span>
+<span id="cb383-4"><a href="#cb383-4" aria-hidden="true"></a>}</span>
+<span id="cb383-5"><a href="#cb383-5" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb383-6"><a href="#cb383-6" aria-hidden="true"></a>Please visit [the link][ctan].</span>
+<span id="cb383-7"><a href="#cb383-7" aria-hidden="true"></a></span>
+<span id="cb383-8"><a href="#cb383-8" aria-hidden="true"></a> [ctan]: https://ctan.org/</span>
+<span id="cb383-9"><a href="#cb383-9" aria-hidden="true"></a> (the Comprehensive TeX Archive Network)</span>
+<span id="cb383-10"><a href="#cb383-10" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb383-11"><a href="#cb383-11" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb381"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb381-1"><a href="#cb381-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb384"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb384-1"><a href="#cb384-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Please visit the link <a href="https://ctan.org/" class="uri">https://ctan.org/</a> titled <em>the Comprehensive TeX Archive Network</em>.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-43"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-44"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb382"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb382-1"><a href="#cb382-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb382-2"><a href="#cb382-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb382-3"><a href="#cb382-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb382-4"><a href="#cb382-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb382-5"><a href="#cb382-5" aria-hidden="true"></a> link = {<span class="co">%</span></span>
-<span id="cb382-6"><a href="#cb382-6" aria-hidden="true"></a> #1 <span class="fu">\texttt</span>{#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span>
-<span id="cb382-7"><a href="#cb382-7" aria-hidden="true"></a> },</span>
-<span id="cb382-8"><a href="#cb382-8" aria-hidden="true"></a> },</span>
-<span id="cb382-9"><a href="#cb382-9" aria-hidden="true"></a>}</span>
-<span id="cb382-10"><a href="#cb382-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb382-11"><a href="#cb382-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb382-12"><a href="#cb382-12" aria-hidden="true"></a>Please visit [the link][ctan].</span>
-<span id="cb382-13"><a href="#cb382-13" aria-hidden="true"></a></span>
-<span id="cb382-14"><a href="#cb382-14" aria-hidden="true"></a> [ctan]: https://ctan.org/</span>
-<span id="cb382-15"><a href="#cb382-15" aria-hidden="true"></a> (the Comprehensive TeX Archive Network)</span>
-<span id="cb382-16"><a href="#cb382-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb382-17"><a href="#cb382-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb383"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb383-1"><a href="#cb383-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb385"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb385-1"><a href="#cb385-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb385-2"><a href="#cb385-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb385-3"><a href="#cb385-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb385-4"><a href="#cb385-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb385-5"><a href="#cb385-5" aria-hidden="true"></a> link = {<span class="co">%</span></span>
+<span id="cb385-6"><a href="#cb385-6" aria-hidden="true"></a> #1 <span class="fu">\texttt</span>{#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span>
+<span id="cb385-7"><a href="#cb385-7" aria-hidden="true"></a> },</span>
+<span id="cb385-8"><a href="#cb385-8" aria-hidden="true"></a> },</span>
+<span id="cb385-9"><a href="#cb385-9" aria-hidden="true"></a>}</span>
+<span id="cb385-10"><a href="#cb385-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb385-11"><a href="#cb385-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb385-12"><a href="#cb385-12" aria-hidden="true"></a>Please visit [the link][ctan].</span>
+<span id="cb385-13"><a href="#cb385-13" aria-hidden="true"></a></span>
+<span id="cb385-14"><a href="#cb385-14" aria-hidden="true"></a> [ctan]: https://ctan.org/</span>
+<span id="cb385-15"><a href="#cb385-15" aria-hidden="true"></a> (the Comprehensive TeX Archive Network)</span>
+<span id="cb385-16"><a href="#cb385-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb385-17"><a href="#cb385-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb386"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb386-1"><a href="#cb386-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Please visit the link <a href="https://ctan.org/" class="uri">https://ctan.org/</a> titled <em>the Comprehensive TeX Archive Network</em>.</p>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-34">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb384"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb384-1"><a href="#cb384-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb384-2"><a href="#cb384-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb384-3"><a href="#cb384-3" aria-hidden="true"></a> #1 {<span class="fu">\tt</span>#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span>
-<span id="cb384-4"><a href="#cb384-4" aria-hidden="true"></a>}</span>
-<span id="cb384-5"><a href="#cb384-5" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb384-6"><a href="#cb384-6" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb384-7"><a href="#cb384-7" aria-hidden="true"></a>Please visit [the link][ctan].</span>
-<span id="cb384-8"><a href="#cb384-8" aria-hidden="true"></a></span>
-<span id="cb384-9"><a href="#cb384-9" aria-hidden="true"></a> [ctan]: https://ctan.org/</span>
-<span id="cb384-10"><a href="#cb384-10" aria-hidden="true"></a> (the Comprehensive TeX Archive Network)</span>
-<span id="cb384-11"><a href="#cb384-11" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb384-12"><a href="#cb384-12" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb387"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb387-1"><a href="#cb387-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb387-2"><a href="#cb387-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb387-3"><a href="#cb387-3" aria-hidden="true"></a> #1 {<span class="fu">\tt</span>#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span>
+<span id="cb387-4"><a href="#cb387-4" aria-hidden="true"></a>}</span>
+<span id="cb387-5"><a href="#cb387-5" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb387-6"><a href="#cb387-6" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb387-7"><a href="#cb387-7" aria-hidden="true"></a>Please visit [the link][ctan].</span>
+<span id="cb387-8"><a href="#cb387-8" aria-hidden="true"></a></span>
+<span id="cb387-9"><a href="#cb387-9" aria-hidden="true"></a> [ctan]: https://ctan.org/</span>
+<span id="cb387-10"><a href="#cb387-10" aria-hidden="true"></a> (the Comprehensive TeX Archive Network)</span>
+<span id="cb387-11"><a href="#cb387-11" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb387-12"><a href="#cb387-12" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb385"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb385-1"><a href="#cb385-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb388"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb388-1"><a href="#cb388-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Please visit the link <a href="https://ctan.org/" class="uri">https://ctan.org/</a> titled <em>the Comprehensive TeX Archive Network</em>.</p>
</blockquote>
<h4 data-number="2.3.1.10" id="image-renderer"><span class="header-section-number">2.3.1.10</span> Image Renderer</h4>
<p>The <code>\markdownRendererImage</code> macro represents an image. It receives four arguments: the label, the fully escaped <abbr>uri</abbr> that can be directly typeset, the raw <abbr>uri</abbr> that can be used outside typesetting, and the title of the link.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-44"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-45"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb386"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb386-1"><a href="#cb386-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb386-2"><a href="#cb386-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb386-3"><a href="#cb386-3" aria-hidden="true"></a><span class="fu">\begingroup</span></span>
-<span id="cb386-4"><a href="#cb386-4" aria-hidden="true"></a><span class="fu">\catcode</span>`<span class="fu">\@</span>=11</span>
-<span id="cb386-5"><a href="#cb386-5" aria-hidden="true"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span>
-<span id="cb386-6"><a href="#cb386-6" aria-hidden="true"></a><span class="fu">\catcode</span>`<span class="fu">\^</span>^A=14</span>
-<span id="cb386-7"><a href="#cb386-7" aria-hidden="true"></a><span class="fu">\global\def\markdownRendererImage</span>#1#2#3#4{^^A</span>
-<span id="cb386-8"><a href="#cb386-8" aria-hidden="true"></a> <span class="fu">\immediate\write</span>18{^^A</span></code></pre></div>
-<div class="sourceCode" id="cb387"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb387-1"><a href="#cb387-1" aria-hidden="true"></a> <span class="kw">if</span> <span class="bu">printf</span> <span class="st">&#39;%s&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="kw">|</span> <span class="fu">grep</span> -q ^http<span class="kw">;</span> <span class="kw">then</span></span>
-<span id="cb387-2"><a href="#cb387-2" aria-hidden="true"></a> <span class="va">OUTPUT=</span><span class="st">&quot;</span><span class="va">$(</span><span class="bu">printf</span> <span class="st">&#39;%s&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="kw">|</span> <span class="ex">md5sum</span> <span class="kw">|</span> <span class="fu">cut</span> -d<span class="st">&#39; &#39;</span> -f1<span class="va">)</span><span class="st">.^^A</span></span>
-<span id="cb387-3"><a href="#cb387-3" aria-hidden="true"></a><span class="st"> </span><span class="va">$(</span><span class="bu">printf</span> <span class="st">&#39;%s&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="kw">|</span> <span class="fu">sed</span> <span class="st">&#39;s/.*[.]//&#39;</span><span class="va">)</span><span class="st">&quot;</span>;</span>
-<span id="cb387-4"><a href="#cb387-4" aria-hidden="true"></a> <span class="kw">if</span> !<span class="bu"> [</span> <span class="ot">-e</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span><span class="bu"> ]</span>; <span class="kw">then</span></span>
-<span id="cb387-5"><a href="#cb387-5" aria-hidden="true"></a> <span class="fu">wget</span> -O <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span> <span class="st">&#39;#3&#39;</span> <span class="kw">||</span> <span class="fu">rm</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span><span class="kw">;</span></span>
-<span id="cb387-6"><a href="#cb387-6" aria-hidden="true"></a> <span class="ex">convert</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span> png:<span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span><span class="kw">;</span></span>
-<span id="cb387-7"><a href="#cb387-7" aria-hidden="true"></a> <span class="kw">fi</span>;</span>
-<span id="cb387-8"><a href="#cb387-8" aria-hidden="true"></a> <span class="bu">printf</span> <span class="st">&#39;%s%%&#39;</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span> <span class="op">&gt;</span> \jobname.fetched<span class="kw">;</span></span>
-<span id="cb387-9"><a href="#cb387-9" aria-hidden="true"></a> <span class="kw">else</span></span>
-<span id="cb387-10"><a href="#cb387-10" aria-hidden="true"></a> <span class="bu">printf</span> <span class="st">&#39;%s%%&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="op">&gt;</span> \jobname.fetched<span class="kw">;</span></span>
-<span id="cb387-11"><a href="#cb387-11" aria-hidden="true"></a> <span class="kw">fi</span>^^<span class="ex">A</span></span></code></pre></div>
-<div class="sourceCode" id="cb388"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb388-1"><a href="#cb388-1" aria-hidden="true"></a> }^^A</span>
-<span id="cb388-2"><a href="#cb388-2" aria-hidden="true"></a> {^^A</span>
-<span id="cb388-3"><a href="#cb388-3" aria-hidden="true"></a> <span class="fu">\everyeof</span>={<span class="fu">\noexpand</span>}^^A</span>
-<span id="cb388-4"><a href="#cb388-4" aria-hidden="true"></a> <span class="fu">\edef\filename</span>{<span class="fu">\_</span>_markdowninput&quot;<span class="fu">\jobname</span>.fetched&quot; }^^A</span>
-<span id="cb388-5"><a href="#cb388-5" aria-hidden="true"></a> <span class="bu">\includegraphics</span>[width=<span class="fu">\textwidth</span>]{<span class="fu">\filename</span>}^^A</span>
-<span id="cb388-6"><a href="#cb388-6" aria-hidden="true"></a> }^^A</span>
-<span id="cb388-7"><a href="#cb388-7" aria-hidden="true"></a>}</span>
-<span id="cb388-8"><a href="#cb388-8" aria-hidden="true"></a><span class="fu">\endgroup</span></span>
-<span id="cb388-9"><a href="#cb388-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb388-10"><a href="#cb388-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb388-11"><a href="#cb388-11" aria-hidden="true"></a>![TUGboat](https://tug.org/tugboat/noword.jpg)</span>
-<span id="cb388-12"><a href="#cb388-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb388-13"><a href="#cb388-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb389"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb389-1"><a href="#cb389-1" aria-hidden="true"></a><span class="ex">lualatex</span> --shell-escape document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb389"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb389-1"><a href="#cb389-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb389-2"><a href="#cb389-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb389-3"><a href="#cb389-3" aria-hidden="true"></a><span class="fu">\begingroup</span></span>
+<span id="cb389-4"><a href="#cb389-4" aria-hidden="true"></a><span class="fu">\catcode</span>`<span class="fu">\@</span>=11</span>
+<span id="cb389-5"><a href="#cb389-5" aria-hidden="true"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span>
+<span id="cb389-6"><a href="#cb389-6" aria-hidden="true"></a><span class="fu">\catcode</span>`<span class="fu">\^</span>^A=14</span>
+<span id="cb389-7"><a href="#cb389-7" aria-hidden="true"></a><span class="fu">\global\def\markdownRendererImage</span>#1#2#3#4{^^A</span>
+<span id="cb389-8"><a href="#cb389-8" aria-hidden="true"></a> <span class="fu">\immediate\write</span>18{^^A</span></code></pre></div>
+<div class="sourceCode" id="cb390"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb390-1"><a href="#cb390-1" aria-hidden="true"></a> <span class="kw">if</span> <span class="bu">printf</span> <span class="st">&#39;%s&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="kw">|</span> <span class="fu">grep</span> -q ^http<span class="kw">;</span> <span class="kw">then</span></span>
+<span id="cb390-2"><a href="#cb390-2" aria-hidden="true"></a> <span class="va">OUTPUT=</span><span class="st">&quot;</span><span class="va">$(</span><span class="bu">printf</span> <span class="st">&#39;%s&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="kw">|</span> <span class="ex">md5sum</span> <span class="kw">|</span> <span class="fu">cut</span> -d<span class="st">&#39; &#39;</span> -f1<span class="va">)</span><span class="st">.^^A</span></span>
+<span id="cb390-3"><a href="#cb390-3" aria-hidden="true"></a><span class="st"> </span><span class="va">$(</span><span class="bu">printf</span> <span class="st">&#39;%s&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="kw">|</span> <span class="fu">sed</span> <span class="st">&#39;s/.*[.]//&#39;</span><span class="va">)</span><span class="st">&quot;</span>;</span>
+<span id="cb390-4"><a href="#cb390-4" aria-hidden="true"></a> <span class="kw">if</span> !<span class="bu"> [</span> <span class="ot">-e</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span><span class="bu"> ]</span>; <span class="kw">then</span></span>
+<span id="cb390-5"><a href="#cb390-5" aria-hidden="true"></a> <span class="fu">wget</span> -O <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span> <span class="st">&#39;#3&#39;</span> <span class="kw">||</span> <span class="fu">rm</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span><span class="kw">;</span></span>
+<span id="cb390-6"><a href="#cb390-6" aria-hidden="true"></a> <span class="ex">convert</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span> png:<span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span><span class="kw">;</span></span>
+<span id="cb390-7"><a href="#cb390-7" aria-hidden="true"></a> <span class="kw">fi</span>;</span>
+<span id="cb390-8"><a href="#cb390-8" aria-hidden="true"></a> <span class="bu">printf</span> <span class="st">&#39;%s%%&#39;</span> <span class="st">&quot;</span><span class="va">$OUTPUT</span><span class="st">&quot;</span> <span class="op">&gt;</span> \jobname.fetched<span class="kw">;</span></span>
+<span id="cb390-9"><a href="#cb390-9" aria-hidden="true"></a> <span class="kw">else</span></span>
+<span id="cb390-10"><a href="#cb390-10" aria-hidden="true"></a> <span class="bu">printf</span> <span class="st">&#39;%s%%&#39;</span> <span class="st">&quot;#3&quot;</span> <span class="op">&gt;</span> \jobname.fetched<span class="kw">;</span></span>
+<span id="cb390-11"><a href="#cb390-11" aria-hidden="true"></a> <span class="kw">fi</span>^^<span class="ex">A</span></span></code></pre></div>
+<div class="sourceCode" id="cb391"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb391-1"><a href="#cb391-1" aria-hidden="true"></a> }^^A</span>
+<span id="cb391-2"><a href="#cb391-2" aria-hidden="true"></a> {^^A</span>
+<span id="cb391-3"><a href="#cb391-3" aria-hidden="true"></a> <span class="fu">\everyeof</span>={<span class="fu">\noexpand</span>}^^A</span>
+<span id="cb391-4"><a href="#cb391-4" aria-hidden="true"></a> <span class="fu">\edef\filename</span>{<span class="fu">\_</span>_markdowninput&quot;<span class="fu">\jobname</span>.fetched&quot; }^^A</span>
+<span id="cb391-5"><a href="#cb391-5" aria-hidden="true"></a> <span class="bu">\includegraphics</span>[width=<span class="fu">\textwidth</span>]{<span class="fu">\filename</span>}^^A</span>
+<span id="cb391-6"><a href="#cb391-6" aria-hidden="true"></a> }^^A</span>
+<span id="cb391-7"><a href="#cb391-7" aria-hidden="true"></a>}</span>
+<span id="cb391-8"><a href="#cb391-8" aria-hidden="true"></a><span class="fu">\endgroup</span></span>
+<span id="cb391-9"><a href="#cb391-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb391-10"><a href="#cb391-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb391-11"><a href="#cb391-11" aria-hidden="true"></a>![TUGboat](https://tug.org/tugboat/noword.jpg)</span>
+<span id="cb391-12"><a href="#cb391-12" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb391-13"><a href="#cb391-13" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb392"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb392-1"><a href="#cb392-1" aria-hidden="true"></a><span class="ex">lualatex</span> --shell-escape document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following content. This assumes that you use a Unix-like operating system with Bourne or Bourne again shell as the default shell of the current user. It also assumes that the <code>md5sum</code>, <code>wget</code>, and <code>convert</code> binaries are installed and that the <span class="tex">T<sub>e</sub>X</span> engine has shell access.</p>
<blockquote>
<p><img src="https://tug.org/tugboat/noword.jpg" title="The Communications of the TeX Users Group" /></p>
</blockquote>
-<h4 data-number="2.3.1.11" id="content-block-renderers"><span class="header-section-number">2.3.1.11</span> Content Block Renderers</h4>
-<p> The <code>\markdownRendererContentBlock</code> macro represents an iA Writer content block. It receives four arguments: the local file or online image filename extension cast to the lower case, the fully escaped <abbr>uri</abbr> that can be directly typeset, the raw <abbr>uri</abbr> that can be used outside typesetting, and the title of the content block.</p>
+<h4 data-number="2.3.1.11" id="texcontentblockrenderers"><span class="header-section-number">2.3.1.11</span> Content Block Rendere</h4>
+<p>The <code>\markdownRendererContentBlock</code> macro represents an iA Writer content block. It receives four arguments: the local file or online image filename extension cast to the lower case, the fully escaped <abbr>uri</abbr> that can be directly typeset, the raw <abbr>uri</abbr> that can be used outside typesetting, and the title of the content block.</p>
<p>The <code>\markdownRendererContentBlockOnlineImage</code> macro represents an iA Writer online image content block. The macro receives the same arguments as .</p>
<p>The <code>\markdownRendererContentBlockCode</code> macro represents an iA Writer content block that was recognized as a file in a known programming language by its filename extension <span class="math inline"><em>s</em></span>. If any <code>markdown-languages.json</code> file found by <strong><code>kpathsea</code></strong> contains a record <span class="math inline">(<em>k</em>, <em>v</em>)</span>, then a non-online-image content block with the filename extension <span class="math inline"><em>s</em>, <em>s</em></span><code>:lower()</code><span class="math inline"> = <em>k</em></span> is considered to be in a known programming language <span class="math inline"><em>v</em></span>. The macro receives five arguments: the local file name extension <span class="math inline"><em>s</em></span> cast to the lower case, the language <span class="math inline"><em>v</em></span>, the fully escaped <abbr>uri</abbr> that can be directly typeset, the raw <abbr>uri</abbr> that can be used outside typesetting, and the title of the content block.</p>
<p>Note that you will need to place place a <code>markdown-languages.json</code> file inside your working directory or inside your local <span class="tex">T<sub>e</sub>X</span> directory structure. In this file, you will define a mapping between filename extensions and the language names recognized by your favorite syntax highlighter; there may exist other creative uses beside syntax highlighting. <a href="https://github.com/iainc/Markdown-Content-Blocks" title="File transclusion syntax for Markdown">The <code>Languages.json</code> file provided by Anton Sotkov</a> is a good starting point.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-23">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb390"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb390-1"><a href="#cb390-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb390-2"><a href="#cb390-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionContentBlocks</span>{true}</span>
-<span id="cb390-3"><a href="#cb390-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb390-4"><a href="#cb390-4" aria-hidden="true"></a> This is {<span class="fu">\tt</span> #2}, #4.</span>
-<span id="cb390-5"><a href="#cb390-5" aria-hidden="true"></a>}</span>
-<span id="cb390-6"><a href="#cb390-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb390-7"><a href="#cb390-7" aria-hidden="true"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span>
-<span id="cb390-8"><a href="#cb390-8" aria-hidden="true"></a>}</span>
-<span id="cb390-9"><a href="#cb390-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span>
-<span id="cb390-10"><a href="#cb390-10" aria-hidden="true"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span>
-<span id="cb390-11"><a href="#cb390-11" aria-hidden="true"></a>}</span>
-<span id="cb390-12"><a href="#cb390-12" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb390-13"><a href="#cb390-13" aria-hidden="true"></a>/document.tex (the document that we are currently typesetting)</span>
-<span id="cb390-14"><a href="#cb390-14" aria-hidden="true"></a>/markdown-languages.json (the mapping between filename extensions</span>
-<span id="cb390-15"><a href="#cb390-15" aria-hidden="true"></a> and programming language names)</span>
-<span id="cb390-16"><a href="#cb390-16" aria-hidden="true"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span>
-<span id="cb390-17"><a href="#cb390-17" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb390-18"><a href="#cb390-18" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb393"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb393-1"><a href="#cb393-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb393-2"><a href="#cb393-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionContentBlocks</span>{true}</span>
+<span id="cb393-3"><a href="#cb393-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb393-4"><a href="#cb393-4" aria-hidden="true"></a> This is {<span class="fu">\tt</span> #2}, #4.</span>
+<span id="cb393-5"><a href="#cb393-5" aria-hidden="true"></a>}</span>
+<span id="cb393-6"><a href="#cb393-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb393-7"><a href="#cb393-7" aria-hidden="true"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span>
+<span id="cb393-8"><a href="#cb393-8" aria-hidden="true"></a>}</span>
+<span id="cb393-9"><a href="#cb393-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span>
+<span id="cb393-10"><a href="#cb393-10" aria-hidden="true"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span>
+<span id="cb393-11"><a href="#cb393-11" aria-hidden="true"></a>}</span>
+<span id="cb393-12"><a href="#cb393-12" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb393-13"><a href="#cb393-13" aria-hidden="true"></a>/document.tex (the document that we are currently typesetting)</span>
+<span id="cb393-14"><a href="#cb393-14" aria-hidden="true"></a>/markdown-languages.json (the mapping between filename extensions</span>
+<span id="cb393-15"><a href="#cb393-15" aria-hidden="true"></a> and programming language names)</span>
+<span id="cb393-16"><a href="#cb393-16" aria-hidden="true"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span>
+<span id="cb393-17"><a href="#cb393-17" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb393-18"><a href="#cb393-18" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Create also a text document named <code>markdown-languages.json</code> with the following content:</p>
-<div class="sourceCode" id="cb391"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb391-1"><a href="#cb391-1" aria-hidden="true"></a>{</span>
-<span id="cb391-2"><a href="#cb391-2" aria-hidden="true"></a> <span class="st">&quot;json&quot;</span><span class="op">:</span> <span class="st">&quot;JavaScript Object Notation&quot;</span><span class="op">,</span></span>
-<span id="cb391-3"><a href="#cb391-3" aria-hidden="true"></a>}</span></code></pre></div>
+<div class="sourceCode" id="cb394"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb394-1"><a href="#cb394-1" aria-hidden="true"></a>{</span>
+<span id="cb394-2"><a href="#cb394-2" aria-hidden="true"></a> <span class="st">&quot;json&quot;</span><span class="op">:</span> <span class="st">&quot;JavaScript Object Notation&quot;</span><span class="op">,</span></span>
+<span id="cb394-3"><a href="#cb394-3" aria-hidden="true"></a>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb392"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb392-1"><a href="#cb392-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb395"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb395-1"><a href="#cb395-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <code>document.tex</code>, the document that we are currently typesetting.</p>
<p>This is the JavaScript Object Notation (JSON) document <code>markdown-languages.json</code>, the mapping between filename extensions and programming language names.</p>
<p>This is the image <code>https://tug.org/tugboat/noword.jpg</code>, the logotype of TUGboat.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-45"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-46"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb393"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb393-1"><a href="#cb393-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb393-2"><a href="#cb393-2" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{markdown-languages.json}</span>
-<span id="cb393-3"><a href="#cb393-3" aria-hidden="true"></a>{</span>
-<span id="cb393-4"><a href="#cb393-4" aria-hidden="true"></a> &quot;json&quot;: &quot;JavaScript Object Notation&quot;,</span>
-<span id="cb393-5"><a href="#cb393-5" aria-hidden="true"></a>}</span>
-<span id="cb393-6"><a href="#cb393-6" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span>
-<span id="cb393-7"><a href="#cb393-7" aria-hidden="true"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span>
-<span id="cb393-8"><a href="#cb393-8" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb393-9"><a href="#cb393-9" aria-hidden="true"></a> renderers = {</span>
-<span id="cb393-10"><a href="#cb393-10" aria-hidden="true"></a> contentBlock = {This is <span class="fu">\texttt</span>{#2}, #4.},</span>
-<span id="cb393-11"><a href="#cb393-11" aria-hidden="true"></a> contentBlockOnlineImage = {This is the image <span class="fu">\texttt</span>{#2}, #4.},</span>
-<span id="cb393-12"><a href="#cb393-12" aria-hidden="true"></a> contentBlockCode = {<span class="co">%</span></span>
-<span id="cb393-13"><a href="#cb393-13" aria-hidden="true"></a> This is the #2 (<span class="fu">\MakeUppercase</span>{#1}) document <span class="fu">\texttt</span>{#3}, #5.</span>
-<span id="cb393-14"><a href="#cb393-14" aria-hidden="true"></a> },</span>
-<span id="cb393-15"><a href="#cb393-15" aria-hidden="true"></a> },</span>
-<span id="cb393-16"><a href="#cb393-16" aria-hidden="true"></a>}</span>
-<span id="cb393-17"><a href="#cb393-17" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb393-18"><a href="#cb393-18" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb393-19"><a href="#cb393-19" aria-hidden="true"></a>/document.tex (the document that we are currently typesetting)</span>
-<span id="cb393-20"><a href="#cb393-20" aria-hidden="true"></a>/markdown-languages.json (the mapping between filename extensions</span>
-<span id="cb393-21"><a href="#cb393-21" aria-hidden="true"></a> and programming language names)</span>
-<span id="cb393-22"><a href="#cb393-22" aria-hidden="true"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span>
-<span id="cb393-23"><a href="#cb393-23" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb393-24"><a href="#cb393-24" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb394"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb394-1"><a href="#cb394-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb396"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb396-1"><a href="#cb396-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb396-2"><a href="#cb396-2" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{markdown-languages.json}</span>
+<span id="cb396-3"><a href="#cb396-3" aria-hidden="true"></a>{</span>
+<span id="cb396-4"><a href="#cb396-4" aria-hidden="true"></a> &quot;json&quot;: &quot;JavaScript Object Notation&quot;,</span>
+<span id="cb396-5"><a href="#cb396-5" aria-hidden="true"></a>}</span>
+<span id="cb396-6"><a href="#cb396-6" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span>
+<span id="cb396-7"><a href="#cb396-7" aria-hidden="true"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span>
+<span id="cb396-8"><a href="#cb396-8" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb396-9"><a href="#cb396-9" aria-hidden="true"></a> renderers = {</span>
+<span id="cb396-10"><a href="#cb396-10" aria-hidden="true"></a> contentBlock = {This is <span class="fu">\texttt</span>{#2}, #4.},</span>
+<span id="cb396-11"><a href="#cb396-11" aria-hidden="true"></a> contentBlockOnlineImage = {This is the image <span class="fu">\texttt</span>{#2}, #4.},</span>
+<span id="cb396-12"><a href="#cb396-12" aria-hidden="true"></a> contentBlockCode = {<span class="co">%</span></span>
+<span id="cb396-13"><a href="#cb396-13" aria-hidden="true"></a> This is the #2 (<span class="fu">\MakeUppercase</span>{#1}) document <span class="fu">\texttt</span>{#3}, #5.</span>
+<span id="cb396-14"><a href="#cb396-14" aria-hidden="true"></a> },</span>
+<span id="cb396-15"><a href="#cb396-15" aria-hidden="true"></a> },</span>
+<span id="cb396-16"><a href="#cb396-16" aria-hidden="true"></a>}</span>
+<span id="cb396-17"><a href="#cb396-17" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb396-18"><a href="#cb396-18" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb396-19"><a href="#cb396-19" aria-hidden="true"></a>/document.tex (the document that we are currently typesetting)</span>
+<span id="cb396-20"><a href="#cb396-20" aria-hidden="true"></a>/markdown-languages.json (the mapping between filename extensions</span>
+<span id="cb396-21"><a href="#cb396-21" aria-hidden="true"></a> and programming language names)</span>
+<span id="cb396-22"><a href="#cb396-22" aria-hidden="true"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span>
+<span id="cb396-23"><a href="#cb396-23" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb396-24"><a href="#cb396-24" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb397"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb397-1"><a href="#cb397-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <code>document.tex</code>, the document that we are currently typesetting.</p>
@@ -4740,31 +4789,31 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-35">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb395"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb395-1"><a href="#cb395-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb395-2"><a href="#cb395-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionContentBlocks</span>{true}</span>
-<span id="cb395-3"><a href="#cb395-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb395-4"><a href="#cb395-4" aria-hidden="true"></a> This is {<span class="fu">\tt</span> #2}, #4.</span>
-<span id="cb395-5"><a href="#cb395-5" aria-hidden="true"></a>}</span>
-<span id="cb395-6"><a href="#cb395-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb395-7"><a href="#cb395-7" aria-hidden="true"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span>
-<span id="cb395-8"><a href="#cb395-8" aria-hidden="true"></a>}</span>
-<span id="cb395-9"><a href="#cb395-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span>
-<span id="cb395-10"><a href="#cb395-10" aria-hidden="true"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span>
-<span id="cb395-11"><a href="#cb395-11" aria-hidden="true"></a>}</span>
-<span id="cb395-12"><a href="#cb395-12" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb395-13"><a href="#cb395-13" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb395-14"><a href="#cb395-14" aria-hidden="true"></a>/document.tex (the document that we are currently typesetting)</span>
-<span id="cb395-15"><a href="#cb395-15" aria-hidden="true"></a>/markdown-languages.json (the mapping between filename extensions</span>
-<span id="cb395-16"><a href="#cb395-16" aria-hidden="true"></a> and programming language names)</span>
-<span id="cb395-17"><a href="#cb395-17" aria-hidden="true"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span>
-<span id="cb395-18"><a href="#cb395-18" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb395-19"><a href="#cb395-19" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb398"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb398-1"><a href="#cb398-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb398-2"><a href="#cb398-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionContentBlocks</span>{true}</span>
+<span id="cb398-3"><a href="#cb398-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb398-4"><a href="#cb398-4" aria-hidden="true"></a> This is {<span class="fu">\tt</span> #2}, #4.</span>
+<span id="cb398-5"><a href="#cb398-5" aria-hidden="true"></a>}</span>
+<span id="cb398-6"><a href="#cb398-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb398-7"><a href="#cb398-7" aria-hidden="true"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span>
+<span id="cb398-8"><a href="#cb398-8" aria-hidden="true"></a>}</span>
+<span id="cb398-9"><a href="#cb398-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span>
+<span id="cb398-10"><a href="#cb398-10" aria-hidden="true"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span>
+<span id="cb398-11"><a href="#cb398-11" aria-hidden="true"></a>}</span>
+<span id="cb398-12"><a href="#cb398-12" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb398-13"><a href="#cb398-13" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb398-14"><a href="#cb398-14" aria-hidden="true"></a>/document.tex (the document that we are currently typesetting)</span>
+<span id="cb398-15"><a href="#cb398-15" aria-hidden="true"></a>/markdown-languages.json (the mapping between filename extensions</span>
+<span id="cb398-16"><a href="#cb398-16" aria-hidden="true"></a> and programming language names)</span>
+<span id="cb398-17"><a href="#cb398-17" aria-hidden="true"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span>
+<span id="cb398-18"><a href="#cb398-18" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb398-19"><a href="#cb398-19" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Create also a text document named <code>markdown-languages.json</code> with the following content:</p>
-<div class="sourceCode" id="cb396"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb396-1"><a href="#cb396-1" aria-hidden="true"></a>{</span>
-<span id="cb396-2"><a href="#cb396-2" aria-hidden="true"></a> <span class="st">&quot;json&quot;</span><span class="op">:</span> <span class="st">&quot;JavaScript Object Notation&quot;</span><span class="op">,</span></span>
-<span id="cb396-3"><a href="#cb396-3" aria-hidden="true"></a>}</span></code></pre></div>
+<div class="sourceCode" id="cb399"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb399-1"><a href="#cb399-1" aria-hidden="true"></a>{</span>
+<span id="cb399-2"><a href="#cb399-2" aria-hidden="true"></a> <span class="st">&quot;json&quot;</span><span class="op">:</span> <span class="st">&quot;JavaScript Object Notation&quot;</span><span class="op">,</span></span>
+<span id="cb399-3"><a href="#cb399-3" aria-hidden="true"></a>}</span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb397"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb397-1"><a href="#cb397-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb400"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb400-1"><a href="#cb400-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <code>document.tex</code>, the document that we are currently typesetting.</p>
@@ -4780,50 +4829,50 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererUlEndTight</code> macro represents the end of a bulleted list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the <strong><code>tightLists</code></strong> option is <code>false</code>. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-24">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb398"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb398-1"><a href="#cb398-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb398-2"><a href="#cb398-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
-<span id="cb398-3"><a href="#cb398-3" aria-hidden="true"></a></span>
-<span id="cb398-4"><a href="#cb398-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
-<span id="cb398-5"><a href="#cb398-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span>
-<span id="cb398-6"><a href="#cb398-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
-<span id="cb398-7"><a href="#cb398-7" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
-<span id="cb398-8"><a href="#cb398-8" aria-hidden="true"></a> ,</span>
-<span id="cb398-9"><a href="#cb398-9" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span>
-<span id="cb398-10"><a href="#cb398-10" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb398-11"><a href="#cb398-11" aria-hidden="true"></a>}</span>
-<span id="cb398-12"><a href="#cb398-12" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span>
-<span id="cb398-13"><a href="#cb398-13" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span>
-<span id="cb398-14"><a href="#cb398-14" aria-hidden="true"></a></span>
-<span id="cb398-15"><a href="#cb398-15" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb398-16"><a href="#cb398-16" aria-hidden="true"></a>This is a tight list</span>
-<span id="cb398-17"><a href="#cb398-17" aria-hidden="true"></a></span>
-<span id="cb398-18"><a href="#cb398-18" aria-hidden="true"></a>- the first item</span>
-<span id="cb398-19"><a href="#cb398-19" aria-hidden="true"></a>- the second item</span>
-<span id="cb398-20"><a href="#cb398-20" aria-hidden="true"></a>- the third item</span>
-<span id="cb398-21"><a href="#cb398-21" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb398-22"><a href="#cb398-22" aria-hidden="true"></a></span>
-<span id="cb398-23"><a href="#cb398-23" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb398-24"><a href="#cb398-24" aria-hidden="true"></a> :<span class="fu">\par</span></span>
-<span id="cb398-25"><a href="#cb398-25" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb398-26"><a href="#cb398-26" aria-hidden="true"></a>}</span>
-<span id="cb398-27"><a href="#cb398-27" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBegin</span>{}</span>
-<span id="cb398-28"><a href="#cb398-28" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{--<span class="fu">\kern</span> 0.5em}</span>
-<span id="cb398-29"><a href="#cb398-29" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.<span class="fu">\par</span>}</span>
-<span id="cb398-30"><a href="#cb398-30" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEnd</span>{}</span>
-<span id="cb398-31"><a href="#cb398-31" aria-hidden="true"></a></span>
-<span id="cb398-32"><a href="#cb398-32" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb398-33"><a href="#cb398-33" aria-hidden="true"></a>This is a loose list</span>
-<span id="cb398-34"><a href="#cb398-34" aria-hidden="true"></a></span>
-<span id="cb398-35"><a href="#cb398-35" aria-hidden="true"></a>- This is the first item</span>
-<span id="cb398-36"><a href="#cb398-36" aria-hidden="true"></a></span>
-<span id="cb398-37"><a href="#cb398-37" aria-hidden="true"></a>- This is the second item</span>
-<span id="cb398-38"><a href="#cb398-38" aria-hidden="true"></a></span>
-<span id="cb398-39"><a href="#cb398-39" aria-hidden="true"></a>- This is the third item</span>
-<span id="cb398-40"><a href="#cb398-40" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb398-41"><a href="#cb398-41" aria-hidden="true"></a></span>
-<span id="cb398-42"><a href="#cb398-42" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb399"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb399-1"><a href="#cb399-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb401"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb401-1"><a href="#cb401-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb401-2"><a href="#cb401-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
+<span id="cb401-3"><a href="#cb401-3" aria-hidden="true"></a></span>
+<span id="cb401-4"><a href="#cb401-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
+<span id="cb401-5"><a href="#cb401-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span>
+<span id="cb401-6"><a href="#cb401-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
+<span id="cb401-7"><a href="#cb401-7" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
+<span id="cb401-8"><a href="#cb401-8" aria-hidden="true"></a> ,</span>
+<span id="cb401-9"><a href="#cb401-9" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span>
+<span id="cb401-10"><a href="#cb401-10" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb401-11"><a href="#cb401-11" aria-hidden="true"></a>}</span>
+<span id="cb401-12"><a href="#cb401-12" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span>
+<span id="cb401-13"><a href="#cb401-13" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span>
+<span id="cb401-14"><a href="#cb401-14" aria-hidden="true"></a></span>
+<span id="cb401-15"><a href="#cb401-15" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb401-16"><a href="#cb401-16" aria-hidden="true"></a>This is a tight list</span>
+<span id="cb401-17"><a href="#cb401-17" aria-hidden="true"></a></span>
+<span id="cb401-18"><a href="#cb401-18" aria-hidden="true"></a>- the first item</span>
+<span id="cb401-19"><a href="#cb401-19" aria-hidden="true"></a>- the second item</span>
+<span id="cb401-20"><a href="#cb401-20" aria-hidden="true"></a>- the third item</span>
+<span id="cb401-21"><a href="#cb401-21" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb401-22"><a href="#cb401-22" aria-hidden="true"></a></span>
+<span id="cb401-23"><a href="#cb401-23" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb401-24"><a href="#cb401-24" aria-hidden="true"></a> :<span class="fu">\par</span></span>
+<span id="cb401-25"><a href="#cb401-25" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb401-26"><a href="#cb401-26" aria-hidden="true"></a>}</span>
+<span id="cb401-27"><a href="#cb401-27" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBegin</span>{}</span>
+<span id="cb401-28"><a href="#cb401-28" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{--<span class="fu">\kern</span> 0.5em}</span>
+<span id="cb401-29"><a href="#cb401-29" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.<span class="fu">\par</span>}</span>
+<span id="cb401-30"><a href="#cb401-30" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEnd</span>{}</span>
+<span id="cb401-31"><a href="#cb401-31" aria-hidden="true"></a></span>
+<span id="cb401-32"><a href="#cb401-32" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb401-33"><a href="#cb401-33" aria-hidden="true"></a>This is a loose list</span>
+<span id="cb401-34"><a href="#cb401-34" aria-hidden="true"></a></span>
+<span id="cb401-35"><a href="#cb401-35" aria-hidden="true"></a>- This is the first item</span>
+<span id="cb401-36"><a href="#cb401-36" aria-hidden="true"></a></span>
+<span id="cb401-37"><a href="#cb401-37" aria-hidden="true"></a>- This is the second item</span>
+<span id="cb401-38"><a href="#cb401-38" aria-hidden="true"></a></span>
+<span id="cb401-39"><a href="#cb401-39" aria-hidden="true"></a>- This is the third item</span>
+<span id="cb401-40"><a href="#cb401-40" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb401-41"><a href="#cb401-41" aria-hidden="true"></a></span>
+<span id="cb401-42"><a href="#cb401-42" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb402"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb402-1"><a href="#cb402-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight list (the first item, the second item, and the third item).</p>
@@ -4834,57 +4883,57 @@ Thomas,Edison,1847</code></pre>
<li><p>This is the third item.</p></li>
</ul>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-46"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-47"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb400"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb400-1"><a href="#cb400-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb400-2"><a href="#cb400-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[tightLists]{<span class="ex">markdown</span>}</span>
-<span id="cb400-3"><a href="#cb400-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb400-4"><a href="#cb400-4" aria-hidden="true"></a></span>
-<span id="cb400-5"><a href="#cb400-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb400-6"><a href="#cb400-6" aria-hidden="true"></a> renderers = {</span>
-<span id="cb400-7"><a href="#cb400-7" aria-hidden="true"></a> interblockSeparator = {},</span>
-<span id="cb400-8"><a href="#cb400-8" aria-hidden="true"></a> ulBeginTight = { (},</span>
-<span id="cb400-9"><a href="#cb400-9" aria-hidden="true"></a> ulItem = {<span class="co">%</span></span>
-<span id="cb400-10"><a href="#cb400-10" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
-<span id="cb400-11"><a href="#cb400-11" aria-hidden="true"></a> ,</span>
-<span id="cb400-12"><a href="#cb400-12" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span>
-<span id="cb400-13"><a href="#cb400-13" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb400-14"><a href="#cb400-14" aria-hidden="true"></a> },</span>
-<span id="cb400-15"><a href="#cb400-15" aria-hidden="true"></a> ulItemEnd = {},</span>
-<span id="cb400-16"><a href="#cb400-16" aria-hidden="true"></a> ulEndTight = {).},</span>
-<span id="cb400-17"><a href="#cb400-17" aria-hidden="true"></a> },</span>
-<span id="cb400-18"><a href="#cb400-18" aria-hidden="true"></a>}</span>
-<span id="cb400-19"><a href="#cb400-19" aria-hidden="true"></a>This is a tight list</span>
-<span id="cb400-20"><a href="#cb400-20" aria-hidden="true"></a></span>
-<span id="cb400-21"><a href="#cb400-21" aria-hidden="true"></a>- the first item</span>
-<span id="cb400-22"><a href="#cb400-22" aria-hidden="true"></a>- the second item</span>
-<span id="cb400-23"><a href="#cb400-23" aria-hidden="true"></a>- the third item</span>
-<span id="cb400-24"><a href="#cb400-24" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb400-25"><a href="#cb400-25" aria-hidden="true"></a></span>
-<span id="cb400-26"><a href="#cb400-26" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb400-27"><a href="#cb400-27" aria-hidden="true"></a> renderers = {</span>
-<span id="cb400-28"><a href="#cb400-28" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
-<span id="cb400-29"><a href="#cb400-29" aria-hidden="true"></a> :<span class="fu">\par</span></span>
-<span id="cb400-30"><a href="#cb400-30" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb400-31"><a href="#cb400-31" aria-hidden="true"></a> },</span>
-<span id="cb400-32"><a href="#cb400-32" aria-hidden="true"></a> ulBeginTight = {<span class="kw">\begin</span>{<span class="ex">itemize</span>}},</span>
-<span id="cb400-33"><a href="#cb400-33" aria-hidden="true"></a> ulItem = {<span class="fu">\item</span>},</span>
-<span id="cb400-34"><a href="#cb400-34" aria-hidden="true"></a> ulItemEnd = {.},</span>
-<span id="cb400-35"><a href="#cb400-35" aria-hidden="true"></a> ulEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span>
-<span id="cb400-36"><a href="#cb400-36" aria-hidden="true"></a> },</span>
-<span id="cb400-37"><a href="#cb400-37" aria-hidden="true"></a>}</span>
-<span id="cb400-38"><a href="#cb400-38" aria-hidden="true"></a>This is a loose list</span>
-<span id="cb400-39"><a href="#cb400-39" aria-hidden="true"></a></span>
-<span id="cb400-40"><a href="#cb400-40" aria-hidden="true"></a>- This is the first item</span>
-<span id="cb400-41"><a href="#cb400-41" aria-hidden="true"></a></span>
-<span id="cb400-42"><a href="#cb400-42" aria-hidden="true"></a>- This is the second item</span>
-<span id="cb400-43"><a href="#cb400-43" aria-hidden="true"></a></span>
-<span id="cb400-44"><a href="#cb400-44" aria-hidden="true"></a>- This is the third item</span>
-<span id="cb400-45"><a href="#cb400-45" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb400-46"><a href="#cb400-46" aria-hidden="true"></a></span>
-<span id="cb400-47"><a href="#cb400-47" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb401"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb401-1"><a href="#cb401-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb403"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb403-1"><a href="#cb403-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb403-2"><a href="#cb403-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[tightLists]{<span class="ex">markdown</span>}</span>
+<span id="cb403-3"><a href="#cb403-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb403-4"><a href="#cb403-4" aria-hidden="true"></a></span>
+<span id="cb403-5"><a href="#cb403-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb403-6"><a href="#cb403-6" aria-hidden="true"></a> renderers = {</span>
+<span id="cb403-7"><a href="#cb403-7" aria-hidden="true"></a> interblockSeparator = {},</span>
+<span id="cb403-8"><a href="#cb403-8" aria-hidden="true"></a> ulBeginTight = { (},</span>
+<span id="cb403-9"><a href="#cb403-9" aria-hidden="true"></a> ulItem = {<span class="co">%</span></span>
+<span id="cb403-10"><a href="#cb403-10" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
+<span id="cb403-11"><a href="#cb403-11" aria-hidden="true"></a> ,</span>
+<span id="cb403-12"><a href="#cb403-12" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span>
+<span id="cb403-13"><a href="#cb403-13" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb403-14"><a href="#cb403-14" aria-hidden="true"></a> },</span>
+<span id="cb403-15"><a href="#cb403-15" aria-hidden="true"></a> ulItemEnd = {},</span>
+<span id="cb403-16"><a href="#cb403-16" aria-hidden="true"></a> ulEndTight = {).},</span>
+<span id="cb403-17"><a href="#cb403-17" aria-hidden="true"></a> },</span>
+<span id="cb403-18"><a href="#cb403-18" aria-hidden="true"></a>}</span>
+<span id="cb403-19"><a href="#cb403-19" aria-hidden="true"></a>This is a tight list</span>
+<span id="cb403-20"><a href="#cb403-20" aria-hidden="true"></a></span>
+<span id="cb403-21"><a href="#cb403-21" aria-hidden="true"></a>- the first item</span>
+<span id="cb403-22"><a href="#cb403-22" aria-hidden="true"></a>- the second item</span>
+<span id="cb403-23"><a href="#cb403-23" aria-hidden="true"></a>- the third item</span>
+<span id="cb403-24"><a href="#cb403-24" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb403-25"><a href="#cb403-25" aria-hidden="true"></a></span>
+<span id="cb403-26"><a href="#cb403-26" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb403-27"><a href="#cb403-27" aria-hidden="true"></a> renderers = {</span>
+<span id="cb403-28"><a href="#cb403-28" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
+<span id="cb403-29"><a href="#cb403-29" aria-hidden="true"></a> :<span class="fu">\par</span></span>
+<span id="cb403-30"><a href="#cb403-30" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb403-31"><a href="#cb403-31" aria-hidden="true"></a> },</span>
+<span id="cb403-32"><a href="#cb403-32" aria-hidden="true"></a> ulBeginTight = {<span class="kw">\begin</span>{<span class="ex">itemize</span>}},</span>
+<span id="cb403-33"><a href="#cb403-33" aria-hidden="true"></a> ulItem = {<span class="fu">\item</span>},</span>
+<span id="cb403-34"><a href="#cb403-34" aria-hidden="true"></a> ulItemEnd = {.},</span>
+<span id="cb403-35"><a href="#cb403-35" aria-hidden="true"></a> ulEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span>
+<span id="cb403-36"><a href="#cb403-36" aria-hidden="true"></a> },</span>
+<span id="cb403-37"><a href="#cb403-37" aria-hidden="true"></a>}</span>
+<span id="cb403-38"><a href="#cb403-38" aria-hidden="true"></a>This is a loose list</span>
+<span id="cb403-39"><a href="#cb403-39" aria-hidden="true"></a></span>
+<span id="cb403-40"><a href="#cb403-40" aria-hidden="true"></a>- This is the first item</span>
+<span id="cb403-41"><a href="#cb403-41" aria-hidden="true"></a></span>
+<span id="cb403-42"><a href="#cb403-42" aria-hidden="true"></a>- This is the second item</span>
+<span id="cb403-43"><a href="#cb403-43" aria-hidden="true"></a></span>
+<span id="cb403-44"><a href="#cb403-44" aria-hidden="true"></a>- This is the third item</span>
+<span id="cb403-45"><a href="#cb403-45" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb403-46"><a href="#cb403-46" aria-hidden="true"></a></span>
+<span id="cb403-47"><a href="#cb403-47" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb404"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb404-1"><a href="#cb404-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight list (the first item, the second item, and the third item).</p>
@@ -4897,51 +4946,51 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-36">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb402"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb402-1"><a href="#cb402-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb402-2"><a href="#cb402-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
-<span id="cb402-3"><a href="#cb402-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb402-4"><a href="#cb402-4" aria-hidden="true"></a></span>
-<span id="cb402-5"><a href="#cb402-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
-<span id="cb402-6"><a href="#cb402-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span>
-<span id="cb402-7"><a href="#cb402-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
-<span id="cb402-8"><a href="#cb402-8" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
-<span id="cb402-9"><a href="#cb402-9" aria-hidden="true"></a> ,</span>
-<span id="cb402-10"><a href="#cb402-10" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span>
-<span id="cb402-11"><a href="#cb402-11" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb402-12"><a href="#cb402-12" aria-hidden="true"></a>}</span>
-<span id="cb402-13"><a href="#cb402-13" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span>
-<span id="cb402-14"><a href="#cb402-14" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span>
-<span id="cb402-15"><a href="#cb402-15" aria-hidden="true"></a></span>
-<span id="cb402-16"><a href="#cb402-16" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb402-17"><a href="#cb402-17" aria-hidden="true"></a>This is a tight list</span>
-<span id="cb402-18"><a href="#cb402-18" aria-hidden="true"></a></span>
-<span id="cb402-19"><a href="#cb402-19" aria-hidden="true"></a>- the first item</span>
-<span id="cb402-20"><a href="#cb402-20" aria-hidden="true"></a>- the second item</span>
-<span id="cb402-21"><a href="#cb402-21" aria-hidden="true"></a>- the third item</span>
-<span id="cb402-22"><a href="#cb402-22" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb402-23"><a href="#cb402-23" aria-hidden="true"></a></span>
-<span id="cb402-24"><a href="#cb402-24" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb402-25"><a href="#cb402-25" aria-hidden="true"></a> :<span class="fu">\par</span></span>
-<span id="cb402-26"><a href="#cb402-26" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb402-27"><a href="#cb402-27" aria-hidden="true"></a>}</span>
-<span id="cb402-28"><a href="#cb402-28" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBegin</span>{<span class="fu">\startitemize</span>}</span>
-<span id="cb402-29"><a href="#cb402-29" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="fu">\item</span>}</span>
-<span id="cb402-30"><a href="#cb402-30" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.}</span>
-<span id="cb402-31"><a href="#cb402-31" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEnd</span>{<span class="fu">\stopitemize</span>}</span>
-<span id="cb402-32"><a href="#cb402-32" aria-hidden="true"></a></span>
-<span id="cb402-33"><a href="#cb402-33" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb402-34"><a href="#cb402-34" aria-hidden="true"></a>This is a loose list</span>
-<span id="cb402-35"><a href="#cb402-35" aria-hidden="true"></a></span>
-<span id="cb402-36"><a href="#cb402-36" aria-hidden="true"></a>- This is the first item</span>
-<span id="cb402-37"><a href="#cb402-37" aria-hidden="true"></a></span>
-<span id="cb402-38"><a href="#cb402-38" aria-hidden="true"></a>- This is the second item</span>
-<span id="cb402-39"><a href="#cb402-39" aria-hidden="true"></a></span>
-<span id="cb402-40"><a href="#cb402-40" aria-hidden="true"></a>- This is the third item</span>
-<span id="cb402-41"><a href="#cb402-41" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb402-42"><a href="#cb402-42" aria-hidden="true"></a></span>
-<span id="cb402-43"><a href="#cb402-43" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb403"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb403-1"><a href="#cb403-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb405"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb405-1"><a href="#cb405-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb405-2"><a href="#cb405-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
+<span id="cb405-3"><a href="#cb405-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb405-4"><a href="#cb405-4" aria-hidden="true"></a></span>
+<span id="cb405-5"><a href="#cb405-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
+<span id="cb405-6"><a href="#cb405-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span>
+<span id="cb405-7"><a href="#cb405-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
+<span id="cb405-8"><a href="#cb405-8" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span>
+<span id="cb405-9"><a href="#cb405-9" aria-hidden="true"></a> ,</span>
+<span id="cb405-10"><a href="#cb405-10" aria-hidden="true"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span>
+<span id="cb405-11"><a href="#cb405-11" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb405-12"><a href="#cb405-12" aria-hidden="true"></a>}</span>
+<span id="cb405-13"><a href="#cb405-13" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span>
+<span id="cb405-14"><a href="#cb405-14" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span>
+<span id="cb405-15"><a href="#cb405-15" aria-hidden="true"></a></span>
+<span id="cb405-16"><a href="#cb405-16" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb405-17"><a href="#cb405-17" aria-hidden="true"></a>This is a tight list</span>
+<span id="cb405-18"><a href="#cb405-18" aria-hidden="true"></a></span>
+<span id="cb405-19"><a href="#cb405-19" aria-hidden="true"></a>- the first item</span>
+<span id="cb405-20"><a href="#cb405-20" aria-hidden="true"></a>- the second item</span>
+<span id="cb405-21"><a href="#cb405-21" aria-hidden="true"></a>- the third item</span>
+<span id="cb405-22"><a href="#cb405-22" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb405-23"><a href="#cb405-23" aria-hidden="true"></a></span>
+<span id="cb405-24"><a href="#cb405-24" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb405-25"><a href="#cb405-25" aria-hidden="true"></a> :<span class="fu">\par</span></span>
+<span id="cb405-26"><a href="#cb405-26" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb405-27"><a href="#cb405-27" aria-hidden="true"></a>}</span>
+<span id="cb405-28"><a href="#cb405-28" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlBegin</span>{<span class="fu">\startitemize</span>}</span>
+<span id="cb405-29"><a href="#cb405-29" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="fu">\item</span>}</span>
+<span id="cb405-30"><a href="#cb405-30" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.}</span>
+<span id="cb405-31"><a href="#cb405-31" aria-hidden="true"></a><span class="fu">\def\markdownRendererUlEnd</span>{<span class="fu">\stopitemize</span>}</span>
+<span id="cb405-32"><a href="#cb405-32" aria-hidden="true"></a></span>
+<span id="cb405-33"><a href="#cb405-33" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb405-34"><a href="#cb405-34" aria-hidden="true"></a>This is a loose list</span>
+<span id="cb405-35"><a href="#cb405-35" aria-hidden="true"></a></span>
+<span id="cb405-36"><a href="#cb405-36" aria-hidden="true"></a>- This is the first item</span>
+<span id="cb405-37"><a href="#cb405-37" aria-hidden="true"></a></span>
+<span id="cb405-38"><a href="#cb405-38" aria-hidden="true"></a>- This is the second item</span>
+<span id="cb405-39"><a href="#cb405-39" aria-hidden="true"></a></span>
+<span id="cb405-40"><a href="#cb405-40" aria-hidden="true"></a>- This is the third item</span>
+<span id="cb405-41"><a href="#cb405-41" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb405-42"><a href="#cb405-42" aria-hidden="true"></a></span>
+<span id="cb405-43"><a href="#cb405-43" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb406"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb406-1"><a href="#cb406-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight list (the first item, the second item, and the third item).</p>
@@ -4962,68 +5011,68 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererOlEndTight</code> macro represents the end of an ordered list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the <strong><code>tightLists</code></strong> option is <code>false</code>. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-25">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb404"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb404-1"><a href="#cb404-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb404-2"><a href="#cb404-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
-<span id="cb404-3"><a href="#cb404-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionStartNumber</span>{true}</span>
-<span id="cb404-4"><a href="#cb404-4" aria-hidden="true"></a></span>
-<span id="cb404-5"><a href="#cb404-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
-<span id="cb404-6"><a href="#cb404-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span>
-<span id="cb404-7"><a href="#cb404-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
-<span id="cb404-8"><a href="#cb404-8" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
-<span id="cb404-9"><a href="#cb404-9" aria-hidden="true"></a> the first</span>
-<span id="cb404-10"><a href="#cb404-10" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb404-11"><a href="#cb404-11" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
-<span id="cb404-12"><a href="#cb404-12" aria-hidden="true"></a> , the second</span>
-<span id="cb404-13"><a href="#cb404-13" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb404-14"><a href="#cb404-14" aria-hidden="true"></a> , and the third</span>
-<span id="cb404-15"><a href="#cb404-15" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb404-16"><a href="#cb404-16" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb404-17"><a href="#cb404-17" aria-hidden="true"></a>}</span>
-<span id="cb404-18"><a href="#cb404-18" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span>
-<span id="cb404-19"><a href="#cb404-19" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span>
-<span id="cb404-20"><a href="#cb404-20" aria-hidden="true"></a></span>
-<span id="cb404-21"><a href="#cb404-21" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb404-22"><a href="#cb404-22" aria-hidden="true"></a>This is a tight list</span>
-<span id="cb404-23"><a href="#cb404-23" aria-hidden="true"></a></span>
-<span id="cb404-24"><a href="#cb404-24" aria-hidden="true"></a>1. item</span>
-<span id="cb404-25"><a href="#cb404-25" aria-hidden="true"></a>2. item</span>
-<span id="cb404-26"><a href="#cb404-26" aria-hidden="true"></a>3. item</span>
-<span id="cb404-27"><a href="#cb404-27" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb404-28"><a href="#cb404-28" aria-hidden="true"></a></span>
-<span id="cb404-29"><a href="#cb404-29" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb404-30"><a href="#cb404-30" aria-hidden="true"></a> :<span class="fu">\par</span></span>
-<span id="cb404-31"><a href="#cb404-31" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb404-32"><a href="#cb404-32" aria-hidden="true"></a>}</span>
-<span id="cb404-33"><a href="#cb404-33" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBegin</span>{}</span>
-<span id="cb404-34"><a href="#cb404-34" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
-<span id="cb404-35"><a href="#cb404-35" aria-hidden="true"></a> #1.<span class="fu">\kern</span> 0.5em<span class="co">%</span></span>
-<span id="cb404-36"><a href="#cb404-36" aria-hidden="true"></a> This is the</span>
-<span id="cb404-37"><a href="#cb404-37" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
-<span id="cb404-38"><a href="#cb404-38" aria-hidden="true"></a> first</span>
-<span id="cb404-39"><a href="#cb404-39" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb404-40"><a href="#cb404-40" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
-<span id="cb404-41"><a href="#cb404-41" aria-hidden="true"></a> second</span>
-<span id="cb404-42"><a href="#cb404-42" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb404-43"><a href="#cb404-43" aria-hidden="true"></a> third</span>
-<span id="cb404-44"><a href="#cb404-44" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb404-45"><a href="#cb404-45" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb404-46"><a href="#cb404-46" aria-hidden="true"></a>}</span>
-<span id="cb404-47"><a href="#cb404-47" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span>
-<span id="cb404-48"><a href="#cb404-48" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEnd</span>{}</span>
-<span id="cb404-49"><a href="#cb404-49" aria-hidden="true"></a></span>
-<span id="cb404-50"><a href="#cb404-50" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb404-51"><a href="#cb404-51" aria-hidden="true"></a>This is a loose list</span>
-<span id="cb404-52"><a href="#cb404-52" aria-hidden="true"></a></span>
-<span id="cb404-53"><a href="#cb404-53" aria-hidden="true"></a>1. item</span>
-<span id="cb404-54"><a href="#cb404-54" aria-hidden="true"></a></span>
-<span id="cb404-55"><a href="#cb404-55" aria-hidden="true"></a>2. item</span>
-<span id="cb404-56"><a href="#cb404-56" aria-hidden="true"></a></span>
-<span id="cb404-57"><a href="#cb404-57" aria-hidden="true"></a>3. item</span>
-<span id="cb404-58"><a href="#cb404-58" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb404-59"><a href="#cb404-59" aria-hidden="true"></a></span>
-<span id="cb404-60"><a href="#cb404-60" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb405"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb405-1"><a href="#cb405-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb407"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb407-1"><a href="#cb407-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb407-2"><a href="#cb407-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
+<span id="cb407-3"><a href="#cb407-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionStartNumber</span>{true}</span>
+<span id="cb407-4"><a href="#cb407-4" aria-hidden="true"></a></span>
+<span id="cb407-5"><a href="#cb407-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
+<span id="cb407-6"><a href="#cb407-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span>
+<span id="cb407-7"><a href="#cb407-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
+<span id="cb407-8"><a href="#cb407-8" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
+<span id="cb407-9"><a href="#cb407-9" aria-hidden="true"></a> the first</span>
+<span id="cb407-10"><a href="#cb407-10" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb407-11"><a href="#cb407-11" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
+<span id="cb407-12"><a href="#cb407-12" aria-hidden="true"></a> , the second</span>
+<span id="cb407-13"><a href="#cb407-13" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb407-14"><a href="#cb407-14" aria-hidden="true"></a> , and the third</span>
+<span id="cb407-15"><a href="#cb407-15" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb407-16"><a href="#cb407-16" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb407-17"><a href="#cb407-17" aria-hidden="true"></a>}</span>
+<span id="cb407-18"><a href="#cb407-18" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span>
+<span id="cb407-19"><a href="#cb407-19" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span>
+<span id="cb407-20"><a href="#cb407-20" aria-hidden="true"></a></span>
+<span id="cb407-21"><a href="#cb407-21" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb407-22"><a href="#cb407-22" aria-hidden="true"></a>This is a tight list</span>
+<span id="cb407-23"><a href="#cb407-23" aria-hidden="true"></a></span>
+<span id="cb407-24"><a href="#cb407-24" aria-hidden="true"></a>1. item</span>
+<span id="cb407-25"><a href="#cb407-25" aria-hidden="true"></a>2. item</span>
+<span id="cb407-26"><a href="#cb407-26" aria-hidden="true"></a>3. item</span>
+<span id="cb407-27"><a href="#cb407-27" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb407-28"><a href="#cb407-28" aria-hidden="true"></a></span>
+<span id="cb407-29"><a href="#cb407-29" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb407-30"><a href="#cb407-30" aria-hidden="true"></a> :<span class="fu">\par</span></span>
+<span id="cb407-31"><a href="#cb407-31" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb407-32"><a href="#cb407-32" aria-hidden="true"></a>}</span>
+<span id="cb407-33"><a href="#cb407-33" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBegin</span>{}</span>
+<span id="cb407-34"><a href="#cb407-34" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
+<span id="cb407-35"><a href="#cb407-35" aria-hidden="true"></a> #1.<span class="fu">\kern</span> 0.5em<span class="co">%</span></span>
+<span id="cb407-36"><a href="#cb407-36" aria-hidden="true"></a> This is the</span>
+<span id="cb407-37"><a href="#cb407-37" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
+<span id="cb407-38"><a href="#cb407-38" aria-hidden="true"></a> first</span>
+<span id="cb407-39"><a href="#cb407-39" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb407-40"><a href="#cb407-40" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
+<span id="cb407-41"><a href="#cb407-41" aria-hidden="true"></a> second</span>
+<span id="cb407-42"><a href="#cb407-42" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb407-43"><a href="#cb407-43" aria-hidden="true"></a> third</span>
+<span id="cb407-44"><a href="#cb407-44" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb407-45"><a href="#cb407-45" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb407-46"><a href="#cb407-46" aria-hidden="true"></a>}</span>
+<span id="cb407-47"><a href="#cb407-47" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span>
+<span id="cb407-48"><a href="#cb407-48" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEnd</span>{}</span>
+<span id="cb407-49"><a href="#cb407-49" aria-hidden="true"></a></span>
+<span id="cb407-50"><a href="#cb407-50" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb407-51"><a href="#cb407-51" aria-hidden="true"></a>This is a loose list</span>
+<span id="cb407-52"><a href="#cb407-52" aria-hidden="true"></a></span>
+<span id="cb407-53"><a href="#cb407-53" aria-hidden="true"></a>1. item</span>
+<span id="cb407-54"><a href="#cb407-54" aria-hidden="true"></a></span>
+<span id="cb407-55"><a href="#cb407-55" aria-hidden="true"></a>2. item</span>
+<span id="cb407-56"><a href="#cb407-56" aria-hidden="true"></a></span>
+<span id="cb407-57"><a href="#cb407-57" aria-hidden="true"></a>3. item</span>
+<span id="cb407-58"><a href="#cb407-58" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb407-59"><a href="#cb407-59" aria-hidden="true"></a></span>
+<span id="cb407-60"><a href="#cb407-60" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb408"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb408-1"><a href="#cb408-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight list (the first item, the second item, and the third item).</p>
@@ -5034,73 +5083,73 @@ Thomas,Edison,1847</code></pre>
<li><p>This is the third item.</p></li>
</ol>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-47"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-48"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb406"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb406-1"><a href="#cb406-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb406-2"><a href="#cb406-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[tightLists, startNumber]{<span class="ex">markdown</span>}</span>
-<span id="cb406-3"><a href="#cb406-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb406-4"><a href="#cb406-4" aria-hidden="true"></a></span>
-<span id="cb406-5"><a href="#cb406-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb406-6"><a href="#cb406-6" aria-hidden="true"></a> renderers = {</span>
-<span id="cb406-7"><a href="#cb406-7" aria-hidden="true"></a> interblockSeparator = {},</span>
-<span id="cb406-8"><a href="#cb406-8" aria-hidden="true"></a> olBeginTight = { (},</span>
-<span id="cb406-9"><a href="#cb406-9" aria-hidden="true"></a> olItemWithNumber = {<span class="co">%</span></span>
-<span id="cb406-10"><a href="#cb406-10" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
-<span id="cb406-11"><a href="#cb406-11" aria-hidden="true"></a> the first</span>
-<span id="cb406-12"><a href="#cb406-12" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb406-13"><a href="#cb406-13" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
-<span id="cb406-14"><a href="#cb406-14" aria-hidden="true"></a> , the second</span>
-<span id="cb406-15"><a href="#cb406-15" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb406-16"><a href="#cb406-16" aria-hidden="true"></a> , and the third</span>
-<span id="cb406-17"><a href="#cb406-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb406-18"><a href="#cb406-18" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb406-19"><a href="#cb406-19" aria-hidden="true"></a> },</span>
-<span id="cb406-20"><a href="#cb406-20" aria-hidden="true"></a> olItemEnd = {},</span>
-<span id="cb406-21"><a href="#cb406-21" aria-hidden="true"></a> olEndTight = {).},</span>
-<span id="cb406-22"><a href="#cb406-22" aria-hidden="true"></a> },</span>
-<span id="cb406-23"><a href="#cb406-23" aria-hidden="true"></a>}</span>
-<span id="cb406-24"><a href="#cb406-24" aria-hidden="true"></a>This is a tight list</span>
-<span id="cb406-25"><a href="#cb406-25" aria-hidden="true"></a></span>
-<span id="cb406-26"><a href="#cb406-26" aria-hidden="true"></a>1. item</span>
-<span id="cb406-27"><a href="#cb406-27" aria-hidden="true"></a>2. item</span>
-<span id="cb406-28"><a href="#cb406-28" aria-hidden="true"></a>3. item</span>
-<span id="cb406-29"><a href="#cb406-29" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb406-30"><a href="#cb406-30" aria-hidden="true"></a></span>
-<span id="cb406-31"><a href="#cb406-31" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb406-32"><a href="#cb406-32" aria-hidden="true"></a> renderers = {</span>
-<span id="cb406-33"><a href="#cb406-33" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
-<span id="cb406-34"><a href="#cb406-34" aria-hidden="true"></a> :<span class="fu">\par</span></span>
-<span id="cb406-35"><a href="#cb406-35" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb406-36"><a href="#cb406-36" aria-hidden="true"></a> },</span>
-<span id="cb406-37"><a href="#cb406-37" aria-hidden="true"></a> olBeginTight = {<span class="kw">\begin</span>{<span class="ex">enumerate</span>}},</span>
-<span id="cb406-38"><a href="#cb406-38" aria-hidden="true"></a> olItemWithNumber = {<span class="co">%</span></span>
-<span id="cb406-39"><a href="#cb406-39" aria-hidden="true"></a> <span class="fu">\item</span> This is the</span>
-<span id="cb406-40"><a href="#cb406-40" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
-<span id="cb406-41"><a href="#cb406-41" aria-hidden="true"></a> first</span>
-<span id="cb406-42"><a href="#cb406-42" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb406-43"><a href="#cb406-43" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
-<span id="cb406-44"><a href="#cb406-44" aria-hidden="true"></a> second</span>
-<span id="cb406-45"><a href="#cb406-45" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb406-46"><a href="#cb406-46" aria-hidden="true"></a> third</span>
-<span id="cb406-47"><a href="#cb406-47" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb406-48"><a href="#cb406-48" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb406-49"><a href="#cb406-49" aria-hidden="true"></a> },</span>
-<span id="cb406-50"><a href="#cb406-50" aria-hidden="true"></a> olItemEnd = {.},</span>
-<span id="cb406-51"><a href="#cb406-51" aria-hidden="true"></a> olEnd = {<span class="kw">\end</span>{<span class="ex">enumerate</span>}},</span>
-<span id="cb406-52"><a href="#cb406-52" aria-hidden="true"></a> },</span>
-<span id="cb406-53"><a href="#cb406-53" aria-hidden="true"></a>}</span>
-<span id="cb406-54"><a href="#cb406-54" aria-hidden="true"></a>This is a loose list</span>
-<span id="cb406-55"><a href="#cb406-55" aria-hidden="true"></a></span>
-<span id="cb406-56"><a href="#cb406-56" aria-hidden="true"></a>1. item</span>
-<span id="cb406-57"><a href="#cb406-57" aria-hidden="true"></a></span>
-<span id="cb406-58"><a href="#cb406-58" aria-hidden="true"></a>2. item</span>
-<span id="cb406-59"><a href="#cb406-59" aria-hidden="true"></a></span>
-<span id="cb406-60"><a href="#cb406-60" aria-hidden="true"></a>3. item</span>
-<span id="cb406-61"><a href="#cb406-61" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb406-62"><a href="#cb406-62" aria-hidden="true"></a></span>
-<span id="cb406-63"><a href="#cb406-63" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb407"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb407-1"><a href="#cb407-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb409"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb409-1"><a href="#cb409-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb409-2"><a href="#cb409-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[tightLists, startNumber]{<span class="ex">markdown</span>}</span>
+<span id="cb409-3"><a href="#cb409-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb409-4"><a href="#cb409-4" aria-hidden="true"></a></span>
+<span id="cb409-5"><a href="#cb409-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb409-6"><a href="#cb409-6" aria-hidden="true"></a> renderers = {</span>
+<span id="cb409-7"><a href="#cb409-7" aria-hidden="true"></a> interblockSeparator = {},</span>
+<span id="cb409-8"><a href="#cb409-8" aria-hidden="true"></a> olBeginTight = { (},</span>
+<span id="cb409-9"><a href="#cb409-9" aria-hidden="true"></a> olItemWithNumber = {<span class="co">%</span></span>
+<span id="cb409-10"><a href="#cb409-10" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
+<span id="cb409-11"><a href="#cb409-11" aria-hidden="true"></a> the first</span>
+<span id="cb409-12"><a href="#cb409-12" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb409-13"><a href="#cb409-13" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
+<span id="cb409-14"><a href="#cb409-14" aria-hidden="true"></a> , the second</span>
+<span id="cb409-15"><a href="#cb409-15" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb409-16"><a href="#cb409-16" aria-hidden="true"></a> , and the third</span>
+<span id="cb409-17"><a href="#cb409-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb409-18"><a href="#cb409-18" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb409-19"><a href="#cb409-19" aria-hidden="true"></a> },</span>
+<span id="cb409-20"><a href="#cb409-20" aria-hidden="true"></a> olItemEnd = {},</span>
+<span id="cb409-21"><a href="#cb409-21" aria-hidden="true"></a> olEndTight = {).},</span>
+<span id="cb409-22"><a href="#cb409-22" aria-hidden="true"></a> },</span>
+<span id="cb409-23"><a href="#cb409-23" aria-hidden="true"></a>}</span>
+<span id="cb409-24"><a href="#cb409-24" aria-hidden="true"></a>This is a tight list</span>
+<span id="cb409-25"><a href="#cb409-25" aria-hidden="true"></a></span>
+<span id="cb409-26"><a href="#cb409-26" aria-hidden="true"></a>1. item</span>
+<span id="cb409-27"><a href="#cb409-27" aria-hidden="true"></a>2. item</span>
+<span id="cb409-28"><a href="#cb409-28" aria-hidden="true"></a>3. item</span>
+<span id="cb409-29"><a href="#cb409-29" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb409-30"><a href="#cb409-30" aria-hidden="true"></a></span>
+<span id="cb409-31"><a href="#cb409-31" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb409-32"><a href="#cb409-32" aria-hidden="true"></a> renderers = {</span>
+<span id="cb409-33"><a href="#cb409-33" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
+<span id="cb409-34"><a href="#cb409-34" aria-hidden="true"></a> :<span class="fu">\par</span></span>
+<span id="cb409-35"><a href="#cb409-35" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb409-36"><a href="#cb409-36" aria-hidden="true"></a> },</span>
+<span id="cb409-37"><a href="#cb409-37" aria-hidden="true"></a> olBeginTight = {<span class="kw">\begin</span>{<span class="ex">enumerate</span>}},</span>
+<span id="cb409-38"><a href="#cb409-38" aria-hidden="true"></a> olItemWithNumber = {<span class="co">%</span></span>
+<span id="cb409-39"><a href="#cb409-39" aria-hidden="true"></a> <span class="fu">\item</span> This is the</span>
+<span id="cb409-40"><a href="#cb409-40" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
+<span id="cb409-41"><a href="#cb409-41" aria-hidden="true"></a> first</span>
+<span id="cb409-42"><a href="#cb409-42" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb409-43"><a href="#cb409-43" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
+<span id="cb409-44"><a href="#cb409-44" aria-hidden="true"></a> second</span>
+<span id="cb409-45"><a href="#cb409-45" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb409-46"><a href="#cb409-46" aria-hidden="true"></a> third</span>
+<span id="cb409-47"><a href="#cb409-47" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb409-48"><a href="#cb409-48" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb409-49"><a href="#cb409-49" aria-hidden="true"></a> },</span>
+<span id="cb409-50"><a href="#cb409-50" aria-hidden="true"></a> olItemEnd = {.},</span>
+<span id="cb409-51"><a href="#cb409-51" aria-hidden="true"></a> olEnd = {<span class="kw">\end</span>{<span class="ex">enumerate</span>}},</span>
+<span id="cb409-52"><a href="#cb409-52" aria-hidden="true"></a> },</span>
+<span id="cb409-53"><a href="#cb409-53" aria-hidden="true"></a>}</span>
+<span id="cb409-54"><a href="#cb409-54" aria-hidden="true"></a>This is a loose list</span>
+<span id="cb409-55"><a href="#cb409-55" aria-hidden="true"></a></span>
+<span id="cb409-56"><a href="#cb409-56" aria-hidden="true"></a>1. item</span>
+<span id="cb409-57"><a href="#cb409-57" aria-hidden="true"></a></span>
+<span id="cb409-58"><a href="#cb409-58" aria-hidden="true"></a>2. item</span>
+<span id="cb409-59"><a href="#cb409-59" aria-hidden="true"></a></span>
+<span id="cb409-60"><a href="#cb409-60" aria-hidden="true"></a>3. item</span>
+<span id="cb409-61"><a href="#cb409-61" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb409-62"><a href="#cb409-62" aria-hidden="true"></a></span>
+<span id="cb409-63"><a href="#cb409-63" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb410"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb410-1"><a href="#cb410-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight list (the first item, the second item, and the third item).</p>
@@ -5113,69 +5162,69 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-37">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb408"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb408-1"><a href="#cb408-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb408-2"><a href="#cb408-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
-<span id="cb408-3"><a href="#cb408-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionStartNumber</span>{true}</span>
-<span id="cb408-4"><a href="#cb408-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb408-5"><a href="#cb408-5" aria-hidden="true"></a></span>
-<span id="cb408-6"><a href="#cb408-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
-<span id="cb408-7"><a href="#cb408-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span>
-<span id="cb408-8"><a href="#cb408-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
-<span id="cb408-9"><a href="#cb408-9" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
-<span id="cb408-10"><a href="#cb408-10" aria-hidden="true"></a> the first</span>
-<span id="cb408-11"><a href="#cb408-11" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb408-12"><a href="#cb408-12" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
-<span id="cb408-13"><a href="#cb408-13" aria-hidden="true"></a> , the second</span>
-<span id="cb408-14"><a href="#cb408-14" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb408-15"><a href="#cb408-15" aria-hidden="true"></a> , and the third</span>
-<span id="cb408-16"><a href="#cb408-16" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb408-17"><a href="#cb408-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb408-18"><a href="#cb408-18" aria-hidden="true"></a>}</span>
-<span id="cb408-19"><a href="#cb408-19" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span>
-<span id="cb408-20"><a href="#cb408-20" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span>
-<span id="cb408-21"><a href="#cb408-21" aria-hidden="true"></a></span>
-<span id="cb408-22"><a href="#cb408-22" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb408-23"><a href="#cb408-23" aria-hidden="true"></a>This is a tight list</span>
-<span id="cb408-24"><a href="#cb408-24" aria-hidden="true"></a></span>
-<span id="cb408-25"><a href="#cb408-25" aria-hidden="true"></a>1. item</span>
-<span id="cb408-26"><a href="#cb408-26" aria-hidden="true"></a>2. item</span>
-<span id="cb408-27"><a href="#cb408-27" aria-hidden="true"></a>3. item</span>
-<span id="cb408-28"><a href="#cb408-28" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb408-29"><a href="#cb408-29" aria-hidden="true"></a></span>
-<span id="cb408-30"><a href="#cb408-30" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb408-31"><a href="#cb408-31" aria-hidden="true"></a> :<span class="fu">\par</span></span>
-<span id="cb408-32"><a href="#cb408-32" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb408-33"><a href="#cb408-33" aria-hidden="true"></a>}</span>
-<span id="cb408-34"><a href="#cb408-34" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBegin</span>{<span class="fu">\startitemize</span>}</span>
-<span id="cb408-35"><a href="#cb408-35" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
-<span id="cb408-36"><a href="#cb408-36" aria-hidden="true"></a> <span class="fu">\sym</span>{#1.}</span>
-<span id="cb408-37"><a href="#cb408-37" aria-hidden="true"></a> This is the</span>
-<span id="cb408-38"><a href="#cb408-38" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
-<span id="cb408-39"><a href="#cb408-39" aria-hidden="true"></a> first</span>
-<span id="cb408-40"><a href="#cb408-40" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb408-41"><a href="#cb408-41" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
-<span id="cb408-42"><a href="#cb408-42" aria-hidden="true"></a> second</span>
-<span id="cb408-43"><a href="#cb408-43" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb408-44"><a href="#cb408-44" aria-hidden="true"></a> third</span>
-<span id="cb408-45"><a href="#cb408-45" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb408-46"><a href="#cb408-46" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb408-47"><a href="#cb408-47" aria-hidden="true"></a>}</span>
-<span id="cb408-48"><a href="#cb408-48" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span>
-<span id="cb408-49"><a href="#cb408-49" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEnd</span>{<span class="fu">\stopitemize</span>}</span>
-<span id="cb408-50"><a href="#cb408-50" aria-hidden="true"></a></span>
-<span id="cb408-51"><a href="#cb408-51" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb408-52"><a href="#cb408-52" aria-hidden="true"></a>This is a loose list</span>
-<span id="cb408-53"><a href="#cb408-53" aria-hidden="true"></a></span>
-<span id="cb408-54"><a href="#cb408-54" aria-hidden="true"></a>1. item</span>
-<span id="cb408-55"><a href="#cb408-55" aria-hidden="true"></a></span>
-<span id="cb408-56"><a href="#cb408-56" aria-hidden="true"></a>2. item</span>
-<span id="cb408-57"><a href="#cb408-57" aria-hidden="true"></a></span>
-<span id="cb408-58"><a href="#cb408-58" aria-hidden="true"></a>3. item</span>
-<span id="cb408-59"><a href="#cb408-59" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb408-60"><a href="#cb408-60" aria-hidden="true"></a></span>
-<span id="cb408-61"><a href="#cb408-61" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb409"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb409-1"><a href="#cb409-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb411"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb411-1"><a href="#cb411-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb411-2"><a href="#cb411-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
+<span id="cb411-3"><a href="#cb411-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionStartNumber</span>{true}</span>
+<span id="cb411-4"><a href="#cb411-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb411-5"><a href="#cb411-5" aria-hidden="true"></a></span>
+<span id="cb411-6"><a href="#cb411-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
+<span id="cb411-7"><a href="#cb411-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span>
+<span id="cb411-8"><a href="#cb411-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
+<span id="cb411-9"><a href="#cb411-9" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
+<span id="cb411-10"><a href="#cb411-10" aria-hidden="true"></a> the first</span>
+<span id="cb411-11"><a href="#cb411-11" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb411-12"><a href="#cb411-12" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
+<span id="cb411-13"><a href="#cb411-13" aria-hidden="true"></a> , the second</span>
+<span id="cb411-14"><a href="#cb411-14" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb411-15"><a href="#cb411-15" aria-hidden="true"></a> , and the third</span>
+<span id="cb411-16"><a href="#cb411-16" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb411-17"><a href="#cb411-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb411-18"><a href="#cb411-18" aria-hidden="true"></a>}</span>
+<span id="cb411-19"><a href="#cb411-19" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span>
+<span id="cb411-20"><a href="#cb411-20" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span>
+<span id="cb411-21"><a href="#cb411-21" aria-hidden="true"></a></span>
+<span id="cb411-22"><a href="#cb411-22" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb411-23"><a href="#cb411-23" aria-hidden="true"></a>This is a tight list</span>
+<span id="cb411-24"><a href="#cb411-24" aria-hidden="true"></a></span>
+<span id="cb411-25"><a href="#cb411-25" aria-hidden="true"></a>1. item</span>
+<span id="cb411-26"><a href="#cb411-26" aria-hidden="true"></a>2. item</span>
+<span id="cb411-27"><a href="#cb411-27" aria-hidden="true"></a>3. item</span>
+<span id="cb411-28"><a href="#cb411-28" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb411-29"><a href="#cb411-29" aria-hidden="true"></a></span>
+<span id="cb411-30"><a href="#cb411-30" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb411-31"><a href="#cb411-31" aria-hidden="true"></a> :<span class="fu">\par</span></span>
+<span id="cb411-32"><a href="#cb411-32" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb411-33"><a href="#cb411-33" aria-hidden="true"></a>}</span>
+<span id="cb411-34"><a href="#cb411-34" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlBegin</span>{<span class="fu">\startitemize</span>}</span>
+<span id="cb411-35"><a href="#cb411-35" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span>
+<span id="cb411-36"><a href="#cb411-36" aria-hidden="true"></a> <span class="fu">\sym</span>{#1.}</span>
+<span id="cb411-37"><a href="#cb411-37" aria-hidden="true"></a> This is the</span>
+<span id="cb411-38"><a href="#cb411-38" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span>
+<span id="cb411-39"><a href="#cb411-39" aria-hidden="true"></a> first</span>
+<span id="cb411-40"><a href="#cb411-40" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb411-41"><a href="#cb411-41" aria-hidden="true"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span>
+<span id="cb411-42"><a href="#cb411-42" aria-hidden="true"></a> second</span>
+<span id="cb411-43"><a href="#cb411-43" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb411-44"><a href="#cb411-44" aria-hidden="true"></a> third</span>
+<span id="cb411-45"><a href="#cb411-45" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb411-46"><a href="#cb411-46" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb411-47"><a href="#cb411-47" aria-hidden="true"></a>}</span>
+<span id="cb411-48"><a href="#cb411-48" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span>
+<span id="cb411-49"><a href="#cb411-49" aria-hidden="true"></a><span class="fu">\def\markdownRendererOlEnd</span>{<span class="fu">\stopitemize</span>}</span>
+<span id="cb411-50"><a href="#cb411-50" aria-hidden="true"></a></span>
+<span id="cb411-51"><a href="#cb411-51" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb411-52"><a href="#cb411-52" aria-hidden="true"></a>This is a loose list</span>
+<span id="cb411-53"><a href="#cb411-53" aria-hidden="true"></a></span>
+<span id="cb411-54"><a href="#cb411-54" aria-hidden="true"></a>1. item</span>
+<span id="cb411-55"><a href="#cb411-55" aria-hidden="true"></a></span>
+<span id="cb411-56"><a href="#cb411-56" aria-hidden="true"></a>2. item</span>
+<span id="cb411-57"><a href="#cb411-57" aria-hidden="true"></a></span>
+<span id="cb411-58"><a href="#cb411-58" aria-hidden="true"></a>3. item</span>
+<span id="cb411-59"><a href="#cb411-59" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb411-60"><a href="#cb411-60" aria-hidden="true"></a></span>
+<span id="cb411-61"><a href="#cb411-61" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb412"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb412-1"><a href="#cb412-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight list (the first item, the second item, and the third item).</p>
@@ -5198,86 +5247,86 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererDlEndTight</code> macro represents the end of a definition list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the <strong><code>tightLists</code></strong> option is <code>false</code>. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-26">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb410"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb410-1"><a href="#cb410-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb410-2"><a href="#cb410-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionDefinitionLists</span>{true}</span>
-<span id="cb410-3"><a href="#cb410-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
-<span id="cb410-4"><a href="#cb410-4" aria-hidden="true"></a></span>
-<span id="cb410-5"><a href="#cb410-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb410-6"><a href="#cb410-6" aria-hidden="true"></a> :<span class="co">%</span></span>
-<span id="cb410-7"><a href="#cb410-7" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb410-8"><a href="#cb410-8" aria-hidden="true"></a>}</span>
-<span id="cb410-9"><a href="#cb410-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{<span class="co">%</span></span>
-<span id="cb410-10"><a href="#cb410-10" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
-<span id="cb410-11"><a href="#cb410-11" aria-hidden="true"></a> <span class="fu">\parindent</span>=0pt</span>
-<span id="cb410-12"><a href="#cb410-12" aria-hidden="true"></a>}</span>
-<span id="cb410-13"><a href="#cb410-13" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
-<span id="cb410-14"><a href="#cb410-14" aria-hidden="true"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span>
-<span id="cb410-15"><a href="#cb410-15" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
-<span id="cb410-16"><a href="#cb410-16" aria-hidden="true"></a> ,</span>
-<span id="cb410-17"><a href="#cb410-17" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
-<span id="cb410-18"><a href="#cb410-18" aria-hidden="true"></a> , and</span>
-<span id="cb410-19"><a href="#cb410-19" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span>
-<span id="cb410-20"><a href="#cb410-20" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb410-21"><a href="#cb410-21" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb410-22"><a href="#cb410-22" aria-hidden="true"></a>}</span>
-<span id="cb410-23"><a href="#cb410-23" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span>
-<span id="cb410-24"><a href="#cb410-24" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\par</span>--<span class="fu">\kern</span> 0.5em}</span>
-<span id="cb410-25"><a href="#cb410-25" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEndTight</span>{<span class="fu">\endgroup</span>}</span>
-<span id="cb410-26"><a href="#cb410-26" aria-hidden="true"></a></span>
-<span id="cb410-27"><a href="#cb410-27" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb410-28"><a href="#cb410-28" aria-hidden="true"></a>This is a tight definition list</span>
-<span id="cb410-29"><a href="#cb410-29" aria-hidden="true"></a></span>
-<span id="cb410-30"><a href="#cb410-30" aria-hidden="true"></a>Coffee</span>
-<span id="cb410-31"><a href="#cb410-31" aria-hidden="true"></a>: black hot drink</span>
-<span id="cb410-32"><a href="#cb410-32" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
-<span id="cb410-33"><a href="#cb410-33" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
-<span id="cb410-34"><a href="#cb410-34" aria-hidden="true"></a></span>
-<span id="cb410-35"><a href="#cb410-35" aria-hidden="true"></a>Milk</span>
-<span id="cb410-36"><a href="#cb410-36" aria-hidden="true"></a>: white cold drink</span>
-<span id="cb410-37"><a href="#cb410-37" aria-hidden="true"></a>: nutrient-rich</span>
-<span id="cb410-38"><a href="#cb410-38" aria-hidden="true"></a>: produced on an industrial scale</span>
-<span id="cb410-39"><a href="#cb410-39" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb410-40"><a href="#cb410-40" aria-hidden="true"></a></span>
-<span id="cb410-41"><a href="#cb410-41" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb410-42"><a href="#cb410-42" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb410-43"><a href="#cb410-43" aria-hidden="true"></a>}</span>
-<span id="cb410-44"><a href="#cb410-44" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span>
-<span id="cb410-45"><a href="#cb410-45" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
-<span id="cb410-46"><a href="#cb410-46" aria-hidden="true"></a> . #1 is a</span>
-<span id="cb410-47"><a href="#cb410-47" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
-<span id="cb410-48"><a href="#cb410-48" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
-<span id="cb410-49"><a href="#cb410-49" aria-hidden="true"></a> ,</span>
-<span id="cb410-50"><a href="#cb410-50" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span>
-<span id="cb410-51"><a href="#cb410-51" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb410-52"><a href="#cb410-52" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb410-53"><a href="#cb410-53" aria-hidden="true"></a>}</span>
-<span id="cb410-54"><a href="#cb410-54" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span>
-<span id="cb410-55"><a href="#cb410-55" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span>
-<span id="cb410-56"><a href="#cb410-56" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span>
-<span id="cb410-57"><a href="#cb410-57" aria-hidden="true"></a></span>
-<span id="cb410-58"><a href="#cb410-58" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb410-59"><a href="#cb410-59" aria-hidden="true"></a>This is a loose definition list</span>
-<span id="cb410-60"><a href="#cb410-60" aria-hidden="true"></a></span>
-<span id="cb410-61"><a href="#cb410-61" aria-hidden="true"></a>Coffee</span>
-<span id="cb410-62"><a href="#cb410-62" aria-hidden="true"></a></span>
-<span id="cb410-63"><a href="#cb410-63" aria-hidden="true"></a>: black hot drink</span>
-<span id="cb410-64"><a href="#cb410-64" aria-hidden="true"></a></span>
-<span id="cb410-65"><a href="#cb410-65" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
-<span id="cb410-66"><a href="#cb410-66" aria-hidden="true"></a></span>
-<span id="cb410-67"><a href="#cb410-67" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
-<span id="cb410-68"><a href="#cb410-68" aria-hidden="true"></a></span>
-<span id="cb410-69"><a href="#cb410-69" aria-hidden="true"></a>Milk</span>
-<span id="cb410-70"><a href="#cb410-70" aria-hidden="true"></a></span>
-<span id="cb410-71"><a href="#cb410-71" aria-hidden="true"></a>: white cold drink</span>
-<span id="cb410-72"><a href="#cb410-72" aria-hidden="true"></a></span>
-<span id="cb410-73"><a href="#cb410-73" aria-hidden="true"></a>: nutrient-rich</span>
-<span id="cb410-74"><a href="#cb410-74" aria-hidden="true"></a></span>
-<span id="cb410-75"><a href="#cb410-75" aria-hidden="true"></a>: produced on an industrial scale</span>
-<span id="cb410-76"><a href="#cb410-76" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb410-77"><a href="#cb410-77" aria-hidden="true"></a></span>
-<span id="cb410-78"><a href="#cb410-78" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb411"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb411-1"><a href="#cb411-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb413"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb413-1"><a href="#cb413-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb413-2"><a href="#cb413-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionDefinitionLists</span>{true}</span>
+<span id="cb413-3"><a href="#cb413-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
+<span id="cb413-4"><a href="#cb413-4" aria-hidden="true"></a></span>
+<span id="cb413-5"><a href="#cb413-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb413-6"><a href="#cb413-6" aria-hidden="true"></a> :<span class="co">%</span></span>
+<span id="cb413-7"><a href="#cb413-7" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb413-8"><a href="#cb413-8" aria-hidden="true"></a>}</span>
+<span id="cb413-9"><a href="#cb413-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{<span class="co">%</span></span>
+<span id="cb413-10"><a href="#cb413-10" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
+<span id="cb413-11"><a href="#cb413-11" aria-hidden="true"></a> <span class="fu">\parindent</span>=0pt</span>
+<span id="cb413-12"><a href="#cb413-12" aria-hidden="true"></a>}</span>
+<span id="cb413-13"><a href="#cb413-13" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
+<span id="cb413-14"><a href="#cb413-14" aria-hidden="true"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span>
+<span id="cb413-15"><a href="#cb413-15" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
+<span id="cb413-16"><a href="#cb413-16" aria-hidden="true"></a> ,</span>
+<span id="cb413-17"><a href="#cb413-17" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
+<span id="cb413-18"><a href="#cb413-18" aria-hidden="true"></a> , and</span>
+<span id="cb413-19"><a href="#cb413-19" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span>
+<span id="cb413-20"><a href="#cb413-20" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb413-21"><a href="#cb413-21" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb413-22"><a href="#cb413-22" aria-hidden="true"></a>}</span>
+<span id="cb413-23"><a href="#cb413-23" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span>
+<span id="cb413-24"><a href="#cb413-24" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\par</span>--<span class="fu">\kern</span> 0.5em}</span>
+<span id="cb413-25"><a href="#cb413-25" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEndTight</span>{<span class="fu">\endgroup</span>}</span>
+<span id="cb413-26"><a href="#cb413-26" aria-hidden="true"></a></span>
+<span id="cb413-27"><a href="#cb413-27" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb413-28"><a href="#cb413-28" aria-hidden="true"></a>This is a tight definition list</span>
+<span id="cb413-29"><a href="#cb413-29" aria-hidden="true"></a></span>
+<span id="cb413-30"><a href="#cb413-30" aria-hidden="true"></a>Coffee</span>
+<span id="cb413-31"><a href="#cb413-31" aria-hidden="true"></a>: black hot drink</span>
+<span id="cb413-32"><a href="#cb413-32" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
+<span id="cb413-33"><a href="#cb413-33" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
+<span id="cb413-34"><a href="#cb413-34" aria-hidden="true"></a></span>
+<span id="cb413-35"><a href="#cb413-35" aria-hidden="true"></a>Milk</span>
+<span id="cb413-36"><a href="#cb413-36" aria-hidden="true"></a>: white cold drink</span>
+<span id="cb413-37"><a href="#cb413-37" aria-hidden="true"></a>: nutrient-rich</span>
+<span id="cb413-38"><a href="#cb413-38" aria-hidden="true"></a>: produced on an industrial scale</span>
+<span id="cb413-39"><a href="#cb413-39" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb413-40"><a href="#cb413-40" aria-hidden="true"></a></span>
+<span id="cb413-41"><a href="#cb413-41" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb413-42"><a href="#cb413-42" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb413-43"><a href="#cb413-43" aria-hidden="true"></a>}</span>
+<span id="cb413-44"><a href="#cb413-44" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span>
+<span id="cb413-45"><a href="#cb413-45" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
+<span id="cb413-46"><a href="#cb413-46" aria-hidden="true"></a> . #1 is a</span>
+<span id="cb413-47"><a href="#cb413-47" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
+<span id="cb413-48"><a href="#cb413-48" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
+<span id="cb413-49"><a href="#cb413-49" aria-hidden="true"></a> ,</span>
+<span id="cb413-50"><a href="#cb413-50" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span>
+<span id="cb413-51"><a href="#cb413-51" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb413-52"><a href="#cb413-52" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb413-53"><a href="#cb413-53" aria-hidden="true"></a>}</span>
+<span id="cb413-54"><a href="#cb413-54" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span>
+<span id="cb413-55"><a href="#cb413-55" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span>
+<span id="cb413-56"><a href="#cb413-56" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span>
+<span id="cb413-57"><a href="#cb413-57" aria-hidden="true"></a></span>
+<span id="cb413-58"><a href="#cb413-58" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb413-59"><a href="#cb413-59" aria-hidden="true"></a>This is a loose definition list</span>
+<span id="cb413-60"><a href="#cb413-60" aria-hidden="true"></a></span>
+<span id="cb413-61"><a href="#cb413-61" aria-hidden="true"></a>Coffee</span>
+<span id="cb413-62"><a href="#cb413-62" aria-hidden="true"></a></span>
+<span id="cb413-63"><a href="#cb413-63" aria-hidden="true"></a>: black hot drink</span>
+<span id="cb413-64"><a href="#cb413-64" aria-hidden="true"></a></span>
+<span id="cb413-65"><a href="#cb413-65" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
+<span id="cb413-66"><a href="#cb413-66" aria-hidden="true"></a></span>
+<span id="cb413-67"><a href="#cb413-67" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
+<span id="cb413-68"><a href="#cb413-68" aria-hidden="true"></a></span>
+<span id="cb413-69"><a href="#cb413-69" aria-hidden="true"></a>Milk</span>
+<span id="cb413-70"><a href="#cb413-70" aria-hidden="true"></a></span>
+<span id="cb413-71"><a href="#cb413-71" aria-hidden="true"></a>: white cold drink</span>
+<span id="cb413-72"><a href="#cb413-72" aria-hidden="true"></a></span>
+<span id="cb413-73"><a href="#cb413-73" aria-hidden="true"></a>: nutrient-rich</span>
+<span id="cb413-74"><a href="#cb413-74" aria-hidden="true"></a></span>
+<span id="cb413-75"><a href="#cb413-75" aria-hidden="true"></a>: produced on an industrial scale</span>
+<span id="cb413-76"><a href="#cb413-76" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb413-77"><a href="#cb413-77" aria-hidden="true"></a></span>
+<span id="cb413-78"><a href="#cb413-78" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb414"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb414-1"><a href="#cb414-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight definition list:</p>
@@ -5295,90 +5344,90 @@ Thomas,Edison,1847</code></pre>
</ul>
<p>This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-48"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-49"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb412"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb412-1"><a href="#cb412-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb412-2"><a href="#cb412-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[definitionLists, tightLists]{<span class="ex">markdown</span>}</span>
-<span id="cb412-3"><a href="#cb412-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb412-4"><a href="#cb412-4" aria-hidden="true"></a></span>
-<span id="cb412-5"><a href="#cb412-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb412-6"><a href="#cb412-6" aria-hidden="true"></a> renderers = {</span>
-<span id="cb412-7"><a href="#cb412-7" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
-<span id="cb412-8"><a href="#cb412-8" aria-hidden="true"></a> :<span class="co">%</span></span>
-<span id="cb412-9"><a href="#cb412-9" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb412-10"><a href="#cb412-10" aria-hidden="true"></a> },</span>
-<span id="cb412-11"><a href="#cb412-11" aria-hidden="true"></a> dlBeginTight = {<span class="kw">\begin</span>{<span class="ex">description</span>}},</span>
-<span id="cb412-12"><a href="#cb412-12" aria-hidden="true"></a> dlItem = {<span class="co">%</span></span>
-<span id="cb412-13"><a href="#cb412-13" aria-hidden="true"></a> <span class="fu">\item</span>[#1]</span>
-<span id="cb412-14"><a href="#cb412-14" aria-hidden="true"></a> <span class="kw">\begin</span>{<span class="ex">itemize</span>}</span>
-<span id="cb412-15"><a href="#cb412-15" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
-<span id="cb412-16"><a href="#cb412-16" aria-hidden="true"></a> ,</span>
-<span id="cb412-17"><a href="#cb412-17" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
-<span id="cb412-18"><a href="#cb412-18" aria-hidden="true"></a> , and</span>
-<span id="cb412-19"><a href="#cb412-19" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span>
-<span id="cb412-20"><a href="#cb412-20" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb412-21"><a href="#cb412-21" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb412-22"><a href="#cb412-22" aria-hidden="true"></a> },</span>
-<span id="cb412-23"><a href="#cb412-23" aria-hidden="true"></a> dlItemEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span>
-<span id="cb412-24"><a href="#cb412-24" aria-hidden="true"></a> dlDefinitionBegin = <span class="fu">\item</span>,</span>
-<span id="cb412-25"><a href="#cb412-25" aria-hidden="true"></a> dlEndTight = {<span class="kw">\end</span>{<span class="ex">description</span>}},</span>
-<span id="cb412-26"><a href="#cb412-26" aria-hidden="true"></a> },</span>
-<span id="cb412-27"><a href="#cb412-27" aria-hidden="true"></a>}</span>
-<span id="cb412-28"><a href="#cb412-28" aria-hidden="true"></a>This is a tight definition list</span>
-<span id="cb412-29"><a href="#cb412-29" aria-hidden="true"></a></span>
-<span id="cb412-30"><a href="#cb412-30" aria-hidden="true"></a>Coffee</span>
-<span id="cb412-31"><a href="#cb412-31" aria-hidden="true"></a>: black hot drink</span>
-<span id="cb412-32"><a href="#cb412-32" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
-<span id="cb412-33"><a href="#cb412-33" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
-<span id="cb412-34"><a href="#cb412-34" aria-hidden="true"></a></span>
-<span id="cb412-35"><a href="#cb412-35" aria-hidden="true"></a>Milk</span>
-<span id="cb412-36"><a href="#cb412-36" aria-hidden="true"></a>: white cold drink</span>
-<span id="cb412-37"><a href="#cb412-37" aria-hidden="true"></a>: nutrient-rich</span>
-<span id="cb412-38"><a href="#cb412-38" aria-hidden="true"></a>: produced on an industrial scale</span>
-<span id="cb412-39"><a href="#cb412-39" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb412-40"><a href="#cb412-40" aria-hidden="true"></a></span>
-<span id="cb412-41"><a href="#cb412-41" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb412-42"><a href="#cb412-42" aria-hidden="true"></a> renderers = {</span>
-<span id="cb412-43"><a href="#cb412-43" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
-<span id="cb412-44"><a href="#cb412-44" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb412-45"><a href="#cb412-45" aria-hidden="true"></a> },</span>
-<span id="cb412-46"><a href="#cb412-46" aria-hidden="true"></a> dlBegin = {},</span>
-<span id="cb412-47"><a href="#cb412-47" aria-hidden="true"></a> dlItem = {<span class="co">%</span></span>
-<span id="cb412-48"><a href="#cb412-48" aria-hidden="true"></a> . #1 is a</span>
-<span id="cb412-49"><a href="#cb412-49" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
-<span id="cb412-50"><a href="#cb412-50" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
-<span id="cb412-51"><a href="#cb412-51" aria-hidden="true"></a> ,</span>
-<span id="cb412-52"><a href="#cb412-52" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span>
-<span id="cb412-53"><a href="#cb412-53" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb412-54"><a href="#cb412-54" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb412-55"><a href="#cb412-55" aria-hidden="true"></a> },</span>
-<span id="cb412-56"><a href="#cb412-56" aria-hidden="true"></a> dlItemEnd = {},</span>
-<span id="cb412-57"><a href="#cb412-57" aria-hidden="true"></a> dlDefinitionEnd = {},</span>
-<span id="cb412-58"><a href="#cb412-58" aria-hidden="true"></a> dlEnd = {.},</span>
-<span id="cb412-59"><a href="#cb412-59" aria-hidden="true"></a> },</span>
-<span id="cb412-60"><a href="#cb412-60" aria-hidden="true"></a>}</span>
-<span id="cb412-61"><a href="#cb412-61" aria-hidden="true"></a>This is a loose definition list</span>
-<span id="cb412-62"><a href="#cb412-62" aria-hidden="true"></a></span>
-<span id="cb412-63"><a href="#cb412-63" aria-hidden="true"></a>Coffee</span>
-<span id="cb412-64"><a href="#cb412-64" aria-hidden="true"></a></span>
-<span id="cb412-65"><a href="#cb412-65" aria-hidden="true"></a>: black hot drink</span>
-<span id="cb412-66"><a href="#cb412-66" aria-hidden="true"></a></span>
-<span id="cb412-67"><a href="#cb412-67" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
-<span id="cb412-68"><a href="#cb412-68" aria-hidden="true"></a></span>
-<span id="cb412-69"><a href="#cb412-69" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
-<span id="cb412-70"><a href="#cb412-70" aria-hidden="true"></a></span>
-<span id="cb412-71"><a href="#cb412-71" aria-hidden="true"></a>Milk</span>
-<span id="cb412-72"><a href="#cb412-72" aria-hidden="true"></a></span>
-<span id="cb412-73"><a href="#cb412-73" aria-hidden="true"></a>: white cold drink</span>
-<span id="cb412-74"><a href="#cb412-74" aria-hidden="true"></a></span>
-<span id="cb412-75"><a href="#cb412-75" aria-hidden="true"></a>: nutrient-rich</span>
-<span id="cb412-76"><a href="#cb412-76" aria-hidden="true"></a></span>
-<span id="cb412-77"><a href="#cb412-77" aria-hidden="true"></a>: produced on an industrial scale</span>
-<span id="cb412-78"><a href="#cb412-78" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb412-79"><a href="#cb412-79" aria-hidden="true"></a></span>
-<span id="cb412-80"><a href="#cb412-80" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb413"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb413-1"><a href="#cb413-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb415"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb415-1"><a href="#cb415-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb415-2"><a href="#cb415-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[definitionLists, tightLists]{<span class="ex">markdown</span>}</span>
+<span id="cb415-3"><a href="#cb415-3" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb415-4"><a href="#cb415-4" aria-hidden="true"></a></span>
+<span id="cb415-5"><a href="#cb415-5" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb415-6"><a href="#cb415-6" aria-hidden="true"></a> renderers = {</span>
+<span id="cb415-7"><a href="#cb415-7" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
+<span id="cb415-8"><a href="#cb415-8" aria-hidden="true"></a> :<span class="co">%</span></span>
+<span id="cb415-9"><a href="#cb415-9" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb415-10"><a href="#cb415-10" aria-hidden="true"></a> },</span>
+<span id="cb415-11"><a href="#cb415-11" aria-hidden="true"></a> dlBeginTight = {<span class="kw">\begin</span>{<span class="ex">description</span>}},</span>
+<span id="cb415-12"><a href="#cb415-12" aria-hidden="true"></a> dlItem = {<span class="co">%</span></span>
+<span id="cb415-13"><a href="#cb415-13" aria-hidden="true"></a> <span class="fu">\item</span>[#1]</span>
+<span id="cb415-14"><a href="#cb415-14" aria-hidden="true"></a> <span class="kw">\begin</span>{<span class="ex">itemize</span>}</span>
+<span id="cb415-15"><a href="#cb415-15" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
+<span id="cb415-16"><a href="#cb415-16" aria-hidden="true"></a> ,</span>
+<span id="cb415-17"><a href="#cb415-17" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
+<span id="cb415-18"><a href="#cb415-18" aria-hidden="true"></a> , and</span>
+<span id="cb415-19"><a href="#cb415-19" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span>
+<span id="cb415-20"><a href="#cb415-20" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb415-21"><a href="#cb415-21" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb415-22"><a href="#cb415-22" aria-hidden="true"></a> },</span>
+<span id="cb415-23"><a href="#cb415-23" aria-hidden="true"></a> dlItemEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span>
+<span id="cb415-24"><a href="#cb415-24" aria-hidden="true"></a> dlDefinitionBegin = <span class="fu">\item</span>,</span>
+<span id="cb415-25"><a href="#cb415-25" aria-hidden="true"></a> dlEndTight = {<span class="kw">\end</span>{<span class="ex">description</span>}},</span>
+<span id="cb415-26"><a href="#cb415-26" aria-hidden="true"></a> },</span>
+<span id="cb415-27"><a href="#cb415-27" aria-hidden="true"></a>}</span>
+<span id="cb415-28"><a href="#cb415-28" aria-hidden="true"></a>This is a tight definition list</span>
+<span id="cb415-29"><a href="#cb415-29" aria-hidden="true"></a></span>
+<span id="cb415-30"><a href="#cb415-30" aria-hidden="true"></a>Coffee</span>
+<span id="cb415-31"><a href="#cb415-31" aria-hidden="true"></a>: black hot drink</span>
+<span id="cb415-32"><a href="#cb415-32" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
+<span id="cb415-33"><a href="#cb415-33" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
+<span id="cb415-34"><a href="#cb415-34" aria-hidden="true"></a></span>
+<span id="cb415-35"><a href="#cb415-35" aria-hidden="true"></a>Milk</span>
+<span id="cb415-36"><a href="#cb415-36" aria-hidden="true"></a>: white cold drink</span>
+<span id="cb415-37"><a href="#cb415-37" aria-hidden="true"></a>: nutrient-rich</span>
+<span id="cb415-38"><a href="#cb415-38" aria-hidden="true"></a>: produced on an industrial scale</span>
+<span id="cb415-39"><a href="#cb415-39" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb415-40"><a href="#cb415-40" aria-hidden="true"></a></span>
+<span id="cb415-41"><a href="#cb415-41" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb415-42"><a href="#cb415-42" aria-hidden="true"></a> renderers = {</span>
+<span id="cb415-43"><a href="#cb415-43" aria-hidden="true"></a> interblockSeparator = {<span class="co">%</span></span>
+<span id="cb415-44"><a href="#cb415-44" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb415-45"><a href="#cb415-45" aria-hidden="true"></a> },</span>
+<span id="cb415-46"><a href="#cb415-46" aria-hidden="true"></a> dlBegin = {},</span>
+<span id="cb415-47"><a href="#cb415-47" aria-hidden="true"></a> dlItem = {<span class="co">%</span></span>
+<span id="cb415-48"><a href="#cb415-48" aria-hidden="true"></a> . #1 is a</span>
+<span id="cb415-49"><a href="#cb415-49" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
+<span id="cb415-50"><a href="#cb415-50" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
+<span id="cb415-51"><a href="#cb415-51" aria-hidden="true"></a> ,</span>
+<span id="cb415-52"><a href="#cb415-52" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span>
+<span id="cb415-53"><a href="#cb415-53" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb415-54"><a href="#cb415-54" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb415-55"><a href="#cb415-55" aria-hidden="true"></a> },</span>
+<span id="cb415-56"><a href="#cb415-56" aria-hidden="true"></a> dlItemEnd = {},</span>
+<span id="cb415-57"><a href="#cb415-57" aria-hidden="true"></a> dlDefinitionEnd = {},</span>
+<span id="cb415-58"><a href="#cb415-58" aria-hidden="true"></a> dlEnd = {.},</span>
+<span id="cb415-59"><a href="#cb415-59" aria-hidden="true"></a> },</span>
+<span id="cb415-60"><a href="#cb415-60" aria-hidden="true"></a>}</span>
+<span id="cb415-61"><a href="#cb415-61" aria-hidden="true"></a>This is a loose definition list</span>
+<span id="cb415-62"><a href="#cb415-62" aria-hidden="true"></a></span>
+<span id="cb415-63"><a href="#cb415-63" aria-hidden="true"></a>Coffee</span>
+<span id="cb415-64"><a href="#cb415-64" aria-hidden="true"></a></span>
+<span id="cb415-65"><a href="#cb415-65" aria-hidden="true"></a>: black hot drink</span>
+<span id="cb415-66"><a href="#cb415-66" aria-hidden="true"></a></span>
+<span id="cb415-67"><a href="#cb415-67" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
+<span id="cb415-68"><a href="#cb415-68" aria-hidden="true"></a></span>
+<span id="cb415-69"><a href="#cb415-69" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
+<span id="cb415-70"><a href="#cb415-70" aria-hidden="true"></a></span>
+<span id="cb415-71"><a href="#cb415-71" aria-hidden="true"></a>Milk</span>
+<span id="cb415-72"><a href="#cb415-72" aria-hidden="true"></a></span>
+<span id="cb415-73"><a href="#cb415-73" aria-hidden="true"></a>: white cold drink</span>
+<span id="cb415-74"><a href="#cb415-74" aria-hidden="true"></a></span>
+<span id="cb415-75"><a href="#cb415-75" aria-hidden="true"></a>: nutrient-rich</span>
+<span id="cb415-76"><a href="#cb415-76" aria-hidden="true"></a></span>
+<span id="cb415-77"><a href="#cb415-77" aria-hidden="true"></a>: produced on an industrial scale</span>
+<span id="cb415-78"><a href="#cb415-78" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb415-79"><a href="#cb415-79" aria-hidden="true"></a></span>
+<span id="cb415-80"><a href="#cb415-80" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb416"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb416-1"><a href="#cb416-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight definition list:</p>
@@ -5398,85 +5447,85 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-38">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb414"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb414-1"><a href="#cb414-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb414-2"><a href="#cb414-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionDefinitionLists</span>{true}</span>
-<span id="cb414-3"><a href="#cb414-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
-<span id="cb414-4"><a href="#cb414-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb414-5"><a href="#cb414-5" aria-hidden="true"></a></span>
-<span id="cb414-6"><a href="#cb414-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb414-7"><a href="#cb414-7" aria-hidden="true"></a> :<span class="co">%</span></span>
-<span id="cb414-8"><a href="#cb414-8" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb414-9"><a href="#cb414-9" aria-hidden="true"></a>}</span>
-<span id="cb414-10"><a href="#cb414-10" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{}</span>
-<span id="cb414-11"><a href="#cb414-11" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
-<span id="cb414-12"><a href="#cb414-12" aria-hidden="true"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span>
-<span id="cb414-13"><a href="#cb414-13" aria-hidden="true"></a> <span class="fu">\startitemize</span></span>
-<span id="cb414-14"><a href="#cb414-14" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
-<span id="cb414-15"><a href="#cb414-15" aria-hidden="true"></a> ,</span>
-<span id="cb414-16"><a href="#cb414-16" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
-<span id="cb414-17"><a href="#cb414-17" aria-hidden="true"></a> , and</span>
-<span id="cb414-18"><a href="#cb414-18" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span>
-<span id="cb414-19"><a href="#cb414-19" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb414-20"><a href="#cb414-20" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb414-21"><a href="#cb414-21" aria-hidden="true"></a>}</span>
-<span id="cb414-22"><a href="#cb414-22" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{<span class="fu">\stopitemize</span>}</span>
-<span id="cb414-23"><a href="#cb414-23" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\item</span>}</span>
-<span id="cb414-24"><a href="#cb414-24" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEndTight</span>{}</span>
-<span id="cb414-25"><a href="#cb414-25" aria-hidden="true"></a></span>
-<span id="cb414-26"><a href="#cb414-26" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb414-27"><a href="#cb414-27" aria-hidden="true"></a>This is a tight definition list</span>
-<span id="cb414-28"><a href="#cb414-28" aria-hidden="true"></a></span>
-<span id="cb414-29"><a href="#cb414-29" aria-hidden="true"></a>Coffee</span>
-<span id="cb414-30"><a href="#cb414-30" aria-hidden="true"></a>: black hot drink</span>
-<span id="cb414-31"><a href="#cb414-31" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
-<span id="cb414-32"><a href="#cb414-32" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
-<span id="cb414-33"><a href="#cb414-33" aria-hidden="true"></a></span>
-<span id="cb414-34"><a href="#cb414-34" aria-hidden="true"></a>Milk</span>
-<span id="cb414-35"><a href="#cb414-35" aria-hidden="true"></a>: white cold drink</span>
-<span id="cb414-36"><a href="#cb414-36" aria-hidden="true"></a>: nutrient-rich</span>
-<span id="cb414-37"><a href="#cb414-37" aria-hidden="true"></a>: produced on an industrial scale</span>
-<span id="cb414-38"><a href="#cb414-38" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb414-39"><a href="#cb414-39" aria-hidden="true"></a></span>
-<span id="cb414-40"><a href="#cb414-40" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb414-41"><a href="#cb414-41" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
-<span id="cb414-42"><a href="#cb414-42" aria-hidden="true"></a>}</span>
-<span id="cb414-43"><a href="#cb414-43" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span>
-<span id="cb414-44"><a href="#cb414-44" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
-<span id="cb414-45"><a href="#cb414-45" aria-hidden="true"></a> . #1 is a</span>
-<span id="cb414-46"><a href="#cb414-46" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
-<span id="cb414-47"><a href="#cb414-47" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
-<span id="cb414-48"><a href="#cb414-48" aria-hidden="true"></a> ,</span>
-<span id="cb414-49"><a href="#cb414-49" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span>
-<span id="cb414-50"><a href="#cb414-50" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb414-51"><a href="#cb414-51" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb414-52"><a href="#cb414-52" aria-hidden="true"></a>}</span>
-<span id="cb414-53"><a href="#cb414-53" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span>
-<span id="cb414-54"><a href="#cb414-54" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span>
-<span id="cb414-55"><a href="#cb414-55" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span>
-<span id="cb414-56"><a href="#cb414-56" aria-hidden="true"></a></span>
-<span id="cb414-57"><a href="#cb414-57" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb414-58"><a href="#cb414-58" aria-hidden="true"></a>This is a loose definition list</span>
-<span id="cb414-59"><a href="#cb414-59" aria-hidden="true"></a></span>
-<span id="cb414-60"><a href="#cb414-60" aria-hidden="true"></a>Coffee</span>
-<span id="cb414-61"><a href="#cb414-61" aria-hidden="true"></a></span>
-<span id="cb414-62"><a href="#cb414-62" aria-hidden="true"></a>: black hot drink</span>
-<span id="cb414-63"><a href="#cb414-63" aria-hidden="true"></a></span>
-<span id="cb414-64"><a href="#cb414-64" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
-<span id="cb414-65"><a href="#cb414-65" aria-hidden="true"></a></span>
-<span id="cb414-66"><a href="#cb414-66" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
-<span id="cb414-67"><a href="#cb414-67" aria-hidden="true"></a></span>
-<span id="cb414-68"><a href="#cb414-68" aria-hidden="true"></a>Milk</span>
-<span id="cb414-69"><a href="#cb414-69" aria-hidden="true"></a></span>
-<span id="cb414-70"><a href="#cb414-70" aria-hidden="true"></a>: white cold drink</span>
-<span id="cb414-71"><a href="#cb414-71" aria-hidden="true"></a></span>
-<span id="cb414-72"><a href="#cb414-72" aria-hidden="true"></a>: nutrient-rich</span>
-<span id="cb414-73"><a href="#cb414-73" aria-hidden="true"></a></span>
-<span id="cb414-74"><a href="#cb414-74" aria-hidden="true"></a>: produced on an industrial scale</span>
-<span id="cb414-75"><a href="#cb414-75" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb414-76"><a href="#cb414-76" aria-hidden="true"></a></span>
-<span id="cb414-77"><a href="#cb414-77" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb415"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb415-1"><a href="#cb415-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb417"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb417-1"><a href="#cb417-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb417-2"><a href="#cb417-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionDefinitionLists</span>{true}</span>
+<span id="cb417-3"><a href="#cb417-3" aria-hidden="true"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span>
+<span id="cb417-4"><a href="#cb417-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb417-5"><a href="#cb417-5" aria-hidden="true"></a></span>
+<span id="cb417-6"><a href="#cb417-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb417-7"><a href="#cb417-7" aria-hidden="true"></a> :<span class="co">%</span></span>
+<span id="cb417-8"><a href="#cb417-8" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb417-9"><a href="#cb417-9" aria-hidden="true"></a>}</span>
+<span id="cb417-10"><a href="#cb417-10" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{}</span>
+<span id="cb417-11"><a href="#cb417-11" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
+<span id="cb417-12"><a href="#cb417-12" aria-hidden="true"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span>
+<span id="cb417-13"><a href="#cb417-13" aria-hidden="true"></a> <span class="fu">\startitemize</span></span>
+<span id="cb417-14"><a href="#cb417-14" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
+<span id="cb417-15"><a href="#cb417-15" aria-hidden="true"></a> ,</span>
+<span id="cb417-16"><a href="#cb417-16" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span>
+<span id="cb417-17"><a href="#cb417-17" aria-hidden="true"></a> , and</span>
+<span id="cb417-18"><a href="#cb417-18" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span>
+<span id="cb417-19"><a href="#cb417-19" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb417-20"><a href="#cb417-20" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb417-21"><a href="#cb417-21" aria-hidden="true"></a>}</span>
+<span id="cb417-22"><a href="#cb417-22" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{<span class="fu">\stopitemize</span>}</span>
+<span id="cb417-23"><a href="#cb417-23" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\item</span>}</span>
+<span id="cb417-24"><a href="#cb417-24" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEndTight</span>{}</span>
+<span id="cb417-25"><a href="#cb417-25" aria-hidden="true"></a></span>
+<span id="cb417-26"><a href="#cb417-26" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb417-27"><a href="#cb417-27" aria-hidden="true"></a>This is a tight definition list</span>
+<span id="cb417-28"><a href="#cb417-28" aria-hidden="true"></a></span>
+<span id="cb417-29"><a href="#cb417-29" aria-hidden="true"></a>Coffee</span>
+<span id="cb417-30"><a href="#cb417-30" aria-hidden="true"></a>: black hot drink</span>
+<span id="cb417-31"><a href="#cb417-31" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
+<span id="cb417-32"><a href="#cb417-32" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
+<span id="cb417-33"><a href="#cb417-33" aria-hidden="true"></a></span>
+<span id="cb417-34"><a href="#cb417-34" aria-hidden="true"></a>Milk</span>
+<span id="cb417-35"><a href="#cb417-35" aria-hidden="true"></a>: white cold drink</span>
+<span id="cb417-36"><a href="#cb417-36" aria-hidden="true"></a>: nutrient-rich</span>
+<span id="cb417-37"><a href="#cb417-37" aria-hidden="true"></a>: produced on an industrial scale</span>
+<span id="cb417-38"><a href="#cb417-38" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb417-39"><a href="#cb417-39" aria-hidden="true"></a></span>
+<span id="cb417-40"><a href="#cb417-40" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb417-41"><a href="#cb417-41" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span>
+<span id="cb417-42"><a href="#cb417-42" aria-hidden="true"></a>}</span>
+<span id="cb417-43"><a href="#cb417-43" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span>
+<span id="cb417-44"><a href="#cb417-44" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span>
+<span id="cb417-45"><a href="#cb417-45" aria-hidden="true"></a> . #1 is a</span>
+<span id="cb417-46"><a href="#cb417-46" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
+<span id="cb417-47"><a href="#cb417-47" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span>
+<span id="cb417-48"><a href="#cb417-48" aria-hidden="true"></a> ,</span>
+<span id="cb417-49"><a href="#cb417-49" aria-hidden="true"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span>
+<span id="cb417-50"><a href="#cb417-50" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb417-51"><a href="#cb417-51" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb417-52"><a href="#cb417-52" aria-hidden="true"></a>}</span>
+<span id="cb417-53"><a href="#cb417-53" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span>
+<span id="cb417-54"><a href="#cb417-54" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span>
+<span id="cb417-55"><a href="#cb417-55" aria-hidden="true"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span>
+<span id="cb417-56"><a href="#cb417-56" aria-hidden="true"></a></span>
+<span id="cb417-57"><a href="#cb417-57" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb417-58"><a href="#cb417-58" aria-hidden="true"></a>This is a loose definition list</span>
+<span id="cb417-59"><a href="#cb417-59" aria-hidden="true"></a></span>
+<span id="cb417-60"><a href="#cb417-60" aria-hidden="true"></a>Coffee</span>
+<span id="cb417-61"><a href="#cb417-61" aria-hidden="true"></a></span>
+<span id="cb417-62"><a href="#cb417-62" aria-hidden="true"></a>: black hot drink</span>
+<span id="cb417-63"><a href="#cb417-63" aria-hidden="true"></a></span>
+<span id="cb417-64"><a href="#cb417-64" aria-hidden="true"></a>: prepared from roasted coffee beans</span>
+<span id="cb417-65"><a href="#cb417-65" aria-hidden="true"></a></span>
+<span id="cb417-66"><a href="#cb417-66" aria-hidden="true"></a>: one of the most traded agricultural commodities in the world</span>
+<span id="cb417-67"><a href="#cb417-67" aria-hidden="true"></a></span>
+<span id="cb417-68"><a href="#cb417-68" aria-hidden="true"></a>Milk</span>
+<span id="cb417-69"><a href="#cb417-69" aria-hidden="true"></a></span>
+<span id="cb417-70"><a href="#cb417-70" aria-hidden="true"></a>: white cold drink</span>
+<span id="cb417-71"><a href="#cb417-71" aria-hidden="true"></a></span>
+<span id="cb417-72"><a href="#cb417-72" aria-hidden="true"></a>: nutrient-rich</span>
+<span id="cb417-73"><a href="#cb417-73" aria-hidden="true"></a></span>
+<span id="cb417-74"><a href="#cb417-74" aria-hidden="true"></a>: produced on an industrial scale</span>
+<span id="cb417-75"><a href="#cb417-75" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb417-76"><a href="#cb417-76" aria-hidden="true"></a></span>
+<span id="cb417-77"><a href="#cb417-77" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb418"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb418-1"><a href="#cb418-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a tight definition list:</p>
@@ -5498,41 +5547,41 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererEmphasis</code> macro represents an emphasized span of text. The macro receives a single argument that corresponds to the emphasized span of text.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-27">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb416"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb416-1"><a href="#cb416-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb416-2"><a href="#cb416-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{{<span class="fu">\it</span>#1}}</span>
-<span id="cb416-3"><a href="#cb416-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{{<span class="fu">\bf</span>#1}}</span>
-<span id="cb416-4"><a href="#cb416-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb416-5"><a href="#cb416-5" aria-hidden="true"></a>This is *emphasis*.</span>
-<span id="cb416-6"><a href="#cb416-6" aria-hidden="true"></a></span>
-<span id="cb416-7"><a href="#cb416-7" aria-hidden="true"></a>This is **strong emphasis**.</span>
-<span id="cb416-8"><a href="#cb416-8" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb416-9"><a href="#cb416-9" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb419"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb419-1"><a href="#cb419-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb419-2"><a href="#cb419-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{{<span class="fu">\it</span>#1}}</span>
+<span id="cb419-3"><a href="#cb419-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{{<span class="fu">\bf</span>#1}}</span>
+<span id="cb419-4"><a href="#cb419-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb419-5"><a href="#cb419-5" aria-hidden="true"></a>This is *emphasis*.</span>
+<span id="cb419-6"><a href="#cb419-6" aria-hidden="true"></a></span>
+<span id="cb419-7"><a href="#cb419-7" aria-hidden="true"></a>This is **strong emphasis**.</span>
+<span id="cb419-8"><a href="#cb419-8" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb419-9"><a href="#cb419-9" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb417"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb417-1"><a href="#cb417-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb420"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb420-1"><a href="#cb420-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <em>emphasis</em>.</p>
<p>This is <strong>strong emphasis</strong>.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-49"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-50"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb418"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb418-1"><a href="#cb418-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb418-2"><a href="#cb418-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb418-3"><a href="#cb418-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb418-4"><a href="#cb418-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb418-5"><a href="#cb418-5" aria-hidden="true"></a> emphasis = {<span class="fu">\emph</span>{#1}},</span>
-<span id="cb418-6"><a href="#cb418-6" aria-hidden="true"></a> strongEmphasis = {<span class="fu">\textbf</span>{#1}},</span>
-<span id="cb418-7"><a href="#cb418-7" aria-hidden="true"></a> },</span>
-<span id="cb418-8"><a href="#cb418-8" aria-hidden="true"></a>}</span>
-<span id="cb418-9"><a href="#cb418-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb418-10"><a href="#cb418-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb418-11"><a href="#cb418-11" aria-hidden="true"></a>This is *emphasis*.</span>
-<span id="cb418-12"><a href="#cb418-12" aria-hidden="true"></a></span>
-<span id="cb418-13"><a href="#cb418-13" aria-hidden="true"></a>This is **strong emphasis**.</span>
-<span id="cb418-14"><a href="#cb418-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb418-15"><a href="#cb418-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb419"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb419-1"><a href="#cb419-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb421"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb421-1"><a href="#cb421-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb421-2"><a href="#cb421-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb421-3"><a href="#cb421-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb421-4"><a href="#cb421-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb421-5"><a href="#cb421-5" aria-hidden="true"></a> emphasis = {<span class="fu">\emph</span>{#1}},</span>
+<span id="cb421-6"><a href="#cb421-6" aria-hidden="true"></a> strongEmphasis = {<span class="fu">\textbf</span>{#1}},</span>
+<span id="cb421-7"><a href="#cb421-7" aria-hidden="true"></a> },</span>
+<span id="cb421-8"><a href="#cb421-8" aria-hidden="true"></a>}</span>
+<span id="cb421-9"><a href="#cb421-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb421-10"><a href="#cb421-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb421-11"><a href="#cb421-11" aria-hidden="true"></a>This is *emphasis*.</span>
+<span id="cb421-12"><a href="#cb421-12" aria-hidden="true"></a></span>
+<span id="cb421-13"><a href="#cb421-13" aria-hidden="true"></a>This is **strong emphasis**.</span>
+<span id="cb421-14"><a href="#cb421-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb421-15"><a href="#cb421-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb422"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb422-1"><a href="#cb422-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <em>emphasis</em>.</p>
@@ -5540,18 +5589,18 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-39">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb420"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb420-1"><a href="#cb420-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb420-2"><a href="#cb420-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{<span class="fu">\emph</span>{#1}}</span>
-<span id="cb420-3"><a href="#cb420-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{<span class="fu">\bold</span>{#1}}</span>
-<span id="cb420-4"><a href="#cb420-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb420-5"><a href="#cb420-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb420-6"><a href="#cb420-6" aria-hidden="true"></a>This is *emphasis*.</span>
-<span id="cb420-7"><a href="#cb420-7" aria-hidden="true"></a></span>
-<span id="cb420-8"><a href="#cb420-8" aria-hidden="true"></a>This is **strong emphasis**.</span>
-<span id="cb420-9"><a href="#cb420-9" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb420-10"><a href="#cb420-10" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb423"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb423-1"><a href="#cb423-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb423-2"><a href="#cb423-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{<span class="fu">\emph</span>{#1}}</span>
+<span id="cb423-3"><a href="#cb423-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{<span class="fu">\bold</span>{#1}}</span>
+<span id="cb423-4"><a href="#cb423-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb423-5"><a href="#cb423-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb423-6"><a href="#cb423-6" aria-hidden="true"></a>This is *emphasis*.</span>
+<span id="cb423-7"><a href="#cb423-7" aria-hidden="true"></a></span>
+<span id="cb423-8"><a href="#cb423-8" aria-hidden="true"></a>This is **strong emphasis**.</span>
+<span id="cb423-9"><a href="#cb423-9" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb423-10"><a href="#cb423-10" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb421"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb421-1"><a href="#cb421-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb424"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb424-1"><a href="#cb424-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is <em>emphasis</em>.</p>
@@ -5563,29 +5612,29 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererBlockQuoteEnd</code> macro represents the end of a block quote. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-28">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb422"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb422-1"><a href="#cb422-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb422-2"><a href="#cb422-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="co">%</span></span>
-<span id="cb422-3"><a href="#cb422-3" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
-<span id="cb422-4"><a href="#cb422-4" aria-hidden="true"></a> <span class="fu">\vskip\parindent</span></span>
-<span id="cb422-5"><a href="#cb422-5" aria-hidden="true"></a> <span class="fu">\leftskip</span>=2<span class="fu">\parindent</span></span>
-<span id="cb422-6"><a href="#cb422-6" aria-hidden="true"></a> <span class="fu">\parindent</span>=0pt</span>
-<span id="cb422-7"><a href="#cb422-7" aria-hidden="true"></a>}</span>
-<span id="cb422-8"><a href="#cb422-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="co">%</span></span>
-<span id="cb422-9"><a href="#cb422-9" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb422-10"><a href="#cb422-10" aria-hidden="true"></a> <span class="fu">\vskip\parindent</span></span>
-<span id="cb422-11"><a href="#cb422-11" aria-hidden="true"></a> <span class="fu">\endgroup</span></span>
-<span id="cb422-12"><a href="#cb422-12" aria-hidden="true"></a>}</span>
-<span id="cb422-13"><a href="#cb422-13" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb422-14"><a href="#cb422-14" aria-hidden="true"></a>A quote from William Shakespeare&#39;s King Lear:</span>
-<span id="cb422-15"><a href="#cb422-15" aria-hidden="true"></a></span>
-<span id="cb422-16"><a href="#cb422-16" aria-hidden="true"></a>&gt; This is the excellent foppery of the world that when we are</span>
-<span id="cb422-17"><a href="#cb422-17" aria-hidden="true"></a>&gt; sick in fortune---often the surfeit of our own behavior---we</span>
-<span id="cb422-18"><a href="#cb422-18" aria-hidden="true"></a>&gt; make guilty of our disasters the sun, the moon, and the</span>
-<span id="cb422-19"><a href="#cb422-19" aria-hidden="true"></a>&gt; stars [...]</span>
-<span id="cb422-20"><a href="#cb422-20" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb422-21"><a href="#cb422-21" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb423"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb423-1"><a href="#cb423-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb425"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb425-1"><a href="#cb425-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb425-2"><a href="#cb425-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="co">%</span></span>
+<span id="cb425-3"><a href="#cb425-3" aria-hidden="true"></a> <span class="fu">\begingroup</span></span>
+<span id="cb425-4"><a href="#cb425-4" aria-hidden="true"></a> <span class="fu">\vskip\parindent</span></span>
+<span id="cb425-5"><a href="#cb425-5" aria-hidden="true"></a> <span class="fu">\leftskip</span>=2<span class="fu">\parindent</span></span>
+<span id="cb425-6"><a href="#cb425-6" aria-hidden="true"></a> <span class="fu">\parindent</span>=0pt</span>
+<span id="cb425-7"><a href="#cb425-7" aria-hidden="true"></a>}</span>
+<span id="cb425-8"><a href="#cb425-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="co">%</span></span>
+<span id="cb425-9"><a href="#cb425-9" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb425-10"><a href="#cb425-10" aria-hidden="true"></a> <span class="fu">\vskip\parindent</span></span>
+<span id="cb425-11"><a href="#cb425-11" aria-hidden="true"></a> <span class="fu">\endgroup</span></span>
+<span id="cb425-12"><a href="#cb425-12" aria-hidden="true"></a>}</span>
+<span id="cb425-13"><a href="#cb425-13" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb425-14"><a href="#cb425-14" aria-hidden="true"></a>A quote from William Shakespeare&#39;s King Lear:</span>
+<span id="cb425-15"><a href="#cb425-15" aria-hidden="true"></a></span>
+<span id="cb425-16"><a href="#cb425-16" aria-hidden="true"></a>&gt; This is the excellent foppery of the world that when we are</span>
+<span id="cb425-17"><a href="#cb425-17" aria-hidden="true"></a>&gt; sick in fortune---often the surfeit of our own behavior---we</span>
+<span id="cb425-18"><a href="#cb425-18" aria-hidden="true"></a>&gt; make guilty of our disasters the sun, the moon, and the</span>
+<span id="cb425-19"><a href="#cb425-19" aria-hidden="true"></a>&gt; stars [...]</span>
+<span id="cb425-20"><a href="#cb425-20" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb425-21"><a href="#cb425-21" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb426"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb426-1"><a href="#cb426-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>A quote from William Shakespeare’s King Lear:</p>
@@ -5593,28 +5642,28 @@ Thomas,Edison,1847</code></pre>
<p>This is the excellent foppery of the world that when we are sick in fortune—often the surfeit of our own behavior—we make guilty of our disasters the sun, the moon, and the stars […]</p>
</blockquote>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-50"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-51"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb424"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb424-1"><a href="#cb424-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb424-2"><a href="#cb424-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb424-3"><a href="#cb424-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb424-4"><a href="#cb424-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb424-5"><a href="#cb424-5" aria-hidden="true"></a> blockQuoteBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</span>
-<span id="cb424-6"><a href="#cb424-6" aria-hidden="true"></a> blockQuoteEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</span>
-<span id="cb424-7"><a href="#cb424-7" aria-hidden="true"></a> },</span>
-<span id="cb424-8"><a href="#cb424-8" aria-hidden="true"></a>}</span>
-<span id="cb424-9"><a href="#cb424-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb424-10"><a href="#cb424-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb424-11"><a href="#cb424-11" aria-hidden="true"></a>A quote from William Shakespeare&#39;s King Lear:</span>
-<span id="cb424-12"><a href="#cb424-12" aria-hidden="true"></a></span>
-<span id="cb424-13"><a href="#cb424-13" aria-hidden="true"></a>&gt; This is the excellent foppery of the world that when we are</span>
-<span id="cb424-14"><a href="#cb424-14" aria-hidden="true"></a>&gt; sick in fortune---often the surfeit of our own behavior---we</span>
-<span id="cb424-15"><a href="#cb424-15" aria-hidden="true"></a>&gt; make guilty of our disasters the sun, the moon, and the</span>
-<span id="cb424-16"><a href="#cb424-16" aria-hidden="true"></a>&gt; stars [...]</span>
-<span id="cb424-17"><a href="#cb424-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb424-18"><a href="#cb424-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb425"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb425-1"><a href="#cb425-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb427"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb427-1"><a href="#cb427-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb427-2"><a href="#cb427-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb427-3"><a href="#cb427-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb427-4"><a href="#cb427-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb427-5"><a href="#cb427-5" aria-hidden="true"></a> blockQuoteBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</span>
+<span id="cb427-6"><a href="#cb427-6" aria-hidden="true"></a> blockQuoteEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</span>
+<span id="cb427-7"><a href="#cb427-7" aria-hidden="true"></a> },</span>
+<span id="cb427-8"><a href="#cb427-8" aria-hidden="true"></a>}</span>
+<span id="cb427-9"><a href="#cb427-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb427-10"><a href="#cb427-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb427-11"><a href="#cb427-11" aria-hidden="true"></a>A quote from William Shakespeare&#39;s King Lear:</span>
+<span id="cb427-12"><a href="#cb427-12" aria-hidden="true"></a></span>
+<span id="cb427-13"><a href="#cb427-13" aria-hidden="true"></a>&gt; This is the excellent foppery of the world that when we are</span>
+<span id="cb427-14"><a href="#cb427-14" aria-hidden="true"></a>&gt; sick in fortune---often the surfeit of our own behavior---we</span>
+<span id="cb427-15"><a href="#cb427-15" aria-hidden="true"></a>&gt; make guilty of our disasters the sun, the moon, and the</span>
+<span id="cb427-16"><a href="#cb427-16" aria-hidden="true"></a>&gt; stars [...]</span>
+<span id="cb427-17"><a href="#cb427-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb427-18"><a href="#cb427-18" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb428"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb428-1"><a href="#cb428-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>A quote from William Shakespeare’s King Lear:</p>
@@ -5624,21 +5673,21 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-40">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb426"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb426-1"><a href="#cb426-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb426-2"><a href="#cb426-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="fu">\startquotation</span>}</span>
-<span id="cb426-3"><a href="#cb426-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="fu">\stopquotation</span>}</span>
-<span id="cb426-4"><a href="#cb426-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb426-5"><a href="#cb426-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb426-6"><a href="#cb426-6" aria-hidden="true"></a>A quote from William Shakespeare&#39;s King Lear:</span>
-<span id="cb426-7"><a href="#cb426-7" aria-hidden="true"></a></span>
-<span id="cb426-8"><a href="#cb426-8" aria-hidden="true"></a>&gt; This is the excellent foppery of the world that when we are</span>
-<span id="cb426-9"><a href="#cb426-9" aria-hidden="true"></a>&gt; sick in fortune---often the surfeit of our own behavior---we</span>
-<span id="cb426-10"><a href="#cb426-10" aria-hidden="true"></a>&gt; make guilty of our disasters the sun, the moon, and the</span>
-<span id="cb426-11"><a href="#cb426-11" aria-hidden="true"></a>&gt; stars [...]</span>
-<span id="cb426-12"><a href="#cb426-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb426-13"><a href="#cb426-13" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb429"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb429-1"><a href="#cb429-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb429-2"><a href="#cb429-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="fu">\startquotation</span>}</span>
+<span id="cb429-3"><a href="#cb429-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="fu">\stopquotation</span>}</span>
+<span id="cb429-4"><a href="#cb429-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb429-5"><a href="#cb429-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb429-6"><a href="#cb429-6" aria-hidden="true"></a>A quote from William Shakespeare&#39;s King Lear:</span>
+<span id="cb429-7"><a href="#cb429-7" aria-hidden="true"></a></span>
+<span id="cb429-8"><a href="#cb429-8" aria-hidden="true"></a>&gt; This is the excellent foppery of the world that when we are</span>
+<span id="cb429-9"><a href="#cb429-9" aria-hidden="true"></a>&gt; sick in fortune---often the surfeit of our own behavior---we</span>
+<span id="cb429-10"><a href="#cb429-10" aria-hidden="true"></a>&gt; make guilty of our disasters the sun, the moon, and the</span>
+<span id="cb429-11"><a href="#cb429-11" aria-hidden="true"></a>&gt; stars [...]</span>
+<span id="cb429-12"><a href="#cb429-12" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb429-13"><a href="#cb429-13" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb427"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb427-1"><a href="#cb427-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb430"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb430-1"><a href="#cb430-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>A quote from William Shakespeare’s King Lear:</p>
@@ -5649,73 +5698,73 @@ Thomas,Edison,1847</code></pre>
<h4 data-number="2.3.1.17" id="code-block-renderers"><span class="header-section-number">2.3.1.17</span> Code Block Renderers</h4>
<p>The <code>\markdownRendererInputVerbatim</code> macro represents a code block. The macro receives a single argument that corresponds to the filename of a file contaning the code block contents.</p>
<p>The <code>\markdownRendererInputFencedCode</code> macro represents a fenced code block. This macro will only be produced, when the <strong><code>fencedCode</code></strong> option is enabled. The macro receives two arguments that correspond to the filename of a file contaning the code block contents and to the code fence infostring.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-51"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-52"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb428"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb428-1"><a href="#cb428-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb428-2"><a href="#cb428-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span>
-<span id="cb428-3"><a href="#cb428-3" aria-hidden="true"></a><span class="bu">\usepackage</span>[hyphens]{<span class="ex">url</span>}</span>
-<span id="cb428-4"><a href="#cb428-4" aria-hidden="true"></a><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</span>
-<span id="cb428-5"><a href="#cb428-5" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb428-6"><a href="#cb428-6" aria-hidden="true"></a> renderers = {</span>
-<span id="cb428-7"><a href="#cb428-7" aria-hidden="true"></a> interblockSeparator = {</span>
-<span id="cb428-8"><a href="#cb428-8" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb428-9"><a href="#cb428-9" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb428-10"><a href="#cb428-10" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb428-11"><a href="#cb428-11" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
-<span id="cb428-12"><a href="#cb428-12" aria-hidden="true"></a> <span class="fu">\par</span></span>
-<span id="cb428-13"><a href="#cb428-13" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb428-14"><a href="#cb428-14" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb428-15"><a href="#cb428-15" aria-hidden="true"></a> }<span class="co">%</span></span>
-<span id="cb428-16"><a href="#cb428-16" aria-hidden="true"></a> },</span>
-<span id="cb428-17"><a href="#cb428-17" aria-hidden="true"></a> inputVerbatim = {</span>
-<span id="cb428-18"><a href="#cb428-18" aria-hidden="true"></a> is contained in file <span class="fu">\url</span>{#1}:<span class="co">%</span></span>
-<span id="cb428-19"><a href="#cb428-19" aria-hidden="true"></a> <span class="fu">\verbatiminput</span>{#1}<span class="co">%</span></span>
-<span id="cb428-20"><a href="#cb428-20" aria-hidden="true"></a> },</span>
-<span id="cb428-21"><a href="#cb428-21" aria-hidden="true"></a> inputFencedCode = {</span>
-<span id="cb428-22"><a href="#cb428-22" aria-hidden="true"></a> in #2 <span class="fu">\markdownRendererInputVerbatim</span>{#1}<span class="co">%</span></span>
-<span id="cb428-23"><a href="#cb428-23" aria-hidden="true"></a> },</span>
-<span id="cb428-24"><a href="#cb428-24" aria-hidden="true"></a> },</span>
-<span id="cb428-25"><a href="#cb428-25" aria-hidden="true"></a>}</span>
-<span id="cb428-26"><a href="#cb428-26" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb428-27"><a href="#cb428-27" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb428-28"><a href="#cb428-28" aria-hidden="true"></a>The following code</span>
-<span id="cb428-29"><a href="#cb428-29" aria-hidden="true"></a></span>
-<span id="cb428-30"><a href="#cb428-30" aria-hidden="true"></a> def foo(bar):</span>
-<span id="cb428-31"><a href="#cb428-31" aria-hidden="true"></a> if len(bar) &lt;= 1:</span>
-<span id="cb428-32"><a href="#cb428-32" aria-hidden="true"></a> return bar[0]</span>
-<span id="cb428-33"><a href="#cb428-33" aria-hidden="true"></a> elif len(bar) == 2:</span>
-<span id="cb428-34"><a href="#cb428-34" aria-hidden="true"></a> return sorted(bar)</span>
-<span id="cb428-35"><a href="#cb428-35" aria-hidden="true"></a> else:</span>
-<span id="cb428-36"><a href="#cb428-36" aria-hidden="true"></a> baz = len(bar) // 2</span>
-<span id="cb428-37"><a href="#cb428-37" aria-hidden="true"></a> return foo(bar[baz:], bar[:baz])</span>
-<span id="cb428-38"><a href="#cb428-38" aria-hidden="true"></a></span>
-<span id="cb428-39"><a href="#cb428-39" aria-hidden="true"></a>The following code</span>
-<span id="cb428-40"><a href="#cb428-40" aria-hidden="true"></a></span>
-<span id="cb428-41"><a href="#cb428-41" aria-hidden="true"></a>~~~ Python</span>
-<span id="cb428-42"><a href="#cb428-42" aria-hidden="true"></a>&gt;&gt;&gt; foo([4, 2, 1, 3])</span>
-<span id="cb428-43"><a href="#cb428-43" aria-hidden="true"></a>[1, 2, 3, 4]</span>
-<span id="cb428-44"><a href="#cb428-44" aria-hidden="true"></a>~~~~~~~~~~</span>
-<span id="cb428-45"><a href="#cb428-45" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb428-46"><a href="#cb428-46" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb429"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb429-1"><a href="#cb429-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb431"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb431-1"><a href="#cb431-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb431-2"><a href="#cb431-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span>
+<span id="cb431-3"><a href="#cb431-3" aria-hidden="true"></a><span class="bu">\usepackage</span>[hyphens]{<span class="ex">url</span>}</span>
+<span id="cb431-4"><a href="#cb431-4" aria-hidden="true"></a><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</span>
+<span id="cb431-5"><a href="#cb431-5" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb431-6"><a href="#cb431-6" aria-hidden="true"></a> renderers = {</span>
+<span id="cb431-7"><a href="#cb431-7" aria-hidden="true"></a> interblockSeparator = {</span>
+<span id="cb431-8"><a href="#cb431-8" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb431-9"><a href="#cb431-9" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb431-10"><a href="#cb431-10" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb431-11"><a href="#cb431-11" aria-hidden="true"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span>
+<span id="cb431-12"><a href="#cb431-12" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb431-13"><a href="#cb431-13" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb431-14"><a href="#cb431-14" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb431-15"><a href="#cb431-15" aria-hidden="true"></a> }<span class="co">%</span></span>
+<span id="cb431-16"><a href="#cb431-16" aria-hidden="true"></a> },</span>
+<span id="cb431-17"><a href="#cb431-17" aria-hidden="true"></a> inputVerbatim = {</span>
+<span id="cb431-18"><a href="#cb431-18" aria-hidden="true"></a> is contained in file <span class="fu">\url</span>{#1}:<span class="co">%</span></span>
+<span id="cb431-19"><a href="#cb431-19" aria-hidden="true"></a> <span class="fu">\verbatiminput</span>{#1}<span class="co">%</span></span>
+<span id="cb431-20"><a href="#cb431-20" aria-hidden="true"></a> },</span>
+<span id="cb431-21"><a href="#cb431-21" aria-hidden="true"></a> inputFencedCode = {</span>
+<span id="cb431-22"><a href="#cb431-22" aria-hidden="true"></a> in #2 <span class="fu">\markdownRendererInputVerbatim</span>{#1}<span class="co">%</span></span>
+<span id="cb431-23"><a href="#cb431-23" aria-hidden="true"></a> },</span>
+<span id="cb431-24"><a href="#cb431-24" aria-hidden="true"></a> },</span>
+<span id="cb431-25"><a href="#cb431-25" aria-hidden="true"></a>}</span>
+<span id="cb431-26"><a href="#cb431-26" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb431-27"><a href="#cb431-27" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb431-28"><a href="#cb431-28" aria-hidden="true"></a>The following code</span>
+<span id="cb431-29"><a href="#cb431-29" aria-hidden="true"></a></span>
+<span id="cb431-30"><a href="#cb431-30" aria-hidden="true"></a> def foo(bar):</span>
+<span id="cb431-31"><a href="#cb431-31" aria-hidden="true"></a> if len(bar) &lt;= 1:</span>
+<span id="cb431-32"><a href="#cb431-32" aria-hidden="true"></a> return bar[0]</span>
+<span id="cb431-33"><a href="#cb431-33" aria-hidden="true"></a> elif len(bar) == 2:</span>
+<span id="cb431-34"><a href="#cb431-34" aria-hidden="true"></a> return sorted(bar)</span>
+<span id="cb431-35"><a href="#cb431-35" aria-hidden="true"></a> else:</span>
+<span id="cb431-36"><a href="#cb431-36" aria-hidden="true"></a> baz = len(bar) // 2</span>
+<span id="cb431-37"><a href="#cb431-37" aria-hidden="true"></a> return foo(bar[baz:], bar[:baz])</span>
+<span id="cb431-38"><a href="#cb431-38" aria-hidden="true"></a></span>
+<span id="cb431-39"><a href="#cb431-39" aria-hidden="true"></a>The following code</span>
+<span id="cb431-40"><a href="#cb431-40" aria-hidden="true"></a></span>
+<span id="cb431-41"><a href="#cb431-41" aria-hidden="true"></a>~~~ Python</span>
+<span id="cb431-42"><a href="#cb431-42" aria-hidden="true"></a>&gt;&gt;&gt; foo([4, 2, 1, 3])</span>
+<span id="cb431-43"><a href="#cb431-43" aria-hidden="true"></a>[1, 2, 3, 4]</span>
+<span id="cb431-44"><a href="#cb431-44" aria-hidden="true"></a>~~~~~~~~~~</span>
+<span id="cb431-45"><a href="#cb431-45" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb431-46"><a href="#cb431-46" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb432"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb432-1"><a href="#cb432-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text except for the filename, which may differ:</p>
<blockquote>
<p>The following code is contained in file <code>./_markdown_document/882453149edcf288976647f6fe147ada.verbatim</code>:</p>
-<div class="sourceCode" id="cb430"><pre class="sourceCode py"><code class="sourceCode python"><span id="cb430-1"><a href="#cb430-1" aria-hidden="true"></a><span class="kw">def</span> foo(bar):</span>
-<span id="cb430-2"><a href="#cb430-2" aria-hidden="true"></a> <span class="cf">if</span> <span class="bu">len</span>(bar) <span class="op">&lt;=</span> <span class="dv">1</span>:</span>
-<span id="cb430-3"><a href="#cb430-3" aria-hidden="true"></a> <span class="cf">return</span> bar[:<span class="dv">1</span>]</span>
-<span id="cb430-4"><a href="#cb430-4" aria-hidden="true"></a> <span class="cf">elif</span> <span class="bu">len</span>(bar) <span class="op">==</span> <span class="dv">2</span>:</span>
-<span id="cb430-5"><a href="#cb430-5" aria-hidden="true"></a> <span class="cf">return</span> <span class="bu">sorted</span>(bar)</span>
-<span id="cb430-6"><a href="#cb430-6" aria-hidden="true"></a> <span class="cf">else</span>:</span>
-<span id="cb430-7"><a href="#cb430-7" aria-hidden="true"></a> baz <span class="op">=</span> bar[<span class="bu">len</span>(bar) <span class="op">//</span> <span class="dv">2</span>]</span>
-<span id="cb430-8"><a href="#cb430-8" aria-hidden="true"></a> <span class="cf">return</span> (</span>
-<span id="cb430-9"><a href="#cb430-9" aria-hidden="true"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">&lt;</span> baz]) <span class="op">+</span> [baz] <span class="op">+</span></span>
-<span id="cb430-10"><a href="#cb430-10" aria-hidden="true"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">&gt;</span> baz])</span>
-<span id="cb430-11"><a href="#cb430-11" aria-hidden="true"></a> )</span></code></pre></div>
+<div class="sourceCode" id="cb433"><pre class="sourceCode py"><code class="sourceCode python"><span id="cb433-1"><a href="#cb433-1" aria-hidden="true"></a><span class="kw">def</span> foo(bar):</span>
+<span id="cb433-2"><a href="#cb433-2" aria-hidden="true"></a> <span class="cf">if</span> <span class="bu">len</span>(bar) <span class="op">&lt;=</span> <span class="dv">1</span>:</span>
+<span id="cb433-3"><a href="#cb433-3" aria-hidden="true"></a> <span class="cf">return</span> bar[:<span class="dv">1</span>]</span>
+<span id="cb433-4"><a href="#cb433-4" aria-hidden="true"></a> <span class="cf">elif</span> <span class="bu">len</span>(bar) <span class="op">==</span> <span class="dv">2</span>:</span>
+<span id="cb433-5"><a href="#cb433-5" aria-hidden="true"></a> <span class="cf">return</span> <span class="bu">sorted</span>(bar)</span>
+<span id="cb433-6"><a href="#cb433-6" aria-hidden="true"></a> <span class="cf">else</span>:</span>
+<span id="cb433-7"><a href="#cb433-7" aria-hidden="true"></a> baz <span class="op">=</span> bar[<span class="bu">len</span>(bar) <span class="op">//</span> <span class="dv">2</span>]</span>
+<span id="cb433-8"><a href="#cb433-8" aria-hidden="true"></a> <span class="cf">return</span> (</span>
+<span id="cb433-9"><a href="#cb433-9" aria-hidden="true"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">&lt;</span> baz]) <span class="op">+</span> [baz] <span class="op">+</span></span>
+<span id="cb433-10"><a href="#cb433-10" aria-hidden="true"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">&gt;</span> baz])</span>
+<span id="cb433-11"><a href="#cb433-11" aria-hidden="true"></a> )</span></code></pre></div>
<p>The following code in Python contained in file <code>./_markdown_document/cf2a96e2120cef5b1fae5fea36fcc27b.verbatim</code>:</p>
-<div class="sourceCode" id="cb431"><pre class="sourceCode py"><code class="sourceCode python"><span id="cb431-1"><a href="#cb431-1" aria-hidden="true"></a><span class="op">&gt;&gt;&gt;</span> foo([<span class="dv">4</span>, <span class="dv">2</span>, <span class="dv">1</span>, <span class="dv">3</span>])</span>
-<span id="cb431-2"><a href="#cb431-2" aria-hidden="true"></a>[<span class="dv">1</span>, <span class="dv">2</span>, <span class="dv">3</span>, <span class="dv">4</span>]</span></code></pre></div>
+<div class="sourceCode" id="cb434"><pre class="sourceCode py"><code class="sourceCode python"><span id="cb434-1"><a href="#cb434-1" aria-hidden="true"></a><span class="op">&gt;&gt;&gt;</span> foo([<span class="dv">4</span>, <span class="dv">2</span>, <span class="dv">1</span>, <span class="dv">3</span>])</span>
+<span id="cb434-2"><a href="#cb434-2" aria-hidden="true"></a>[<span class="dv">1</span>, <span class="dv">2</span>, <span class="dv">3</span>, <span class="dv">4</span>]</span></code></pre></div>
</blockquote>
<h4 data-number="2.3.1.18" id="yaml-metadata-renderers"><span class="header-section-number">2.3.1.18</span> YAML Metadata Renderers</h4>
<p>The <code>\markdownRendererJekyllDataBegin</code> macro represents the beginning of a <abbr>yaml</abbr> document. This macro will only be produced when the <strong><code>jekyllData</code></strong> option is enabled. The macro receives no arguments.</p>
@@ -5730,72 +5779,72 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererJekyllDataEmpty</code> macro represents an empty scalar value in a <abbr>yaml</abbr> document. This macro will only be produced when the <strong><code>jekyllData</code></strong> option is enabled. The macro receives one argument: the scalar key in the parent structure, cast to a string following <abbr>yaml</abbr> serialization rules.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-29">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb432"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb432-1"><a href="#cb432-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb432-2"><a href="#cb432-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span>
-<span id="cb432-3"><a href="#cb432-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span>
-<span id="cb432-4"><a href="#cb432-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span>
-<span id="cb432-5"><a href="#cb432-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span>
-<span id="cb432-6"><a href="#cb432-6" aria-hidden="true"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span>
-<span id="cb432-7"><a href="#cb432-7" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb432-8"><a href="#cb432-8" aria-hidden="true"></a>---</span>
-<span id="cb432-9"><a href="#cb432-9" aria-hidden="true"></a>name: Jane Doe</span>
-<span id="cb432-10"><a href="#cb432-10" aria-hidden="true"></a>age: 99</span>
-<span id="cb432-11"><a href="#cb432-11" aria-hidden="true"></a>---</span>
-<span id="cb432-12"><a href="#cb432-12" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb432-13"><a href="#cb432-13" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb435"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb435-1"><a href="#cb435-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb435-2"><a href="#cb435-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span>
+<span id="cb435-3"><a href="#cb435-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span>
+<span id="cb435-4"><a href="#cb435-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span>
+<span id="cb435-5"><a href="#cb435-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span>
+<span id="cb435-6"><a href="#cb435-6" aria-hidden="true"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span>
+<span id="cb435-7"><a href="#cb435-7" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb435-8"><a href="#cb435-8" aria-hidden="true"></a>---</span>
+<span id="cb435-9"><a href="#cb435-9" aria-hidden="true"></a>name: Jane Doe</span>
+<span id="cb435-10"><a href="#cb435-10" aria-hidden="true"></a>age: 99</span>
+<span id="cb435-11"><a href="#cb435-11" aria-hidden="true"></a>---</span>
+<span id="cb435-12"><a href="#cb435-12" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb435-13"><a href="#cb435-13" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb433"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb433-1"><a href="#cb433-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb436"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb436-1"><a href="#cb436-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Jane Doe is 99 years old.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-52"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-53"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb434"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb434-1"><a href="#cb434-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb434-2"><a href="#cb434-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span>
-<span id="cb434-3"><a href="#cb434-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb434-4"><a href="#cb434-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb434-5"><a href="#cb434-5" aria-hidden="true"></a> jekyllDataString = {<span class="fu">\gdef\name</span>{#2}},</span>
-<span id="cb434-6"><a href="#cb434-6" aria-hidden="true"></a> jekyllDataNumber = {<span class="fu">\gdef\age</span>{#2}},</span>
-<span id="cb434-7"><a href="#cb434-7" aria-hidden="true"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span>
-<span id="cb434-8"><a href="#cb434-8" aria-hidden="true"></a> }</span>
-<span id="cb434-9"><a href="#cb434-9" aria-hidden="true"></a>}</span>
-<span id="cb434-10"><a href="#cb434-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb434-11"><a href="#cb434-11" aria-hidden="true"></a></span>
-<span id="cb434-12"><a href="#cb434-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb434-13"><a href="#cb434-13" aria-hidden="true"></a>---</span>
-<span id="cb434-14"><a href="#cb434-14" aria-hidden="true"></a>name: Jane Doe</span>
-<span id="cb434-15"><a href="#cb434-15" aria-hidden="true"></a>age: 99</span>
-<span id="cb434-16"><a href="#cb434-16" aria-hidden="true"></a>---</span>
-<span id="cb434-17"><a href="#cb434-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb434-18"><a href="#cb434-18" aria-hidden="true"></a></span>
-<span id="cb434-19"><a href="#cb434-19" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb435"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb435-1"><a href="#cb435-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb437"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb437-1"><a href="#cb437-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb437-2"><a href="#cb437-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span>
+<span id="cb437-3"><a href="#cb437-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb437-4"><a href="#cb437-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb437-5"><a href="#cb437-5" aria-hidden="true"></a> jekyllDataString = {<span class="fu">\gdef\name</span>{#2}},</span>
+<span id="cb437-6"><a href="#cb437-6" aria-hidden="true"></a> jekyllDataNumber = {<span class="fu">\gdef\age</span>{#2}},</span>
+<span id="cb437-7"><a href="#cb437-7" aria-hidden="true"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span>
+<span id="cb437-8"><a href="#cb437-8" aria-hidden="true"></a> }</span>
+<span id="cb437-9"><a href="#cb437-9" aria-hidden="true"></a>}</span>
+<span id="cb437-10"><a href="#cb437-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb437-11"><a href="#cb437-11" aria-hidden="true"></a></span>
+<span id="cb437-12"><a href="#cb437-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb437-13"><a href="#cb437-13" aria-hidden="true"></a>---</span>
+<span id="cb437-14"><a href="#cb437-14" aria-hidden="true"></a>name: Jane Doe</span>
+<span id="cb437-15"><a href="#cb437-15" aria-hidden="true"></a>age: 99</span>
+<span id="cb437-16"><a href="#cb437-16" aria-hidden="true"></a>---</span>
+<span id="cb437-17"><a href="#cb437-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb437-18"><a href="#cb437-18" aria-hidden="true"></a></span>
+<span id="cb437-19"><a href="#cb437-19" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb438"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb438-1"><a href="#cb438-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Jane Doe is 99 years old.</p>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-41">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb436"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb436-1"><a href="#cb436-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb436-2"><a href="#cb436-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span>
-<span id="cb436-3"><a href="#cb436-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span>
-<span id="cb436-4"><a href="#cb436-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span>
-<span id="cb436-5"><a href="#cb436-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span>
-<span id="cb436-6"><a href="#cb436-6" aria-hidden="true"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span>
-<span id="cb436-7"><a href="#cb436-7" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb436-8"><a href="#cb436-8" aria-hidden="true"></a></span>
-<span id="cb436-9"><a href="#cb436-9" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb436-10"><a href="#cb436-10" aria-hidden="true"></a>---</span>
-<span id="cb436-11"><a href="#cb436-11" aria-hidden="true"></a>name: Jane Doe</span>
-<span id="cb436-12"><a href="#cb436-12" aria-hidden="true"></a>age: 99</span>
-<span id="cb436-13"><a href="#cb436-13" aria-hidden="true"></a>---</span>
-<span id="cb436-14"><a href="#cb436-14" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb436-15"><a href="#cb436-15" aria-hidden="true"></a></span>
-<span id="cb436-16"><a href="#cb436-16" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb437"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb437-1"><a href="#cb437-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb439"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb439-1"><a href="#cb439-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb439-2"><a href="#cb439-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span>
+<span id="cb439-3"><a href="#cb439-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span>
+<span id="cb439-4"><a href="#cb439-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span>
+<span id="cb439-5"><a href="#cb439-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span>
+<span id="cb439-6"><a href="#cb439-6" aria-hidden="true"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span>
+<span id="cb439-7"><a href="#cb439-7" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb439-8"><a href="#cb439-8" aria-hidden="true"></a></span>
+<span id="cb439-9"><a href="#cb439-9" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb439-10"><a href="#cb439-10" aria-hidden="true"></a>---</span>
+<span id="cb439-11"><a href="#cb439-11" aria-hidden="true"></a>name: Jane Doe</span>
+<span id="cb439-12"><a href="#cb439-12" aria-hidden="true"></a>age: 99</span>
+<span id="cb439-13"><a href="#cb439-13" aria-hidden="true"></a>---</span>
+<span id="cb439-14"><a href="#cb439-14" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb439-15"><a href="#cb439-15" aria-hidden="true"></a></span>
+<span id="cb439-16"><a href="#cb439-16" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb440"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb440-1"><a href="#cb440-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Jane Doe is 99 years old.</p>
@@ -5809,79 +5858,79 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererHeadingSix</code> macro represents a sixth level heading. The macro receives a single argument that corresponds to the heading text.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-30">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb438"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb438-1"><a href="#cb438-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb438-2"><a href="#cb438-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
-<span id="cb438-3"><a href="#cb438-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span>
-<span id="cb438-4"><a href="#cb438-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span>
-<span id="cb438-5"><a href="#cb438-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span>
-<span id="cb438-6"><a href="#cb438-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span>
-<span id="cb438-7"><a href="#cb438-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span>
-<span id="cb438-8"><a href="#cb438-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span>
-<span id="cb438-9"><a href="#cb438-9" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb438-10"><a href="#cb438-10" aria-hidden="true"></a>######</span>
-<span id="cb438-11"><a href="#cb438-11" aria-hidden="true"></a>#####</span>
-<span id="cb438-12"><a href="#cb438-12" aria-hidden="true"></a>#####</span>
-<span id="cb438-13"><a href="#cb438-13" aria-hidden="true"></a>###</span>
-<span id="cb438-14"><a href="#cb438-14" aria-hidden="true"></a>######</span>
-<span id="cb438-15"><a href="#cb438-15" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb438-16"><a href="#cb438-16" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb439"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb439-1"><a href="#cb439-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb441"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb441-1"><a href="#cb441-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb441-2"><a href="#cb441-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
+<span id="cb441-3"><a href="#cb441-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span>
+<span id="cb441-4"><a href="#cb441-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span>
+<span id="cb441-5"><a href="#cb441-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span>
+<span id="cb441-6"><a href="#cb441-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span>
+<span id="cb441-7"><a href="#cb441-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span>
+<span id="cb441-8"><a href="#cb441-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span>
+<span id="cb441-9"><a href="#cb441-9" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb441-10"><a href="#cb441-10" aria-hidden="true"></a>######</span>
+<span id="cb441-11"><a href="#cb441-11" aria-hidden="true"></a>#####</span>
+<span id="cb441-12"><a href="#cb441-12" aria-hidden="true"></a>#####</span>
+<span id="cb441-13"><a href="#cb441-13" aria-hidden="true"></a>###</span>
+<span id="cb441-14"><a href="#cb441-14" aria-hidden="true"></a>######</span>
+<span id="cb441-15"><a href="#cb441-15" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb441-16"><a href="#cb441-16" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb442"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb442-1"><a href="#cb442-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>65536</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-53"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-54"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb440"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb440-1"><a href="#cb440-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb440-2"><a href="#cb440-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb440-3"><a href="#cb440-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb440-4"><a href="#cb440-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb440-5"><a href="#cb440-5" aria-hidden="true"></a> interblockSeparator = {},</span>
-<span id="cb440-6"><a href="#cb440-6" aria-hidden="true"></a> headingOne = 1,</span>
-<span id="cb440-7"><a href="#cb440-7" aria-hidden="true"></a> headingTwo = 2,</span>
-<span id="cb440-8"><a href="#cb440-8" aria-hidden="true"></a> headingThree = 3,</span>
-<span id="cb440-9"><a href="#cb440-9" aria-hidden="true"></a> headingFour = 4,</span>
-<span id="cb440-10"><a href="#cb440-10" aria-hidden="true"></a> headingFive = 5,</span>
-<span id="cb440-11"><a href="#cb440-11" aria-hidden="true"></a> headingSix = 6,</span>
-<span id="cb440-12"><a href="#cb440-12" aria-hidden="true"></a> },</span>
-<span id="cb440-13"><a href="#cb440-13" aria-hidden="true"></a>}</span>
-<span id="cb440-14"><a href="#cb440-14" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb440-15"><a href="#cb440-15" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb440-16"><a href="#cb440-16" aria-hidden="true"></a>######</span>
-<span id="cb440-17"><a href="#cb440-17" aria-hidden="true"></a>#####</span>
-<span id="cb440-18"><a href="#cb440-18" aria-hidden="true"></a>#####</span>
-<span id="cb440-19"><a href="#cb440-19" aria-hidden="true"></a>###</span>
-<span id="cb440-20"><a href="#cb440-20" aria-hidden="true"></a>######</span>
-<span id="cb440-21"><a href="#cb440-21" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb440-22"><a href="#cb440-22" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb441"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb441-1"><a href="#cb441-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb443"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb443-1"><a href="#cb443-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb443-2"><a href="#cb443-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb443-3"><a href="#cb443-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb443-4"><a href="#cb443-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb443-5"><a href="#cb443-5" aria-hidden="true"></a> interblockSeparator = {},</span>
+<span id="cb443-6"><a href="#cb443-6" aria-hidden="true"></a> headingOne = 1,</span>
+<span id="cb443-7"><a href="#cb443-7" aria-hidden="true"></a> headingTwo = 2,</span>
+<span id="cb443-8"><a href="#cb443-8" aria-hidden="true"></a> headingThree = 3,</span>
+<span id="cb443-9"><a href="#cb443-9" aria-hidden="true"></a> headingFour = 4,</span>
+<span id="cb443-10"><a href="#cb443-10" aria-hidden="true"></a> headingFive = 5,</span>
+<span id="cb443-11"><a href="#cb443-11" aria-hidden="true"></a> headingSix = 6,</span>
+<span id="cb443-12"><a href="#cb443-12" aria-hidden="true"></a> },</span>
+<span id="cb443-13"><a href="#cb443-13" aria-hidden="true"></a>}</span>
+<span id="cb443-14"><a href="#cb443-14" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb443-15"><a href="#cb443-15" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb443-16"><a href="#cb443-16" aria-hidden="true"></a>######</span>
+<span id="cb443-17"><a href="#cb443-17" aria-hidden="true"></a>#####</span>
+<span id="cb443-18"><a href="#cb443-18" aria-hidden="true"></a>#####</span>
+<span id="cb443-19"><a href="#cb443-19" aria-hidden="true"></a>###</span>
+<span id="cb443-20"><a href="#cb443-20" aria-hidden="true"></a>######</span>
+<span id="cb443-21"><a href="#cb443-21" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb443-22"><a href="#cb443-22" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb444"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb444-1"><a href="#cb444-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>65536</p>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-42">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb442"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb442-1"><a href="#cb442-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb442-2"><a href="#cb442-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
-<span id="cb442-3"><a href="#cb442-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span>
-<span id="cb442-4"><a href="#cb442-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span>
-<span id="cb442-5"><a href="#cb442-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span>
-<span id="cb442-6"><a href="#cb442-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span>
-<span id="cb442-7"><a href="#cb442-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span>
-<span id="cb442-8"><a href="#cb442-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span>
-<span id="cb442-9"><a href="#cb442-9" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb442-10"><a href="#cb442-10" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb442-11"><a href="#cb442-11" aria-hidden="true"></a>######</span>
-<span id="cb442-12"><a href="#cb442-12" aria-hidden="true"></a>#####</span>
-<span id="cb442-13"><a href="#cb442-13" aria-hidden="true"></a>#####</span>
-<span id="cb442-14"><a href="#cb442-14" aria-hidden="true"></a>###</span>
-<span id="cb442-15"><a href="#cb442-15" aria-hidden="true"></a>######</span>
-<span id="cb442-16"><a href="#cb442-16" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb442-17"><a href="#cb442-17" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb443"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb443-1"><a href="#cb443-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb445"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb445-1"><a href="#cb445-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb445-2"><a href="#cb445-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span>
+<span id="cb445-3"><a href="#cb445-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span>
+<span id="cb445-4"><a href="#cb445-4" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span>
+<span id="cb445-5"><a href="#cb445-5" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span>
+<span id="cb445-6"><a href="#cb445-6" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span>
+<span id="cb445-7"><a href="#cb445-7" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span>
+<span id="cb445-8"><a href="#cb445-8" aria-hidden="true"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span>
+<span id="cb445-9"><a href="#cb445-9" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb445-10"><a href="#cb445-10" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb445-11"><a href="#cb445-11" aria-hidden="true"></a>######</span>
+<span id="cb445-12"><a href="#cb445-12" aria-hidden="true"></a>#####</span>
+<span id="cb445-13"><a href="#cb445-13" aria-hidden="true"></a>#####</span>
+<span id="cb445-14"><a href="#cb445-14" aria-hidden="true"></a>###</span>
+<span id="cb445-15"><a href="#cb445-15" aria-hidden="true"></a>######</span>
+<span id="cb445-16"><a href="#cb445-16" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb445-17"><a href="#cb445-17" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb446"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb446-1"><a href="#cb446-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>65536</p>
@@ -5890,44 +5939,44 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererHorizontalRule</code> macro represents a horizontal rule. The macro receives no arguments.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-31">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb444"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb444-1"><a href="#cb444-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb444-2"><a href="#cb444-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererHorizontalRule</span>{<span class="fu">\vfil\break</span>}</span>
-<span id="cb444-3"><a href="#cb444-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb444-4"><a href="#cb444-4" aria-hidden="true"></a>This is the first page.</span>
-<span id="cb444-5"><a href="#cb444-5" aria-hidden="true"></a></span>
-<span id="cb444-6"><a href="#cb444-6" aria-hidden="true"></a>***</span>
-<span id="cb444-7"><a href="#cb444-7" aria-hidden="true"></a></span>
-<span id="cb444-8"><a href="#cb444-8" aria-hidden="true"></a>This is the second page.</span>
-<span id="cb444-9"><a href="#cb444-9" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb444-10"><a href="#cb444-10" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb447"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb447-1"><a href="#cb447-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb447-2"><a href="#cb447-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererHorizontalRule</span>{<span class="fu">\vfil\break</span>}</span>
+<span id="cb447-3"><a href="#cb447-3" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb447-4"><a href="#cb447-4" aria-hidden="true"></a>This is the first page.</span>
+<span id="cb447-5"><a href="#cb447-5" aria-hidden="true"></a></span>
+<span id="cb447-6"><a href="#cb447-6" aria-hidden="true"></a>***</span>
+<span id="cb447-7"><a href="#cb447-7" aria-hidden="true"></a></span>
+<span id="cb447-8"><a href="#cb447-8" aria-hidden="true"></a>This is the second page.</span>
+<span id="cb447-9"><a href="#cb447-9" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb447-10"><a href="#cb447-10" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb445"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb445-1"><a href="#cb445-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb448"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb448-1"><a href="#cb448-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is the first page.</p>
<hr />
<p>This is the second page.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-54"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-55"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb446"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb446-1"><a href="#cb446-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb446-2"><a href="#cb446-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb446-3"><a href="#cb446-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb446-4"><a href="#cb446-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb446-5"><a href="#cb446-5" aria-hidden="true"></a> horizontalRule = <span class="fu">\newpage</span>,</span>
-<span id="cb446-6"><a href="#cb446-6" aria-hidden="true"></a> },</span>
-<span id="cb446-7"><a href="#cb446-7" aria-hidden="true"></a>}</span>
-<span id="cb446-8"><a href="#cb446-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb446-9"><a href="#cb446-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb446-10"><a href="#cb446-10" aria-hidden="true"></a>This is the first page.</span>
-<span id="cb446-11"><a href="#cb446-11" aria-hidden="true"></a></span>
-<span id="cb446-12"><a href="#cb446-12" aria-hidden="true"></a>***</span>
-<span id="cb446-13"><a href="#cb446-13" aria-hidden="true"></a></span>
-<span id="cb446-14"><a href="#cb446-14" aria-hidden="true"></a>This is the second page.</span>
-<span id="cb446-15"><a href="#cb446-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb446-16"><a href="#cb446-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb447"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb447-1"><a href="#cb447-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb449"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb449-1"><a href="#cb449-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb449-2"><a href="#cb449-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb449-3"><a href="#cb449-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb449-4"><a href="#cb449-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb449-5"><a href="#cb449-5" aria-hidden="true"></a> horizontalRule = <span class="fu">\newpage</span>,</span>
+<span id="cb449-6"><a href="#cb449-6" aria-hidden="true"></a> },</span>
+<span id="cb449-7"><a href="#cb449-7" aria-hidden="true"></a>}</span>
+<span id="cb449-8"><a href="#cb449-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb449-9"><a href="#cb449-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb449-10"><a href="#cb449-10" aria-hidden="true"></a>This is the first page.</span>
+<span id="cb449-11"><a href="#cb449-11" aria-hidden="true"></a></span>
+<span id="cb449-12"><a href="#cb449-12" aria-hidden="true"></a>***</span>
+<span id="cb449-13"><a href="#cb449-13" aria-hidden="true"></a></span>
+<span id="cb449-14"><a href="#cb449-14" aria-hidden="true"></a>This is the second page.</span>
+<span id="cb449-15"><a href="#cb449-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb449-16"><a href="#cb449-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb450"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb450-1"><a href="#cb450-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is the first page.</p>
@@ -5936,19 +5985,19 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-43">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb448"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb448-1"><a href="#cb448-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb448-2"><a href="#cb448-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererHorizontalRule</span>{<span class="fu">\page</span>[yes]}</span>
-<span id="cb448-3"><a href="#cb448-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb448-4"><a href="#cb448-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb448-5"><a href="#cb448-5" aria-hidden="true"></a>This is the first page.</span>
-<span id="cb448-6"><a href="#cb448-6" aria-hidden="true"></a></span>
-<span id="cb448-7"><a href="#cb448-7" aria-hidden="true"></a>***</span>
-<span id="cb448-8"><a href="#cb448-8" aria-hidden="true"></a></span>
-<span id="cb448-9"><a href="#cb448-9" aria-hidden="true"></a>This is the second page.</span>
-<span id="cb448-10"><a href="#cb448-10" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb448-11"><a href="#cb448-11" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb451"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb451-1"><a href="#cb451-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb451-2"><a href="#cb451-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererHorizontalRule</span>{<span class="fu">\page</span>[yes]}</span>
+<span id="cb451-3"><a href="#cb451-3" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb451-4"><a href="#cb451-4" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb451-5"><a href="#cb451-5" aria-hidden="true"></a>This is the first page.</span>
+<span id="cb451-6"><a href="#cb451-6" aria-hidden="true"></a></span>
+<span id="cb451-7"><a href="#cb451-7" aria-hidden="true"></a>***</span>
+<span id="cb451-8"><a href="#cb451-8" aria-hidden="true"></a></span>
+<span id="cb451-9"><a href="#cb451-9" aria-hidden="true"></a>This is the second page.</span>
+<span id="cb451-10"><a href="#cb451-10" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb451-11"><a href="#cb451-11" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb449"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb449-1"><a href="#cb449-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb452"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb452-1"><a href="#cb452-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is the first page.</p>
@@ -5959,163 +6008,163 @@ Thomas,Edison,1847</code></pre>
<p>The <code>\markdownRendererFootnote</code> macro represents a footnote. This macro will only be produced, when the <strong><code>footnotes</code></strong> option is enabled. The macro receives a single argument that corresponds to the footnote text.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-32">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb450"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb450-1"><a href="#cb450-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb450-2"><a href="#cb450-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionFootnotes</span>{true}</span>
-<span id="cb450-3"><a href="#cb450-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererFootnote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span>
-<span id="cb450-4"><a href="#cb450-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb450-5"><a href="#cb450-5" aria-hidden="true"></a>This is some text[^1] and this is some other text[^2].</span>
-<span id="cb450-6"><a href="#cb450-6" aria-hidden="true"></a></span>
-<span id="cb450-7"><a href="#cb450-7" aria-hidden="true"></a> [^1]: this is a footnote</span>
-<span id="cb450-8"><a href="#cb450-8" aria-hidden="true"></a></span>
-<span id="cb450-9"><a href="#cb450-9" aria-hidden="true"></a> [^2]: this is some other footnote</span>
-<span id="cb450-10"><a href="#cb450-10" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb450-11"><a href="#cb450-11" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<div class="sourceCode" id="cb453"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb453-1"><a href="#cb453-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb453-2"><a href="#cb453-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionFootnotes</span>{true}</span>
+<span id="cb453-3"><a href="#cb453-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererFootnote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span>
+<span id="cb453-4"><a href="#cb453-4" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb453-5"><a href="#cb453-5" aria-hidden="true"></a>This is some text[^1] and this is some other text[^2].</span>
+<span id="cb453-6"><a href="#cb453-6" aria-hidden="true"></a></span>
+<span id="cb453-7"><a href="#cb453-7" aria-hidden="true"></a> [^1]: this is a footnote</span>
+<span id="cb453-8"><a href="#cb453-8" aria-hidden="true"></a></span>
+<span id="cb453-9"><a href="#cb453-9" aria-hidden="true"></a> [^2]: this is some other footnote</span>
+<span id="cb453-10"><a href="#cb453-10" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb453-11"><a href="#cb453-11" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb451"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb451-1"><a href="#cb451-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb454"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb454-1"><a href="#cb454-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is some text (and this is a footnote) and this is some other text (and this is some other footnote).</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-55"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-56"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb452"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb452-1"><a href="#cb452-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb452-2"><a href="#cb452-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[footnotes]{<span class="ex">markdown</span>}</span>
-<span id="cb452-3"><a href="#cb452-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb452-4"><a href="#cb452-4" aria-hidden="true"></a> renderers = {</span>
-<span id="cb452-5"><a href="#cb452-5" aria-hidden="true"></a> footnote = { (and <span class="fu">\MakeLowercase</span>{#1})},</span>
-<span id="cb452-6"><a href="#cb452-6" aria-hidden="true"></a> },</span>
-<span id="cb452-7"><a href="#cb452-7" aria-hidden="true"></a>}</span>
-<span id="cb452-8"><a href="#cb452-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb452-9"><a href="#cb452-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb452-10"><a href="#cb452-10" aria-hidden="true"></a>This is some text[^1] and this is some other text[^2].</span>
-<span id="cb452-11"><a href="#cb452-11" aria-hidden="true"></a></span>
-<span id="cb452-12"><a href="#cb452-12" aria-hidden="true"></a> [^1]: this is a footnote</span>
-<span id="cb452-13"><a href="#cb452-13" aria-hidden="true"></a></span>
-<span id="cb452-14"><a href="#cb452-14" aria-hidden="true"></a> [^2]: this is some other footnote</span>
-<span id="cb452-15"><a href="#cb452-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb452-16"><a href="#cb452-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb453"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb453-1"><a href="#cb453-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb455"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb455-1"><a href="#cb455-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb455-2"><a href="#cb455-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[footnotes]{<span class="ex">markdown</span>}</span>
+<span id="cb455-3"><a href="#cb455-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb455-4"><a href="#cb455-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb455-5"><a href="#cb455-5" aria-hidden="true"></a> footnote = { (and <span class="fu">\MakeLowercase</span>{#1})},</span>
+<span id="cb455-6"><a href="#cb455-6" aria-hidden="true"></a> },</span>
+<span id="cb455-7"><a href="#cb455-7" aria-hidden="true"></a>}</span>
+<span id="cb455-8"><a href="#cb455-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb455-9"><a href="#cb455-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb455-10"><a href="#cb455-10" aria-hidden="true"></a>This is some text[^1] and this is some other text[^2].</span>
+<span id="cb455-11"><a href="#cb455-11" aria-hidden="true"></a></span>
+<span id="cb455-12"><a href="#cb455-12" aria-hidden="true"></a> [^1]: this is a footnote</span>
+<span id="cb455-13"><a href="#cb455-13" aria-hidden="true"></a></span>
+<span id="cb455-14"><a href="#cb455-14" aria-hidden="true"></a> [^2]: this is some other footnote</span>
+<span id="cb455-15"><a href="#cb455-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb455-16"><a href="#cb455-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb456"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb456-1"><a href="#cb456-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is some text (and this is a footnote) and this is some other text (and this is some other footnote).</p>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-44">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb454"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb454-1"><a href="#cb454-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb454-2"><a href="#cb454-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionFootnotes</span>{true}</span>
-<span id="cb454-3"><a href="#cb454-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererFootnote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span>
-<span id="cb454-4"><a href="#cb454-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb454-5"><a href="#cb454-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb454-6"><a href="#cb454-6" aria-hidden="true"></a>This is some text[^1] and this is some other text[^2].</span>
-<span id="cb454-7"><a href="#cb454-7" aria-hidden="true"></a></span>
-<span id="cb454-8"><a href="#cb454-8" aria-hidden="true"></a> [^1]: this is a footnote</span>
-<span id="cb454-9"><a href="#cb454-9" aria-hidden="true"></a></span>
-<span id="cb454-10"><a href="#cb454-10" aria-hidden="true"></a> [^2]: this is some other footnote</span>
-<span id="cb454-11"><a href="#cb454-11" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb454-12"><a href="#cb454-12" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<div class="sourceCode" id="cb457"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb457-1"><a href="#cb457-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb457-2"><a href="#cb457-2" aria-hidden="true"></a><span class="fu">\def\markdownOptionFootnotes</span>{true}</span>
+<span id="cb457-3"><a href="#cb457-3" aria-hidden="true"></a><span class="fu">\def\markdownRendererFootnote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span>
+<span id="cb457-4"><a href="#cb457-4" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb457-5"><a href="#cb457-5" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb457-6"><a href="#cb457-6" aria-hidden="true"></a>This is some text[^1] and this is some other text[^2].</span>
+<span id="cb457-7"><a href="#cb457-7" aria-hidden="true"></a></span>
+<span id="cb457-8"><a href="#cb457-8" aria-hidden="true"></a> [^1]: this is a footnote</span>
+<span id="cb457-9"><a href="#cb457-9" aria-hidden="true"></a></span>
+<span id="cb457-10"><a href="#cb457-10" aria-hidden="true"></a> [^2]: this is some other footnote</span>
+<span id="cb457-11"><a href="#cb457-11" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb457-12"><a href="#cb457-12" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb455"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb455-1"><a href="#cb455-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb458"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb458-1"><a href="#cb458-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is some text (and this is a footnote) and this is some other text (and this is some other footnote).</p>
</blockquote>
<h4 data-number="2.3.1.22" id="parenthesized-citations-renderer"><span class="header-section-number">2.3.1.22</span> Parenthesized Citations Renderer</h4>
<p>The <code>\markdownRendererCite</code> macro represents a string of one or more parenthetical citations. This macro will only be produced, when the <strong><code>citations</code></strong> option is enabled. The macro receives the parameter <code>{</code>⟨<em>number of citations</em>⟩<code>}</code> followed by ⟨<em>suppress author</em>⟩ <code>{</code>⟨<em>prenote</em>⟩<code>}{</code>⟨<em>postnote</em>⟩<code>}{</code>⟨<em>name</em>⟩<code>}</code> repeated ⟨<em>number of citations</em>⟩ times. The ⟨<em>suppress author</em>⟩ parameter is either the token <code>-</code>, when the author’s name is to be suppressed, or <code>+</code> otherwise.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-56"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-57"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb456"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb456-1"><a href="#cb456-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb456-2"><a href="#cb456-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span>
-<span id="cb456-3"><a href="#cb456-3" aria-hidden="true"></a><span class="fu">\newcount\citationsCounter</span></span>
-<span id="cb456-4"><a href="#cb456-4" aria-hidden="true"></a><span class="fu">\newcount\citationsTotal</span></span>
-<span id="cb456-5"><a href="#cb456-5" aria-hidden="true"></a><span class="fu">\makeatletter</span></span>
-<span id="cb456-6"><a href="#cb456-6" aria-hidden="true"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb456-7"><a href="#cb456-7" aria-hidden="true"></a> a parenthesized citation <span class="fu">\emph</span>{#4}</span>
-<span id="cb456-8"><a href="#cb456-8" aria-hidden="true"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span>
-<span id="cb456-9"><a href="#cb456-9" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span>
-<span id="cb456-10"><a href="#cb456-10" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
-<span id="cb456-11"><a href="#cb456-11" aria-hidden="true"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
-<span id="cb456-12"><a href="#cb456-12" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb456-13"><a href="#cb456-13" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb456-14"><a href="#cb456-14" aria-hidden="true"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span>
-<span id="cb456-15"><a href="#cb456-15" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
-<span id="cb456-16"><a href="#cb456-16" aria-hidden="true"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
-<span id="cb456-17"><a href="#cb456-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb456-18"><a href="#cb456-18" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb456-19"><a href="#cb456-19" aria-hidden="true"></a> <span class="fu">\ifnum\citationsCounter</span>&gt;<span class="fu">\citationsTotal\relax</span></span>
-<span id="cb456-20"><a href="#cb456-20" aria-hidden="true"></a> .<span class="co">%</span></span>
-<span id="cb456-21"><a href="#cb456-21" aria-hidden="true"></a> <span class="fu">\expandafter\@gobble</span></span>
-<span id="cb456-22"><a href="#cb456-22" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb456-23"><a href="#cb456-23" aria-hidden="true"></a> , and</span>
-<span id="cb456-24"><a href="#cb456-24" aria-hidden="true"></a> <span class="fu">\fi\citations</span>}</span>
-<span id="cb456-25"><a href="#cb456-25" aria-hidden="true"></a><span class="fu">\makeatother</span></span>
-<span id="cb456-26"><a href="#cb456-26" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb456-27"><a href="#cb456-27" aria-hidden="true"></a> renderers = {</span>
-<span id="cb456-28"><a href="#cb456-28" aria-hidden="true"></a> cite = {<span class="co">%</span></span>
-<span id="cb456-29"><a href="#cb456-29" aria-hidden="true"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span>
-<span id="cb456-30"><a href="#cb456-30" aria-hidden="true"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span>
-<span id="cb456-31"><a href="#cb456-31" aria-hidden="true"></a> This is</span>
-<span id="cb456-32"><a href="#cb456-32" aria-hidden="true"></a> <span class="fu">\expandafter\citations</span></span>
-<span id="cb456-33"><a href="#cb456-33" aria-hidden="true"></a> },</span>
-<span id="cb456-34"><a href="#cb456-34" aria-hidden="true"></a> },</span>
-<span id="cb456-35"><a href="#cb456-35" aria-hidden="true"></a>}</span>
-<span id="cb456-36"><a href="#cb456-36" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb456-37"><a href="#cb456-37" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb456-38"><a href="#cb456-38" aria-hidden="true"></a>[see @abrahams90, pp. 12; @eijkhout91, pp. 34]</span>
-<span id="cb456-39"><a href="#cb456-39" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb456-40"><a href="#cb456-40" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb457"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb457-1"><a href="#cb457-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb459"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb459-1"><a href="#cb459-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb459-2"><a href="#cb459-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span>
+<span id="cb459-3"><a href="#cb459-3" aria-hidden="true"></a><span class="fu">\newcount\citationsCounter</span></span>
+<span id="cb459-4"><a href="#cb459-4" aria-hidden="true"></a><span class="fu">\newcount\citationsTotal</span></span>
+<span id="cb459-5"><a href="#cb459-5" aria-hidden="true"></a><span class="fu">\makeatletter</span></span>
+<span id="cb459-6"><a href="#cb459-6" aria-hidden="true"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb459-7"><a href="#cb459-7" aria-hidden="true"></a> a parenthesized citation <span class="fu">\emph</span>{#4}</span>
+<span id="cb459-8"><a href="#cb459-8" aria-hidden="true"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span>
+<span id="cb459-9"><a href="#cb459-9" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span>
+<span id="cb459-10"><a href="#cb459-10" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
+<span id="cb459-11"><a href="#cb459-11" aria-hidden="true"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
+<span id="cb459-12"><a href="#cb459-12" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb459-13"><a href="#cb459-13" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb459-14"><a href="#cb459-14" aria-hidden="true"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span>
+<span id="cb459-15"><a href="#cb459-15" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
+<span id="cb459-16"><a href="#cb459-16" aria-hidden="true"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
+<span id="cb459-17"><a href="#cb459-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb459-18"><a href="#cb459-18" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb459-19"><a href="#cb459-19" aria-hidden="true"></a> <span class="fu">\ifnum\citationsCounter</span>&gt;<span class="fu">\citationsTotal\relax</span></span>
+<span id="cb459-20"><a href="#cb459-20" aria-hidden="true"></a> .<span class="co">%</span></span>
+<span id="cb459-21"><a href="#cb459-21" aria-hidden="true"></a> <span class="fu">\expandafter\@gobble</span></span>
+<span id="cb459-22"><a href="#cb459-22" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb459-23"><a href="#cb459-23" aria-hidden="true"></a> , and</span>
+<span id="cb459-24"><a href="#cb459-24" aria-hidden="true"></a> <span class="fu">\fi\citations</span>}</span>
+<span id="cb459-25"><a href="#cb459-25" aria-hidden="true"></a><span class="fu">\makeatother</span></span>
+<span id="cb459-26"><a href="#cb459-26" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb459-27"><a href="#cb459-27" aria-hidden="true"></a> renderers = {</span>
+<span id="cb459-28"><a href="#cb459-28" aria-hidden="true"></a> cite = {<span class="co">%</span></span>
+<span id="cb459-29"><a href="#cb459-29" aria-hidden="true"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span>
+<span id="cb459-30"><a href="#cb459-30" aria-hidden="true"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span>
+<span id="cb459-31"><a href="#cb459-31" aria-hidden="true"></a> This is</span>
+<span id="cb459-32"><a href="#cb459-32" aria-hidden="true"></a> <span class="fu">\expandafter\citations</span></span>
+<span id="cb459-33"><a href="#cb459-33" aria-hidden="true"></a> },</span>
+<span id="cb459-34"><a href="#cb459-34" aria-hidden="true"></a> },</span>
+<span id="cb459-35"><a href="#cb459-35" aria-hidden="true"></a>}</span>
+<span id="cb459-36"><a href="#cb459-36" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb459-37"><a href="#cb459-37" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb459-38"><a href="#cb459-38" aria-hidden="true"></a>[see @abrahams90, pp. 12; @eijkhout91, pp. 34]</span>
+<span id="cb459-39"><a href="#cb459-39" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb459-40"><a href="#cb459-40" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb460"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb460-1"><a href="#cb460-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a parenthesized citation <em>abrahams90</em> with a prefix see and a postfix <em>pp. 12</em>, and a citation <em>eijkhout91</em> with a postfix <em>pp. 34</em>.</p>
</blockquote>
<h4 data-number="2.3.1.23" id="text-citations-renderer"><span class="header-section-number">2.3.1.23</span> Text Citations Renderer</h4>
<p>The <code>\markdownRendererTextCite</code> macro represents a string of one or more text citations. This macro will only be produced, when the <strong><code>citations</code></strong> option is enabled. The macro receives parameters in the same format as the macro.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-57"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-58"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb458"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb458-1"><a href="#cb458-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb458-2"><a href="#cb458-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span>
-<span id="cb458-3"><a href="#cb458-3" aria-hidden="true"></a><span class="fu">\newcount\citationsCounter</span></span>
-<span id="cb458-4"><a href="#cb458-4" aria-hidden="true"></a><span class="fu">\newcount\citationsTotal</span></span>
-<span id="cb458-5"><a href="#cb458-5" aria-hidden="true"></a><span class="fu">\makeatletter</span></span>
-<span id="cb458-6"><a href="#cb458-6" aria-hidden="true"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span>
-<span id="cb458-7"><a href="#cb458-7" aria-hidden="true"></a> a text citation <span class="fu">\emph</span>{#4}</span>
-<span id="cb458-8"><a href="#cb458-8" aria-hidden="true"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span>
-<span id="cb458-9"><a href="#cb458-9" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span>
-<span id="cb458-10"><a href="#cb458-10" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
-<span id="cb458-11"><a href="#cb458-11" aria-hidden="true"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
-<span id="cb458-12"><a href="#cb458-12" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb458-13"><a href="#cb458-13" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb458-14"><a href="#cb458-14" aria-hidden="true"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span>
-<span id="cb458-15"><a href="#cb458-15" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
-<span id="cb458-16"><a href="#cb458-16" aria-hidden="true"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
-<span id="cb458-17"><a href="#cb458-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb458-18"><a href="#cb458-18" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb458-19"><a href="#cb458-19" aria-hidden="true"></a> <span class="fu">\ifnum\citationsCounter</span>&gt;<span class="fu">\citationsTotal\relax</span></span>
-<span id="cb458-20"><a href="#cb458-20" aria-hidden="true"></a> .<span class="co">%</span></span>
-<span id="cb458-21"><a href="#cb458-21" aria-hidden="true"></a> <span class="fu">\expandafter\@gobble</span></span>
-<span id="cb458-22"><a href="#cb458-22" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb458-23"><a href="#cb458-23" aria-hidden="true"></a> , and</span>
-<span id="cb458-24"><a href="#cb458-24" aria-hidden="true"></a> <span class="fu">\fi\citations</span>}</span>
-<span id="cb458-25"><a href="#cb458-25" aria-hidden="true"></a><span class="fu">\makeatother</span></span>
-<span id="cb458-26"><a href="#cb458-26" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb458-27"><a href="#cb458-27" aria-hidden="true"></a> renderers = {</span>
-<span id="cb458-28"><a href="#cb458-28" aria-hidden="true"></a> textCite = {<span class="co">%</span></span>
-<span id="cb458-29"><a href="#cb458-29" aria-hidden="true"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span>
-<span id="cb458-30"><a href="#cb458-30" aria-hidden="true"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span>
-<span id="cb458-31"><a href="#cb458-31" aria-hidden="true"></a> This is</span>
-<span id="cb458-32"><a href="#cb458-32" aria-hidden="true"></a> <span class="fu">\expandafter\citations</span></span>
-<span id="cb458-33"><a href="#cb458-33" aria-hidden="true"></a> },</span>
-<span id="cb458-34"><a href="#cb458-34" aria-hidden="true"></a> },</span>
-<span id="cb458-35"><a href="#cb458-35" aria-hidden="true"></a>}</span>
-<span id="cb458-36"><a href="#cb458-36" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb458-37"><a href="#cb458-37" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb458-38"><a href="#cb458-38" aria-hidden="true"></a>@abrahams90 [pp. 12; also @eijkhout91]</span>
-<span id="cb458-39"><a href="#cb458-39" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb458-40"><a href="#cb458-40" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb459"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb459-1"><a href="#cb459-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb461"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb461-1"><a href="#cb461-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb461-2"><a href="#cb461-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span>
+<span id="cb461-3"><a href="#cb461-3" aria-hidden="true"></a><span class="fu">\newcount\citationsCounter</span></span>
+<span id="cb461-4"><a href="#cb461-4" aria-hidden="true"></a><span class="fu">\newcount\citationsTotal</span></span>
+<span id="cb461-5"><a href="#cb461-5" aria-hidden="true"></a><span class="fu">\makeatletter</span></span>
+<span id="cb461-6"><a href="#cb461-6" aria-hidden="true"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span>
+<span id="cb461-7"><a href="#cb461-7" aria-hidden="true"></a> a text citation <span class="fu">\emph</span>{#4}</span>
+<span id="cb461-8"><a href="#cb461-8" aria-hidden="true"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span>
+<span id="cb461-9"><a href="#cb461-9" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span>
+<span id="cb461-10"><a href="#cb461-10" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
+<span id="cb461-11"><a href="#cb461-11" aria-hidden="true"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
+<span id="cb461-12"><a href="#cb461-12" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb461-13"><a href="#cb461-13" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb461-14"><a href="#cb461-14" aria-hidden="true"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span>
+<span id="cb461-15"><a href="#cb461-15" aria-hidden="true"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span>
+<span id="cb461-16"><a href="#cb461-16" aria-hidden="true"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span>
+<span id="cb461-17"><a href="#cb461-17" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb461-18"><a href="#cb461-18" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb461-19"><a href="#cb461-19" aria-hidden="true"></a> <span class="fu">\ifnum\citationsCounter</span>&gt;<span class="fu">\citationsTotal\relax</span></span>
+<span id="cb461-20"><a href="#cb461-20" aria-hidden="true"></a> .<span class="co">%</span></span>
+<span id="cb461-21"><a href="#cb461-21" aria-hidden="true"></a> <span class="fu">\expandafter\@gobble</span></span>
+<span id="cb461-22"><a href="#cb461-22" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb461-23"><a href="#cb461-23" aria-hidden="true"></a> , and</span>
+<span id="cb461-24"><a href="#cb461-24" aria-hidden="true"></a> <span class="fu">\fi\citations</span>}</span>
+<span id="cb461-25"><a href="#cb461-25" aria-hidden="true"></a><span class="fu">\makeatother</span></span>
+<span id="cb461-26"><a href="#cb461-26" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb461-27"><a href="#cb461-27" aria-hidden="true"></a> renderers = {</span>
+<span id="cb461-28"><a href="#cb461-28" aria-hidden="true"></a> textCite = {<span class="co">%</span></span>
+<span id="cb461-29"><a href="#cb461-29" aria-hidden="true"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span>
+<span id="cb461-30"><a href="#cb461-30" aria-hidden="true"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span>
+<span id="cb461-31"><a href="#cb461-31" aria-hidden="true"></a> This is</span>
+<span id="cb461-32"><a href="#cb461-32" aria-hidden="true"></a> <span class="fu">\expandafter\citations</span></span>
+<span id="cb461-33"><a href="#cb461-33" aria-hidden="true"></a> },</span>
+<span id="cb461-34"><a href="#cb461-34" aria-hidden="true"></a> },</span>
+<span id="cb461-35"><a href="#cb461-35" aria-hidden="true"></a>}</span>
+<span id="cb461-36"><a href="#cb461-36" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb461-37"><a href="#cb461-37" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb461-38"><a href="#cb461-38" aria-hidden="true"></a>@abrahams90 [pp. 12; also @eijkhout91]</span>
+<span id="cb461-39"><a href="#cb461-39" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb461-40"><a href="#cb461-40" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb462"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb462-1"><a href="#cb462-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a text citation <em>abrahams90</em> with a postfix <em>pp. 12</em>, and a citation <em>eijkhout91</em> with a prefix <em>also</em>.</p>
@@ -6128,151 +6177,291 @@ Thomas,Edison,1847</code></pre>
<li><code>c</code> – The corresponding column is centered.</li>
<li><code>r</code> – The corresponding column is right-aligned.</li>
</ul>
-<h5 class="unnumbered" data-number="" id="latex-example-58"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<h5 class="unnumbered" data-number="" id="latex-example-59"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb460"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb460-1"><a href="#cb460-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb460-2"><a href="#cb460-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span>
-<span id="cb460-3"><a href="#cb460-3" aria-hidden="true"></a><span class="fu">\newcount\rowCounter</span></span>
-<span id="cb460-4"><a href="#cb460-4" aria-hidden="true"></a><span class="fu">\newcount\columnCounter</span></span>
-<span id="cb460-5"><a href="#cb460-5" aria-hidden="true"></a><span class="fu">\makeatletter</span></span>
-<span id="cb460-6"><a href="#cb460-6" aria-hidden="true"></a><span class="fu">\def\processRow</span>#1{<span class="co">%</span></span>
-<span id="cb460-7"><a href="#cb460-7" aria-hidden="true"></a> <span class="fu">\columnCounter</span>=1<span class="co">%</span></span>
-<span id="cb460-8"><a href="#cb460-8" aria-hidden="true"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span>
-<span id="cb460-9"><a href="#cb460-9" aria-hidden="true"></a> As for the alignment,</span>
-<span id="cb460-10"><a href="#cb460-10" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb460-11"><a href="#cb460-11" aria-hidden="true"></a> In row <span class="fu">\the\rowCounter</span>,</span>
-<span id="cb460-12"><a href="#cb460-12" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb460-13"><a href="#cb460-13" aria-hidden="true"></a> <span class="fu">\processColumn</span>#1</span>
-<span id="cb460-14"><a href="#cb460-14" aria-hidden="true"></a> <span class="fu">\advance\rowCounter</span> by 1<span class="fu">\relax</span></span>
-<span id="cb460-15"><a href="#cb460-15" aria-hidden="true"></a> <span class="fu">\ifnum\rowCounter</span>&gt;<span class="fu">\rowTotal\relax</span></span>
-<span id="cb460-16"><a href="#cb460-16" aria-hidden="true"></a> <span class="fu">\expandafter\@gobble</span></span>
-<span id="cb460-17"><a href="#cb460-17" aria-hidden="true"></a> <span class="fu">\fi\processRow</span>}<span class="co">%</span></span>
-<span id="cb460-18"><a href="#cb460-18" aria-hidden="true"></a><span class="fu">\def\processColumn</span>#1{<span class="co">%</span></span>
-<span id="cb460-19"><a href="#cb460-19" aria-hidden="true"></a> column number <span class="fu">\the\columnCounter</span>{}</span>
-<span id="cb460-20"><a href="#cb460-20" aria-hidden="true"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span>
-<span id="cb460-21"><a href="#cb460-21" aria-hidden="true"></a> <span class="fu">\if</span>#1d{}has default alignment<span class="fu">\fi</span></span>
-<span id="cb460-22"><a href="#cb460-22" aria-hidden="true"></a> <span class="fu">\if</span>#1l{}is left-aligned<span class="fu">\fi</span></span>
-<span id="cb460-23"><a href="#cb460-23" aria-hidden="true"></a> <span class="fu">\if</span>#1c{}is centered<span class="fu">\fi</span></span>
-<span id="cb460-24"><a href="#cb460-24" aria-hidden="true"></a> <span class="fu">\if</span>#1r{}is right-aligned<span class="fu">\fi</span></span>
-<span id="cb460-25"><a href="#cb460-25" aria-hidden="true"></a> <span class="fu">\else</span></span>
-<span id="cb460-26"><a href="#cb460-26" aria-hidden="true"></a> says <span class="fu">\emph</span>{#1}<span class="co">%</span></span>
-<span id="cb460-27"><a href="#cb460-27" aria-hidden="true"></a> <span class="fu">\fi</span></span>
-<span id="cb460-28"><a href="#cb460-28" aria-hidden="true"></a> <span class="fu">\advance\columnCounter</span> by 1<span class="fu">\relax</span></span>
-<span id="cb460-29"><a href="#cb460-29" aria-hidden="true"></a> <span class="fu">\ifnum\columnCounter</span>&lt;<span class="fu">\columnTotal\relax</span>, <span class="fu">\fi</span></span>
-<span id="cb460-30"><a href="#cb460-30" aria-hidden="true"></a> <span class="fu">\ifnum\columnCounter</span>=<span class="fu">\columnTotal\relax</span>, and <span class="fu">\fi</span></span>
-<span id="cb460-31"><a href="#cb460-31" aria-hidden="true"></a> <span class="fu">\ifnum\columnCounter</span>&gt;<span class="fu">\columnTotal\relax</span></span>
-<span id="cb460-32"><a href="#cb460-32" aria-hidden="true"></a> .<span class="fu">\expandafter\@gobble</span></span>
-<span id="cb460-33"><a href="#cb460-33" aria-hidden="true"></a> <span class="fu">\fi\processColumn</span>}<span class="co">%</span></span>
-<span id="cb460-34"><a href="#cb460-34" aria-hidden="true"></a><span class="fu">\makeatother</span></span>
-<span id="cb460-35"><a href="#cb460-35" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb460-36"><a href="#cb460-36" aria-hidden="true"></a> renderers = {</span>
-<span id="cb460-37"><a href="#cb460-37" aria-hidden="true"></a> table = {<span class="co">%</span></span>
-<span id="cb460-38"><a href="#cb460-38" aria-hidden="true"></a> This is a table with caption <span class="fu">\emph</span>{#1} that is #3 colums wide</span>
-<span id="cb460-39"><a href="#cb460-39" aria-hidden="true"></a> and #2 rows long.</span>
-<span id="cb460-40"><a href="#cb460-40" aria-hidden="true"></a> <span class="fu">\rowCounter</span>=0<span class="co">%</span></span>
-<span id="cb460-41"><a href="#cb460-41" aria-hidden="true"></a> <span class="fu">\def\rowTotal</span>{#2}<span class="co">%</span></span>
-<span id="cb460-42"><a href="#cb460-42" aria-hidden="true"></a> <span class="fu">\def\columnTotal</span>{#3}<span class="co">%</span></span>
-<span id="cb460-43"><a href="#cb460-43" aria-hidden="true"></a> <span class="fu">\processRow</span></span>
-<span id="cb460-44"><a href="#cb460-44" aria-hidden="true"></a> },</span>
-<span id="cb460-45"><a href="#cb460-45" aria-hidden="true"></a> },</span>
-<span id="cb460-46"><a href="#cb460-46" aria-hidden="true"></a>}</span>
-<span id="cb460-47"><a href="#cb460-47" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb460-48"><a href="#cb460-48" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb460-49"><a href="#cb460-49" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
-<span id="cb460-50"><a href="#cb460-50" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
-<span id="cb460-51"><a href="#cb460-51" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
-<span id="cb460-52"><a href="#cb460-52" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
-<span id="cb460-53"><a href="#cb460-53" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
-<span id="cb460-54"><a href="#cb460-54" aria-hidden="true"></a></span>
-<span id="cb460-55"><a href="#cb460-55" aria-hidden="true"></a> : Demonstration of pipe table syntax</span>
-<span id="cb460-56"><a href="#cb460-56" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb460-57"><a href="#cb460-57" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb461"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb461-1"><a href="#cb461-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb463"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb463-1"><a href="#cb463-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb463-2"><a href="#cb463-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span>
+<span id="cb463-3"><a href="#cb463-3" aria-hidden="true"></a><span class="fu">\newcount\rowCounter</span></span>
+<span id="cb463-4"><a href="#cb463-4" aria-hidden="true"></a><span class="fu">\newcount\columnCounter</span></span>
+<span id="cb463-5"><a href="#cb463-5" aria-hidden="true"></a><span class="fu">\makeatletter</span></span>
+<span id="cb463-6"><a href="#cb463-6" aria-hidden="true"></a><span class="fu">\def\processRow</span>#1{<span class="co">%</span></span>
+<span id="cb463-7"><a href="#cb463-7" aria-hidden="true"></a> <span class="fu">\columnCounter</span>=1<span class="co">%</span></span>
+<span id="cb463-8"><a href="#cb463-8" aria-hidden="true"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span>
+<span id="cb463-9"><a href="#cb463-9" aria-hidden="true"></a> As for the alignment,</span>
+<span id="cb463-10"><a href="#cb463-10" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb463-11"><a href="#cb463-11" aria-hidden="true"></a> In row <span class="fu">\the\rowCounter</span>,</span>
+<span id="cb463-12"><a href="#cb463-12" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb463-13"><a href="#cb463-13" aria-hidden="true"></a> <span class="fu">\processColumn</span>#1</span>
+<span id="cb463-14"><a href="#cb463-14" aria-hidden="true"></a> <span class="fu">\advance\rowCounter</span> by 1<span class="fu">\relax</span></span>
+<span id="cb463-15"><a href="#cb463-15" aria-hidden="true"></a> <span class="fu">\ifnum\rowCounter</span>&gt;<span class="fu">\rowTotal\relax</span></span>
+<span id="cb463-16"><a href="#cb463-16" aria-hidden="true"></a> <span class="fu">\expandafter\@gobble</span></span>
+<span id="cb463-17"><a href="#cb463-17" aria-hidden="true"></a> <span class="fu">\fi\processRow</span>}<span class="co">%</span></span>
+<span id="cb463-18"><a href="#cb463-18" aria-hidden="true"></a><span class="fu">\def\processColumn</span>#1{<span class="co">%</span></span>
+<span id="cb463-19"><a href="#cb463-19" aria-hidden="true"></a> column number <span class="fu">\the\columnCounter</span>{}</span>
+<span id="cb463-20"><a href="#cb463-20" aria-hidden="true"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span>
+<span id="cb463-21"><a href="#cb463-21" aria-hidden="true"></a> <span class="fu">\if</span>#1d{}has default alignment<span class="fu">\fi</span></span>
+<span id="cb463-22"><a href="#cb463-22" aria-hidden="true"></a> <span class="fu">\if</span>#1l{}is left-aligned<span class="fu">\fi</span></span>
+<span id="cb463-23"><a href="#cb463-23" aria-hidden="true"></a> <span class="fu">\if</span>#1c{}is centered<span class="fu">\fi</span></span>
+<span id="cb463-24"><a href="#cb463-24" aria-hidden="true"></a> <span class="fu">\if</span>#1r{}is right-aligned<span class="fu">\fi</span></span>
+<span id="cb463-25"><a href="#cb463-25" aria-hidden="true"></a> <span class="fu">\else</span></span>
+<span id="cb463-26"><a href="#cb463-26" aria-hidden="true"></a> says <span class="fu">\emph</span>{#1}<span class="co">%</span></span>
+<span id="cb463-27"><a href="#cb463-27" aria-hidden="true"></a> <span class="fu">\fi</span></span>
+<span id="cb463-28"><a href="#cb463-28" aria-hidden="true"></a> <span class="fu">\advance\columnCounter</span> by 1<span class="fu">\relax</span></span>
+<span id="cb463-29"><a href="#cb463-29" aria-hidden="true"></a> <span class="fu">\ifnum\columnCounter</span>&lt;<span class="fu">\columnTotal\relax</span>, <span class="fu">\fi</span></span>
+<span id="cb463-30"><a href="#cb463-30" aria-hidden="true"></a> <span class="fu">\ifnum\columnCounter</span>=<span class="fu">\columnTotal\relax</span>, and <span class="fu">\fi</span></span>
+<span id="cb463-31"><a href="#cb463-31" aria-hidden="true"></a> <span class="fu">\ifnum\columnCounter</span>&gt;<span class="fu">\columnTotal\relax</span></span>
+<span id="cb463-32"><a href="#cb463-32" aria-hidden="true"></a> .<span class="fu">\expandafter\@gobble</span></span>
+<span id="cb463-33"><a href="#cb463-33" aria-hidden="true"></a> <span class="fu">\fi\processColumn</span>}<span class="co">%</span></span>
+<span id="cb463-34"><a href="#cb463-34" aria-hidden="true"></a><span class="fu">\makeatother</span></span>
+<span id="cb463-35"><a href="#cb463-35" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb463-36"><a href="#cb463-36" aria-hidden="true"></a> renderers = {</span>
+<span id="cb463-37"><a href="#cb463-37" aria-hidden="true"></a> table = {<span class="co">%</span></span>
+<span id="cb463-38"><a href="#cb463-38" aria-hidden="true"></a> This is a table with caption <span class="fu">\emph</span>{#1} that is #3 colums wide</span>
+<span id="cb463-39"><a href="#cb463-39" aria-hidden="true"></a> and #2 rows long.</span>
+<span id="cb463-40"><a href="#cb463-40" aria-hidden="true"></a> <span class="fu">\rowCounter</span>=0<span class="co">%</span></span>
+<span id="cb463-41"><a href="#cb463-41" aria-hidden="true"></a> <span class="fu">\def\rowTotal</span>{#2}<span class="co">%</span></span>
+<span id="cb463-42"><a href="#cb463-42" aria-hidden="true"></a> <span class="fu">\def\columnTotal</span>{#3}<span class="co">%</span></span>
+<span id="cb463-43"><a href="#cb463-43" aria-hidden="true"></a> <span class="fu">\processRow</span></span>
+<span id="cb463-44"><a href="#cb463-44" aria-hidden="true"></a> },</span>
+<span id="cb463-45"><a href="#cb463-45" aria-hidden="true"></a> },</span>
+<span id="cb463-46"><a href="#cb463-46" aria-hidden="true"></a>}</span>
+<span id="cb463-47"><a href="#cb463-47" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb463-48"><a href="#cb463-48" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb463-49"><a href="#cb463-49" aria-hidden="true"></a>| Right | Left | Default | Center |</span>
+<span id="cb463-50"><a href="#cb463-50" aria-hidden="true"></a>|------:|:-----|---------|:------:|</span>
+<span id="cb463-51"><a href="#cb463-51" aria-hidden="true"></a>| 12 | 12 | 12 | 12 |</span>
+<span id="cb463-52"><a href="#cb463-52" aria-hidden="true"></a>| 123 | 123 | 123 | 123 |</span>
+<span id="cb463-53"><a href="#cb463-53" aria-hidden="true"></a>| 1 | 1 | 1 | 1 |</span>
+<span id="cb463-54"><a href="#cb463-54" aria-hidden="true"></a></span>
+<span id="cb463-55"><a href="#cb463-55" aria-hidden="true"></a> : Demonstration of pipe table syntax</span>
+<span id="cb463-56"><a href="#cb463-56" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb463-57"><a href="#cb463-57" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb464"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb464-1"><a href="#cb464-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>This is a table with caption <em>Demonstration of pipe table syntax</em> that is 4 colums wide and 4 rows long. As for the alignment, column number 1 is right-aligned, column number 2 is left-aligned, column number 3 has default alignment, and column number 4 is centered. In row 1, column number 1 says <em>Right</em>, column number 2 says <em>Left</em>, column number 3 says <em>Default</em>, and column number 4 says <em>Center</em>. In row 2, column number 1 says <em>12</em>, column number 2 says <em>12</em>, column number 3 says <em>12</em>, and column number 4 says <em>12</em>. In row 3, column number 1 says <em>123</em>, column number 2 says <em>123</em>, column number 3 says <em>123</em>, and column number 4 says <em>123</em>. In row 4, column number 1 says <em>1</em>, column number 2 says <em>1</em>, column number 3 says <em>1</em>, and column number 4 says <em>1</em>.</p>
</blockquote>
-<h4 data-number="2.3.1.25" id="inline-html-comment-renderer"><span class="header-section-number">2.3.1.25</span> Inline HTML Comment Renderer</h4>
+<h4 data-number="2.3.1.25" id="html-comment-renderers"><span class="header-section-number">2.3.1.25</span> HTML Comment Renderers</h4>
<p>The <code>\markdownRendererInlineHtmlComment</code> macro represents the contents of an inline <abbr>HTML</abbr> comment. This macro will only be produced, when the <strong><code>html</code></strong> option is enabled. The macro receives a single argument that corresponds to the contents of the <abbr>HTML</abbr> comment.</p>
-<h5 class="unnumbered" data-number="" id="latex-example-59"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<p>The <code>\markdownRendererBlockHtmlCommentBegin</code> and <code>\markdownRendererBlockHtmlCommentEnd</code> macros represent the beginning and the end of a block <abbr>HTML</abbr> comment. The macros receive no arguments.</p>
+<h5 class="unnumbered" data-number="" id="latex-example-60"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb462"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb462-1"><a href="#cb462-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb462-2"><a href="#cb462-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span>
-<span id="cb462-3"><a href="#cb462-3" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span>
-<span id="cb462-4"><a href="#cb462-4" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb462-5"><a href="#cb462-5" aria-hidden="true"></a> renderers = {</span>
-<span id="cb462-6"><a href="#cb462-6" aria-hidden="true"></a> inlineHtmlComment = {<span class="fu">\marginnote</span>{#1}},</span>
-<span id="cb462-7"><a href="#cb462-7" aria-hidden="true"></a> },</span>
-<span id="cb462-8"><a href="#cb462-8" aria-hidden="true"></a>}</span>
-<span id="cb462-9"><a href="#cb462-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb462-10"><a href="#cb462-10" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb462-11"><a href="#cb462-11" aria-hidden="true"></a>A useful use of HTML comments are side notes.</span>
-<span id="cb462-12"><a href="#cb462-12" aria-hidden="true"></a>&lt;!-- Side notes are displayed in the horizontal margins next to the relevant</span>
-<span id="cb462-13"><a href="#cb462-13" aria-hidden="true"></a>passages, which makes them easier for the reader to find than footnotes. --&gt;</span>
-<span id="cb462-14"><a href="#cb462-14" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb462-15"><a href="#cb462-15" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb463"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb463-1"><a href="#cb463-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
-<span id="cb463-2"><a href="#cb463-2" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb465"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb465-1"><a href="#cb465-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb465-2"><a href="#cb465-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span>
+<span id="cb465-3"><a href="#cb465-3" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span>
+<span id="cb465-4"><a href="#cb465-4" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb465-5"><a href="#cb465-5" aria-hidden="true"></a> renderers = {</span>
+<span id="cb465-6"><a href="#cb465-6" aria-hidden="true"></a> inlineHtmlComment = {<span class="fu">\marginnote</span>{#1}},</span>
+<span id="cb465-7"><a href="#cb465-7" aria-hidden="true"></a> blockHtmlCommentBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</span>
+<span id="cb465-8"><a href="#cb465-8" aria-hidden="true"></a> blockHtmlCommentEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</span>
+<span id="cb465-9"><a href="#cb465-9" aria-hidden="true"></a> },</span>
+<span id="cb465-10"><a href="#cb465-10" aria-hidden="true"></a>}</span>
+<span id="cb465-11"><a href="#cb465-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb465-12"><a href="#cb465-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb465-13"><a href="#cb465-13" aria-hidden="true"></a>A useful use of inline HTML comments are side notes.</span>
+<span id="cb465-14"><a href="#cb465-14" aria-hidden="true"></a>&lt;!-- Side notes are displayed in the horizontal margins next to the relevant</span>
+<span id="cb465-15"><a href="#cb465-15" aria-hidden="true"></a>passages, which makes them *easier for the reader to find* than footnotes. --&gt;</span>
+<span id="cb465-16"><a href="#cb465-16" aria-hidden="true"></a></span>
+<span id="cb465-17"><a href="#cb465-17" aria-hidden="true"></a>We can render block HTML comments as blockquotes:</span>
+<span id="cb465-18"><a href="#cb465-18" aria-hidden="true"></a></span>
+<span id="cb465-19"><a href="#cb465-19" aria-hidden="true"></a>&lt;!--</span>
+<span id="cb465-20"><a href="#cb465-20" aria-hidden="true"></a>Here is a block HTML comment with a code example that a programmer might understand:</span>
+<span id="cb465-21"><a href="#cb465-21" aria-hidden="true"></a></span>
+<span id="cb465-22"><a href="#cb465-22" aria-hidden="true"></a> foo = bar + baz - 42</span>
+<span id="cb465-23"><a href="#cb465-23" aria-hidden="true"></a>--&gt;</span>
+<span id="cb465-24"><a href="#cb465-24" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb465-25"><a href="#cb465-25" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb466"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb466-1"><a href="#cb466-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
+<span id="cb466-2"><a href="#cb466-2" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following body text:</p>
<blockquote>
<p>A useful use of HTML comments are side notes.</p>
+<p>We can render block HTML comments as blockquotes:</p>
+<blockquote>
+<p>Here is a block HTML comment with a code example that a programmer might understand:</p>
+<pre><code>foo = bar + baz - 42</code></pre>
+</blockquote>
</blockquote>
<p>The horizontal margins should contain the following text:</p>
<blockquote>
-<p>Side notes are displayed in the horizontal margins next to the relevant passages, which makes them easier for the reader to find than footnotes.</p>
-</blockquote>
-<h3 data-number="2.3.2" id="token-renderer-prototypes"><span class="header-section-number">2.3.2</span> Token Renderer Prototypes</h3>
+<p>Side notes are displayed in the horizontal margins next to the relevant passages, which makes them <em>easier for the reader to find</em> than footnotes.</p>
+</blockquote>
+<h4 data-number="2.3.1.26" id="html-tag-and-element-renderers"><span class="header-section-number">2.3.1.26</span> HTML Tag and Element Renderers</h4>
+<p>The <code>\markdownRendererInlineHtmlTag</code> macro represents an opening, closing, or empty inline <abbr>HTML</abbr> tag. This macro will only be produced, when the <strong><code>html</code></strong> option is enabled. The macro receives a single argument that corresponds to the contents of the <abbr>HTML</abbr> tag.</p>
+<p>The <code>\markdownRendererInputBlockHtmlElement</code> macro represents a block <abbr>HTML</abbr> element. This macro will only be produced, when the <strong><code>html</code></strong> option is enabled. The macro receives a single argument that filename of a file containing the contents of the <abbr>HTML</abbr> element.</p>
+<h5 class="unnumbered" data-number="" id="latex-example-61"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb468"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb468-1"><a href="#cb468-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb468-2"><a href="#cb468-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span>
+<span id="cb468-3"><a href="#cb468-3" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span>
+<span id="cb468-4"><a href="#cb468-4" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span>
+<span id="cb468-5"><a href="#cb468-5" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb468-6"><a href="#cb468-6" aria-hidden="true"></a> renderers = {</span>
+<span id="cb468-7"><a href="#cb468-7" aria-hidden="true"></a> inlineHtmlTag = {<span class="fu">\textbf</span>{#1}},</span>
+<span id="cb468-8"><a href="#cb468-8" aria-hidden="true"></a> inputBlockHtmlElement = {<span class="fu">\verbatiminput</span>{#1}},</span>
+<span id="cb468-9"><a href="#cb468-9" aria-hidden="true"></a> },</span>
+<span id="cb468-10"><a href="#cb468-10" aria-hidden="true"></a>}</span>
+<span id="cb468-11"><a href="#cb468-11" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb468-12"><a href="#cb468-12" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb468-13"><a href="#cb468-13" aria-hidden="true"></a>&lt;b&gt;_Hello,_ world!&lt;/b&gt;&lt;br/&gt;</span>
+<span id="cb468-14"><a href="#cb468-14" aria-hidden="true"></a></span>
+<span id="cb468-15"><a href="#cb468-15" aria-hidden="true"></a>&lt;div&gt;_Hello,_ world!&lt;/div&gt;</span>
+<span id="cb468-16"><a href="#cb468-16" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb468-17"><a href="#cb468-17" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb469"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb469-1"><a href="#cb469-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span>
+<span id="cb469-2"><a href="#cb469-2" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<p>A PDF document named <code>document.pdf</code> should be produced and contain the following body text:</p>
+<blockquote>
+<p><strong><b></strong>_Hello,_ world!<strong></b><br/></strong></p>
+<pre><code>&lt;div&gt;_Hello,_ world!&lt;/div&gt;</code></pre>
+</blockquote>
+<h4 data-number="2.3.1.27" id="attribute-renderers"><span class="header-section-number">2.3.1.27</span> Attribute Renderers</h4>
+<p>The following macros are only produced, when the <strong><code>headerAttributes</code></strong> option is enabled.</p>
+<p><code>\markdownRendererAttributeIdentifier</code> represents the ⟨<em>identifier</em>⟩ of a markdown element (<code>id="</code>⟨<em>identifier</em>⟩<code>"</code> in HTML and <code>#</code>⟨<em>identifier</em>⟩ in Markdown’s <strong><code>headerAttributes</code></strong> syntax extension). The macro receives a single attribute that corresponds to the ⟨<em>identifier</em>⟩.</p>
+<p><code>\markdownRendererAttributeClassName</code> represents the ⟨<em>class name</em>⟩ of a markdown element (<code>class="</code>⟨<em>class name</em>⟩ …<code>"</code> in HTML and <code>.</code>⟨<em>class name</em>⟩ in Markdown’s <strong><code>headerAttributes</code></strong> syntax extension). The macro receives a single attribute that corresponds to the .</p>
+<p><code>\markdownRendererAttributeKeyValue</code> represents a HTML attribute in the form ⟨<em>key</em>⟩<code>=</code>⟨<em>value</em>⟩ that is neither an identifier nor a class name. The macro receives two attributes that correspond to the ⟨<em>key</em>⟩ and the ⟨<em>value</em>⟩, respectively.</p>
+<h5 class="unnumbered" data-number="" id="latex-example-62"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb471"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb471-1"><a href="#cb471-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb471-2"><a href="#cb471-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[headerAttributes, underscores=false]{<span class="ex">markdown</span>}</span>
+<span id="cb471-3"><a href="#cb471-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb471-4"><a href="#cb471-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb471-5"><a href="#cb471-5" aria-hidden="true"></a> attributeIdentifier = {<span class="co">%</span></span>
+<span id="cb471-6"><a href="#cb471-6" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb471-7"><a href="#cb471-7" aria-hidden="true"></a> <span class="fu">\emph</span>{(Identifier: #1)}</span>
+<span id="cb471-8"><a href="#cb471-8" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb471-9"><a href="#cb471-9" aria-hidden="true"></a> },</span>
+<span id="cb471-10"><a href="#cb471-10" aria-hidden="true"></a> attributeClassName = {<span class="co">%</span></span>
+<span id="cb471-11"><a href="#cb471-11" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb471-12"><a href="#cb471-12" aria-hidden="true"></a> <span class="fu">\emph</span>{(Class name: #1)}</span>
+<span id="cb471-13"><a href="#cb471-13" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb471-14"><a href="#cb471-14" aria-hidden="true"></a> },</span>
+<span id="cb471-15"><a href="#cb471-15" aria-hidden="true"></a> attributeKeyValue = {<span class="co">%</span></span>
+<span id="cb471-16"><a href="#cb471-16" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb471-17"><a href="#cb471-17" aria-hidden="true"></a> <span class="fu">\emph</span>{(Key: #1, Value: #2)}</span>
+<span id="cb471-18"><a href="#cb471-18" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb471-19"><a href="#cb471-19" aria-hidden="true"></a> },</span>
+<span id="cb471-20"><a href="#cb471-20" aria-hidden="true"></a> },</span>
+<span id="cb471-21"><a href="#cb471-21" aria-hidden="true"></a>}</span>
+<span id="cb471-22"><a href="#cb471-22" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb471-23"><a href="#cb471-23" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb471-24"><a href="#cb471-24" aria-hidden="true"></a></span>
+<span id="cb471-25"><a href="#cb471-25" aria-hidden="true"></a># First top-level heading {jane=doe}</span>
+<span id="cb471-26"><a href="#cb471-26" aria-hidden="true"></a></span>
+<span id="cb471-27"><a href="#cb471-27" aria-hidden="true"></a>## A subheading {#identifier}</span>
+<span id="cb471-28"><a href="#cb471-28" aria-hidden="true"></a></span>
+<span id="cb471-29"><a href="#cb471-29" aria-hidden="true"></a># Second top-level heading {.class_name}</span>
+<span id="cb471-30"><a href="#cb471-30" aria-hidden="true"></a></span>
+<span id="cb471-31"><a href="#cb471-31" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb471-32"><a href="#cb471-32" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb472"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb472-1"><a href="#cb472-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
+<blockquote>
+<h1 id="first-top-level-heading">First top-level heading</h1>
+<p><em>(Key: Jane, Value: Doe)</em></p>
+<h2 id="a-subheading">A subheading</h2>
+<p><em>(Identifier: identifier)</em></p>
+<h1 id="second-top-level-heading">Second top-level heading</h1>
+<p><em>(Class name: class_name)</em></p>
+</blockquote>
+<h4 data-number="2.3.1.28" id="header-attribute-context-renderers"><span class="header-section-number">2.3.1.28</span> Header Attribute Context Renderers</h4>
+<p>The following macros are only produced, when the <strong><code>headerAttributes</code></strong> option is enabled.</p>
+<p>The <code>\markdownRendererHeaderAttributeContextBegin</code> and <code>\markdownRendererHeaderAttributeContextEnd</code> macros represent the beginning and the end of a section in which the attributes of a heading apply. The macros receive no arguments.</p>
+<h5 class="unnumbered" data-number="" id="latex-example-63"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb473"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb473-1"><a href="#cb473-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb473-2"><a href="#cb473-2" aria-hidden="true"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span>
+<span id="cb473-3"><a href="#cb473-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb473-4"><a href="#cb473-4" aria-hidden="true"></a> renderers = {</span>
+<span id="cb473-5"><a href="#cb473-5" aria-hidden="true"></a> headerAttributeContextBegin = {<span class="co">%</span></span>
+<span id="cb473-6"><a href="#cb473-6" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb473-7"><a href="#cb473-7" aria-hidden="true"></a> <span class="fu">\emph</span>{(The beginning of a header attribute context)}</span>
+<span id="cb473-8"><a href="#cb473-8" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb473-9"><a href="#cb473-9" aria-hidden="true"></a> },</span>
+<span id="cb473-10"><a href="#cb473-10" aria-hidden="true"></a> headerAttributeContextBegin = {<span class="co">%</span></span>
+<span id="cb473-11"><a href="#cb473-11" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb473-12"><a href="#cb473-12" aria-hidden="true"></a> <span class="fu">\emph</span>{(The end of a header attribute context)}</span>
+<span id="cb473-13"><a href="#cb473-13" aria-hidden="true"></a> <span class="fu">\par</span></span>
+<span id="cb473-14"><a href="#cb473-14" aria-hidden="true"></a> },</span>
+<span id="cb473-15"><a href="#cb473-15" aria-hidden="true"></a> },</span>
+<span id="cb473-16"><a href="#cb473-16" aria-hidden="true"></a>}</span>
+<span id="cb473-17"><a href="#cb473-17" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb473-18"><a href="#cb473-18" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb473-19"><a href="#cb473-19" aria-hidden="true"></a></span>
+<span id="cb473-20"><a href="#cb473-20" aria-hidden="true"></a># First top-level heading</span>
+<span id="cb473-21"><a href="#cb473-21" aria-hidden="true"></a></span>
+<span id="cb473-22"><a href="#cb473-22" aria-hidden="true"></a>## A subheading {#identifier}</span>
+<span id="cb473-23"><a href="#cb473-23" aria-hidden="true"></a></span>
+<span id="cb473-24"><a href="#cb473-24" aria-hidden="true"></a># Second top-level heading {.class_name}</span>
+<span id="cb473-25"><a href="#cb473-25" aria-hidden="true"></a></span>
+<span id="cb473-26"><a href="#cb473-26" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb473-27"><a href="#cb473-27" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb474"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb474-1"><a href="#cb474-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
+<blockquote>
+<h1 id="first-top-level-heading-1">First top-level heading</h1>
+<p><em>(The beginning of a header attribute context)</em></p>
+<h2 id="a-subheading-1">A subheading</h2>
+<p><em>(The end of a header attribute context)</em></p>
+<p><em>(The beginning of a header attribute context)</em></p>
+<h1 id="second-top-level-heading-1">Second top-level heading</h1>
+<p><em>(The end of a header attribute context)</em></p>
+</blockquote>
+<h3 data-number="2.3.2" id="texrendererprototypes"><span class="header-section-number">2.3.2</span> Token Renderer Prototypes</h3>
<p>By default, token renderers point to package-defined <span class="tex">T<sub>e</sub>X</span> macros, further referred to as <em>prototypes</em>, which provide useful default definitions.</p>
<h5 class="unnumbered" data-number="" id="plain-tex-example-33">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb464"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb464-1"><a href="#cb464-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
-<span id="cb464-2"><a href="#cb464-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span>
-<span id="cb464-3"><a href="#cb464-3" aria-hidden="true"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span>
-<span id="cb464-4"><a href="#cb464-4" aria-hidden="true"></a>}</span>
-<span id="cb464-5"><a href="#cb464-5" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb464-6"><a href="#cb464-6" aria-hidden="true"></a>~</span>
-<span id="cb464-7"><a href="#cb464-7" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb464-8"><a href="#cb464-8" aria-hidden="true"></a></span>
-<span id="cb464-9"><a href="#cb464-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span>
-<span id="cb464-10"><a href="#cb464-10" aria-hidden="true"></a> User-defined token renderers take precedence.<span class="co">%</span></span>
-<span id="cb464-11"><a href="#cb464-11" aria-hidden="true"></a>}</span>
-<span id="cb464-12"><a href="#cb464-12" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
-<span id="cb464-13"><a href="#cb464-13" aria-hidden="true"></a>~</span>
-<span id="cb464-14"><a href="#cb464-14" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
-<span id="cb464-15"><a href="#cb464-15" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb465"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb465-1"><a href="#cb465-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb475"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb475-1"><a href="#cb475-1" aria-hidden="true"></a><span class="fu">\input</span> markdown</span>
+<span id="cb475-2"><a href="#cb475-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span>
+<span id="cb475-3"><a href="#cb475-3" aria-hidden="true"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span>
+<span id="cb475-4"><a href="#cb475-4" aria-hidden="true"></a>}</span>
+<span id="cb475-5"><a href="#cb475-5" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb475-6"><a href="#cb475-6" aria-hidden="true"></a>~</span>
+<span id="cb475-7"><a href="#cb475-7" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb475-8"><a href="#cb475-8" aria-hidden="true"></a></span>
+<span id="cb475-9"><a href="#cb475-9" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span>
+<span id="cb475-10"><a href="#cb475-10" aria-hidden="true"></a> User-defined token renderers take precedence.<span class="co">%</span></span>
+<span id="cb475-11"><a href="#cb475-11" aria-hidden="true"></a>}</span>
+<span id="cb475-12"><a href="#cb475-12" aria-hidden="true"></a><span class="fu">\markdownBegin</span></span>
+<span id="cb475-13"><a href="#cb475-13" aria-hidden="true"></a>~</span>
+<span id="cb475-14"><a href="#cb475-14" aria-hidden="true"></a><span class="fu">\markdownEnd</span></span>
+<span id="cb475-15"><a href="#cb475-15" aria-hidden="true"></a><span class="fu">\bye</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb476"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb476-1"><a href="#cb476-1" aria-hidden="true"></a><span class="ex">luatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Packages can specify token renderer prototypes.</p>
<p>User-defined token renderers take precedence.</p>
</blockquote>
-<h5 class="unnumbered" data-number="" id="latex-example-60"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
-<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb466"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb466-1"><a href="#cb466-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
-<span id="cb466-2"><a href="#cb466-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
-<span id="cb466-3"><a href="#cb466-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
-<span id="cb466-4"><a href="#cb466-4" aria-hidden="true"></a> rendererPrototypes = {</span>
-<span id="cb466-5"><a href="#cb466-5" aria-hidden="true"></a> tilde = {Packages can specify token renderer prototypes.},</span>
-<span id="cb466-6"><a href="#cb466-6" aria-hidden="true"></a> },</span>
-<span id="cb466-7"><a href="#cb466-7" aria-hidden="true"></a>}</span>
-<span id="cb466-8"><a href="#cb466-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
-<span id="cb466-9"><a href="#cb466-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
-<span id="cb466-10"><a href="#cb466-10" aria-hidden="true"></a>~</span>
-<span id="cb466-11"><a href="#cb466-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
-<span id="cb466-12"><a href="#cb466-12" aria-hidden="true"></a></span>
-<span id="cb466-13"><a href="#cb466-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
-<span id="cb466-14"><a href="#cb466-14" aria-hidden="true"></a> renderers = {</span>
-<span id="cb466-15"><a href="#cb466-15" aria-hidden="true"></a> tilde = {User-defined token renderers take precedence.},</span>
-<span id="cb466-16"><a href="#cb466-16" aria-hidden="true"></a> },</span>
-<span id="cb466-17"><a href="#cb466-17" aria-hidden="true"></a>}</span>
-<span id="cb466-18"><a href="#cb466-18" aria-hidden="true"></a>~</span>
-<span id="cb466-19"><a href="#cb466-19" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
-<span id="cb466-20"><a href="#cb466-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb467"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb467-1"><a href="#cb467-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
+<h5 class="unnumbered" data-number="" id="latex-example-64"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5>
+<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
+<div class="sourceCode" id="cb477"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb477-1"><a href="#cb477-1" aria-hidden="true"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span>
+<span id="cb477-2"><a href="#cb477-2" aria-hidden="true"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span>
+<span id="cb477-3"><a href="#cb477-3" aria-hidden="true"></a><span class="fu">\markdownSetup</span>{</span>
+<span id="cb477-4"><a href="#cb477-4" aria-hidden="true"></a> rendererPrototypes = {</span>
+<span id="cb477-5"><a href="#cb477-5" aria-hidden="true"></a> tilde = {Packages can specify token renderer prototypes.},</span>
+<span id="cb477-6"><a href="#cb477-6" aria-hidden="true"></a> },</span>
+<span id="cb477-7"><a href="#cb477-7" aria-hidden="true"></a>}</span>
+<span id="cb477-8"><a href="#cb477-8" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span>
+<span id="cb477-9"><a href="#cb477-9" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span>
+<span id="cb477-10"><a href="#cb477-10" aria-hidden="true"></a>~</span>
+<span id="cb477-11"><a href="#cb477-11" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span>
+<span id="cb477-12"><a href="#cb477-12" aria-hidden="true"></a></span>
+<span id="cb477-13"><a href="#cb477-13" aria-hidden="true"></a><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</span>
+<span id="cb477-14"><a href="#cb477-14" aria-hidden="true"></a> renderers = {</span>
+<span id="cb477-15"><a href="#cb477-15" aria-hidden="true"></a> tilde = {User-defined token renderers take precedence.},</span>
+<span id="cb477-16"><a href="#cb477-16" aria-hidden="true"></a> },</span>
+<span id="cb477-17"><a href="#cb477-17" aria-hidden="true"></a>}</span>
+<span id="cb477-18"><a href="#cb477-18" aria-hidden="true"></a>~</span>
+<span id="cb477-19"><a href="#cb477-19" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">markdown*</span>}</span>
+<span id="cb477-20"><a href="#cb477-20" aria-hidden="true"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb478"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb478-1"><a href="#cb478-1" aria-hidden="true"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Packages can specify token renderer prototypes.</p>
@@ -6280,24 +6469,24 @@ Thomas,Edison,1847</code></pre>
</blockquote>
<h5 class="unnumbered" data-number="" id="context-example-45">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5>
<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p>
-<div class="sourceCode" id="cb468"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb468-1"><a href="#cb468-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
-<span id="cb468-2"><a href="#cb468-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span>
-<span id="cb468-3"><a href="#cb468-3" aria-hidden="true"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span>
-<span id="cb468-4"><a href="#cb468-4" aria-hidden="true"></a>}</span>
-<span id="cb468-5"><a href="#cb468-5" aria-hidden="true"></a><span class="fu">\starttext</span></span>
-<span id="cb468-6"><a href="#cb468-6" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb468-7"><a href="#cb468-7" aria-hidden="true"></a>~</span>
-<span id="cb468-8"><a href="#cb468-8" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb468-9"><a href="#cb468-9" aria-hidden="true"></a></span>
-<span id="cb468-10"><a href="#cb468-10" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span>
-<span id="cb468-11"><a href="#cb468-11" aria-hidden="true"></a> User-defined token renderers take precedence.<span class="co">%</span></span>
-<span id="cb468-12"><a href="#cb468-12" aria-hidden="true"></a>}</span>
-<span id="cb468-13"><a href="#cb468-13" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
-<span id="cb468-14"><a href="#cb468-14" aria-hidden="true"></a>~</span>
-<span id="cb468-15"><a href="#cb468-15" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
-<span id="cb468-16"><a href="#cb468-16" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
-<p>Next, invoke LuaTeX from the terminal:</p>
-<div class="sourceCode" id="cb469"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb469-1"><a href="#cb469-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
+<div class="sourceCode" id="cb479"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb479-1"><a href="#cb479-1" aria-hidden="true"></a><span class="fu">\usemodule</span>[t][markdown]</span>
+<span id="cb479-2"><a href="#cb479-2" aria-hidden="true"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span>
+<span id="cb479-3"><a href="#cb479-3" aria-hidden="true"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span>
+<span id="cb479-4"><a href="#cb479-4" aria-hidden="true"></a>}</span>
+<span id="cb479-5"><a href="#cb479-5" aria-hidden="true"></a><span class="fu">\starttext</span></span>
+<span id="cb479-6"><a href="#cb479-6" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb479-7"><a href="#cb479-7" aria-hidden="true"></a>~</span>
+<span id="cb479-8"><a href="#cb479-8" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb479-9"><a href="#cb479-9" aria-hidden="true"></a></span>
+<span id="cb479-10"><a href="#cb479-10" aria-hidden="true"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span>
+<span id="cb479-11"><a href="#cb479-11" aria-hidden="true"></a> User-defined token renderers take precedence.<span class="co">%</span></span>
+<span id="cb479-12"><a href="#cb479-12" aria-hidden="true"></a>}</span>
+<span id="cb479-13"><a href="#cb479-13" aria-hidden="true"></a><span class="fu">\startmarkdown</span></span>
+<span id="cb479-14"><a href="#cb479-14" aria-hidden="true"></a>~</span>
+<span id="cb479-15"><a href="#cb479-15" aria-hidden="true"></a><span class="fu">\stopmarkdown</span></span>
+<span id="cb479-16"><a href="#cb479-16" aria-hidden="true"></a><span class="fu">\stoptext</span></span></code></pre></div>
+<p>Next, invoke LuaTeX from the terminal:</p>
+<div class="sourceCode" id="cb480"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb480-1"><a href="#cb480-1" aria-hidden="true"></a><span class="ex">context</span> document.tex</span></code></pre></div>
<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p>
<blockquote>
<p>Packages can specify token renderer prototypes.</p>
diff --git a/Master/texmf-dist/doc/generic/markdown/markdown.pdf b/Master/texmf-dist/doc/generic/markdown/markdown.pdf
index b49a172384c..ef7f39daaf5 100644
--- a/Master/texmf-dist/doc/generic/markdown/markdown.pdf
+++ b/Master/texmf-dist/doc/generic/markdown/markdown.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/markdown/examples/latex.tex b/Master/texmf-dist/doc/latex/markdown/examples/latex.tex
index cf820dfa36d..337263d38fc 100644
--- a/Master/texmf-dist/doc/latex/markdown/examples/latex.tex
+++ b/Master/texmf-dist/doc/latex/markdown/examples/latex.tex
@@ -43,9 +43,30 @@ date: \today
% Typeset the document `example.tex` that we prepared separately using the
% Lua command-line interface of the Markdown package and that contains a
% plain TeX representation of the document `example.md`.
+\catcode`\%=12\relax
\InputIfFileExists{./example.tex}{}{}
+\catcode`\%=14\relax
\begin{markdown}
Here are some non-ASCII characters: *ěščřžýáíé*.
\end{markdown}
+
+\begin{markdown*}{html, hybrid}
+Here is some <b>HTML code</b> mixed *with Markdown*. In pdf \TeX, the HTML code
+will be silently ignored, whereas in \TeX 4ht, the HTML code will be passed
+through to the output:
+
+<table border="1">
+ <tr>
+ <td>Emil</td>
+ <td>Tobias</td>
+ <td>Linus</td>
+ </tr>
+ <tr>
+ <td>16</td>
+ <td>14</td>
+ <td>10</td>
+ </tr>
+</table>
+\end{markdown*}
\end{document}
diff --git a/Master/texmf-dist/scripts/markdown/markdown-cli.lua b/Master/texmf-dist/scripts/markdown/markdown-cli.lua
index bfd532220b6..4e34effaf71 100644
--- a/Master/texmf-dist/scripts/markdown/markdown-cli.lua
+++ b/Master/texmf-dist/scripts/markdown/markdown-cli.lua
@@ -20,7 +20,7 @@
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--
--- Copyright (C) 2016-2021 Vít Novotný
+-- Copyright (C) 2016-2022 Vít Novotný
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3
@@ -58,11 +58,11 @@
-- those in the standard .ins files.
--
local metadata = {
- version = "2.13.0-0-g1f680a8",
+ version = "2.14.0-0-g9635d76",
comment = "A module for the conversion from markdown to plain TeX",
author = "John MacFarlane, Hans Hagen, Vít Novotný",
copyright = {"2009-2016 John MacFarlane, Hans Hagen",
- "2016-2021 Vít Novotný"},
+ "2016-2022 Vít Novotný"},
license = "LPPL 1.3c"
}
@@ -93,6 +93,7 @@ defaultOptions.inlineFootnotes = false
defaultOptions.jekyllData = false
defaultOptions.pipeTables = false
defaultOptions.preserveTabs = false
+defaultOptions.relativeReferences = false
defaultOptions.shiftHeadings = 0
defaultOptions.slice = "^ $"
defaultOptions.smartEllipses = false
diff --git a/Master/texmf-dist/source/generic/markdown/docstrip.cfg b/Master/texmf-dist/source/generic/markdown/docstrip.cfg
index b1672cc2987..25311521080 100644
--- a/Master/texmf-dist/source/generic/markdown/docstrip.cfg
+++ b/Master/texmf-dist/source/generic/markdown/docstrip.cfg
@@ -22,7 +22,7 @@
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE^^J%
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.^^J%
-- ^^J%
--- Copyright (C) 2016-2021 Vít Novotný^^J%
+-- Copyright (C) 2016-2022 Vít Novotný^^J%
-- ^^J%
-- This work may be distributed and/or modified under the^^J%
-- conditions of the LaTeX Project Public License, either version 1.3^^J%
diff --git a/Master/texmf-dist/source/generic/markdown/markdown.dtx b/Master/texmf-dist/source/generic/markdown/markdown.dtx
index 4b6b148082d..c16740e2a1a 100644
--- a/Master/texmf-dist/source/generic/markdown/markdown.dtx
+++ b/Master/texmf-dist/source/generic/markdown/markdown.dtx
@@ -3,8 +3,7 @@
%<*driver>
\documentclass{ltxdockit}
\usepackage[american]{babel}
-\usepackage{amsmath,btxdockit,doc,fancyvrb,graphicx,hologo,microtype,minted,varioref}
-\vrefwarning
+\usepackage{amsmath,btxdockit,doc,fancyvrb,graphicx,hologo,microtype,minted}
% Set up the style.
\usepackage{xcolor}
@@ -87,6 +86,7 @@
hybrid,
inlineFootnotes,
jekyllData,
+ relativeReferences,
stripPercentSigns,
underscores = false,
theme = witiko/dot,
@@ -763,12 +763,11 @@ abbr {
publisher = {Addison-Wesley}}
%</techdoc-bibliography>
%<*latex-themes-witiko-markdown-techdoc>
-\ProvidesPackage{markdownthemewitiko_markdown_techdoc}[2021/09/10]
+\ProvidesPackage{markdownthemewitiko_markdown_techdoc}[2022/02/23]
\RequirePackage{etoolbox}
\markdownSetup{
- renderers = {
+ rendererPrototypes = {
codeSpan = {\inline{#1}},
- link = {#1\footnote{See \url{#3}.}},
headingFour = {%
\paragraph{#1}\leavevmode
\def\markdownRendererInterblockSeparator{%
@@ -783,10 +782,38 @@ abbr {
{\def\addcontentsline##1##2##3{}\listoffigures}%
}%
},
+ headerAttributeContextBegin = {
+ \markdownSetup{
+ rendererPrototypes = {
+ attributeIdentifier = {%
+ \begingroup
+ \def\next####1{%
+ \def####1########1{%
+ \endgroup
+ ####1{########1}%
+ \label{sec:##1}%
+ }%
+ }%
+ \next\markdownRendererHeadingOne
+ \next\markdownRendererHeadingTwo
+ \next\markdownRendererHeadingThree
+ \next\markdownRendererHeadingFour
+ \next\markdownRendererHeadingFive
+ \next\markdownRendererHeadingSix
+ },
+ },
+ }%
+ },
},
}
+\def\markdownLaTeXRendererAbsoluteLink#1#2#3#4{%
+ #1\footnote{See \url{#3}.}}
+\RequirePackage{varioref}
+\vrefwarning
+\def\markdownLaTeXRendererRelativeLink#1{%
+ \ref{#1}}
\markdownSetupSnippet{options}{
- renderers = {
+ rendererPrototypes = {
dlBegin = {\begin{optionlist}},
dlItem = {
#1
@@ -812,7 +839,6 @@ abbr {
dlEnd = {\end{optionlist}},
}
}
-\RequirePackage{expl3}
\ExplSyntaxOn
\keys_define:nn
{ markdown/jekyllData }
@@ -866,8 +892,8 @@ syntax is encouraged. 😉
% This document is a technical documentation for the \pkg{Markdown} package. It
% consists of three sections. This section introduces the package and outlines
-% its prerequisites. Section \vref{sec:interfaces} describes the interfaces
-% exposed by the package. Section \vref{sec:implementation} describes the
+% its prerequisites. Section <#sec:interfaces> describes the interfaces
+% exposed by the package. Section <#sec:implementation> describes the
% implementation of the package. The technical documentation contains only a
% limited number of tutorials and code examples. You can find more of these in
% the [user manual.][manual]
@@ -894,7 +920,7 @@ local metadata = {
comment = "A module for the conversion from markdown to plain TeX",
author = "John MacFarlane, Hans Hagen, Vít Novotný",
copyright = {"2009-2016 John MacFarlane, Hans Hagen",
- "2016-2021 Vít Novotný"},
+ "2016-2022 Vít Novotný"},
license = "LPPL 1.3c"
}
@@ -997,8 +1023,8 @@ a directory named `markdown` due to [issue #74][issue-74].
%
% This section gives an overview of all resources required by the package.
%
-%### Lua Requirements
-% \label{sec:luaprerequisites}
+%### Lua Requirements {#luaprerequisites}
+%
% The Lua part of the package requires that the following Lua modules are
% available from within the Lua\TeX{} engine:
%
@@ -1074,11 +1100,11 @@ local md5 = require("md5")
% \par
% \begin{markdown}
%
-%### Plain \TeX{} Requirements
-% \label{sec:texprerequisites}
+%### Plain \TeX{} Requirements {#texprerequisites}
+%
% The plain \TeX{} part of the package requires that the plain \TeX{}
% format (or its superset) is loaded, all the Lua prerequisites (see
-% Section \vref{sec:luaprerequisites}), and the following Lua module:
+% Section <#sec:luaprerequisites>), and the following Lua module:
%
% \pkg{Lua File System}
%
@@ -1096,7 +1122,7 @@ local md5 = require("md5")
% engine~[@luatex17, Section~3.3].
%
% Unless you convert markdown documents to \TeX{} manually using the Lua
-% command-line interface (see Section \vref{sec:lua-cli-interface}), the plain
+% command-line interface (see Section <#sec:lua-cli-interface>), the plain
% \TeX{} part of the package will require that either the Lua\TeX{}
% \mref{directlua} primitive or the shell access file stream 18 is available in
% your \TeX{} engine. If only the shell access file stream is available in your
@@ -1114,8 +1140,8 @@ local md5 = require("md5")
% \par
% \begin{markdown}
%
-%### \LaTeX{} Requirements
-% \label{sec:latexprerequisites}
+%### \LaTeX{} Requirements {#latexprerequisites}
+%
% The \LaTeX{} part of the package requires that the \Hologo{LaTeX2e} format is
% loaded,
% \end{markdown}
@@ -1130,7 +1156,7 @@ local md5 = require("md5")
% \fi
% \begin{markdown}
% a \TeX{} engine that extends \Hologo{eTeX}, all the plain \TeX{}
-% prerequisites (see Section \vref{sec:texprerequisites}), and the following
+% prerequisites (see Section <#sec:texprerequisites>), and the following
% \Hologo{LaTeX2e} packages:
%
% \pkg{keyval}
@@ -1160,10 +1186,10 @@ local md5 = require("md5")
%
% The following packages are soft prerequisites. They are only used to provide
% default token renderer prototypes (see sections
-% \vref{sec:texrendererprototypes} and
-% \vref{sec:latexdefaultrendererprototypes}) or \LaTeX{} themes (see Section
-% \vref{sec:latexthemes}) and will not be loaded if the `plain` package option
-% has been enabled (see Section \vref{sec:latexplain}):
+% <#sec:texrendererprototypes> and
+% <#sec:latexdefaultrendererprototypes>) or \LaTeX{} themes (see Section
+% <#sec:latexthemes>) and will not be loaded if the `plain` package option
+% has been enabled (see Section <#sec:latexplain>):
%
% \pkg{url}
%
@@ -1186,7 +1212,7 @@ local md5 = require("md5")
%: A package that provides a concise syntax for the inspection of macro
% values. It is used to determine whether or not the \pkg{paralist} package
% should be loaded based on the user options, in the `witiko/dot` \LaTeX{}
-% theme (see Section \vref{sec:latexthemes}), and to provide default token
+% theme (see Section <#sec:latexthemes>), and to provide default token
% renderer prototypes.
%
% \pkg{fancyvrb}
@@ -1215,7 +1241,7 @@ local md5 = require("md5")
%
%: A package that catches the contents of a file and puts it in a macro. It
% is used in the `witiko/graphicx/http` \LaTeX{} theme, see Section
-% \vref{sec:latexthemes}.
+% <#sec:latexthemes>.
%
% \pkg{grffile}
%
@@ -1224,21 +1250,27 @@ local md5 = require("md5")
% Since \TeX{} Live${}\geq{}2020$, the functionality of the package has
% been integrated in the \LaTeXe{} kernel. It is used in the `witiko/dot`
% and `witiko/graphicx/http` \LaTeX{} themes, see Section
-% \vref{sec:latexthemes}.
+% <#sec:latexthemes>.
%
% \pkg{etoolbox}
%
%: A package that is used to polyfill the general hook management system in
% the default renderer prototypes for \acro{yaml} metadata, see Section
-% \ref{sec:latexyamlmetadata}.
+% <#sec:latexyamlmetadata>, and also in the default renderer prototype
+% for attribute identifiers.
%
% \pkg{expl3}
%
%: A package that enables the expl3 language from the \LaTeX3 kernel in
% \TeX{} Live${}\leq{}2019$. It is used in the default renderer prototypes
-% for \acro{yaml} metadata, see Section \ref{sec:latexyamlmetadata}.
+% for links (see Section <#sec:latexlinks>), \acro{yaml} metadata (see
+% Section <#sec:latexyamlmetadata>), and in the implementation of
+% \LaTeX{} themes (see Section <#sec:latexthemesimplementation>).
%
% \end{markdown}
+% \begin{macrocode}
+\RequirePackage{expl3}
+% \end{macrocode}
% \iffalse
%</latex>
%<*context>
@@ -1249,14 +1281,14 @@ local md5 = require("md5")
%### \Hologo{ConTeXt} Prerequisites
% The \Hologo{ConTeXt} part of the package requires that either the Mark II or
% the Mark IV format is loaded, all the plain \TeX{} prerequisites (see
-% Section \vref{sec:texprerequisites}), and the following \Hologo{ConTeXt}
+% Section <#sec:texprerequisites>), and the following \Hologo{ConTeXt}
% modules:
%
% \pkg{m-database}
%
%: A module that provides the default token renderer prototype for
% iA\,Writer content blocks with the \acro{csv} filename extension (see
-% Section \vref{sec:texrendererprototypes}).
+% Section <#sec:texrendererprototypes>).
%
% Feedback
%---------
@@ -1290,9 +1322,9 @@ local md5 = require("md5")
% interfacing with an external interpreter from \TeX{}, the \pkg{filecontents}
% package by Scott Pakin and others.
%
-% Interfaces
-%===========
-% \label{sec:interfaces}
+% Interfaces {#interfaces}
+%============
+%
% This part of the documentation describes the interfaces exposed by the package
% along with usage notes and examples. It is aimed at the user of the package.
%
@@ -1302,7 +1334,7 @@ local md5 = require("md5")
% user that if they only access the package through the interface, the future
% minor versions of the package should remain backwards compatible.
%
-% Figure \vref{fig:block-diagram} shows the high-level structure of the Markdown
+% Figure <#fig:block-diagram> shows the high-level structure of the Markdown
% package: The translation from markdown to \TeX{} *token renderers* is exposed
% by the Lua layer. The plain \TeX{} layer exposes the conversion capabilities
% of Lua as \TeX{} macros. The \LaTeX{} and \Hologo{ConTeXt} layers provide
@@ -1517,9 +1549,8 @@ Each part will be shown by example, leaving the implementation details to the
% \par
% \begin{markdown}
%
-% Lua Interface
-%--------------
-% \label{sec:luainterface}
+% Lua Interface {#luainterface}
+%---------------
%
% \iffalse
%</lua>
@@ -1550,7 +1581,7 @@ module and a command-line interface (CLI).
%
% The Lua interface provides the conversion from \acro{utf}-\oldstylenums8
% encoded markdown to plain \TeX{}. This interface is used by the plain \TeX{}
-% implementation (see Section \vref{sec:teximplementation}) and will be of
+% implementation (see Section <#sec:teximplementation>) and will be of
% interest to the developers of other packages and Lua modules.
%
% The Lua interface is implemented by the `markdown` Lua module.
@@ -1562,12 +1593,12 @@ local M = {metadata = metadata}
% \par
% \begin{markdown}
%
-%### Conversion from Markdown to Plain \TeX{}
-% \label{sec:luaconversion}
+%### Conversion from Markdown to Plain \TeX{} {#luaconversion}
+%
% The Lua interface exposes the \luamdef{new}`(options)` method. This
% method creates converter functions that perform the conversion from markdown
% to plain \TeX{} according to the table `options` that contains options
-% recognized by the Lua interface. (see Section \vref{sec:luaoptions}). The
+% recognized by the Lua interface. (see Section <#sec:luaoptions>). The
% `options` parameter is optional; when unspecified, the behaviour will be
% the same as if `options` were an empty table.
%
@@ -1739,8 +1770,8 @@ pdftex document.tex
% \fi
% \begin{markdown}
%
-%### Options
-% \label{sec:luaoptions}
+%### Options {#luaoptions}
+%
% The Lua interface recognizes the following options. When unspecified, the
% value of a key is taken from the \luamdef{defaultOptions} table.
%
@@ -3597,7 +3628,7 @@ defaultOptions.contentBlocks = false
%
: The filename of the JSON file that maps filename extensions to
programming language names in the iA\,Writer content blocks.
-% See Section \vref{sec:texcontentblockrenderers} for more information.
+% See Section <#sec:texcontentblockrenderers> for more information.
% \end{markdown}
% \iffalse
@@ -4733,11 +4764,11 @@ defaultOptions.headerAttributes = false
%
: true
- : Enable the recognition of HTML tags, block elements, comments, HTML
- instructions, and entities in the input. Tags, block elements (along
- with contents), HTML instructions, and comments will be ignored and
- HTML entities will be replaced with the corresponding Unicode
- codepoints.
+ : Enable the recognition of inline HTML tags, block HTML elements,
+ HTML comments, HTML instructions, and entities in the input. Inline
+ HTML tags, block HTML elements and HTML comments will be rendered, HTML
+ instructions will be ignored, and HTML entities will be replaced with
+ the corresponding Unicode codepoints.
: false
@@ -5533,6 +5564,85 @@ defaultOptions.preserveTabs = false
%</lua,lua-cli>
%<*manual-options>
+#### Option `relativeReferences`
+
+`relativeReferences` (default value: `false`)
+
+% \fi
+% \begin{markdown}
+%
+% \Optitem[false]{relativeReferences}{\opt{true}, \opt{false}}
+%
+: true
+
+ : Enable [relative references][1] in autolinks:
+
+ ``` md
+ I conclude in Section <#conclusion>.
+
+ Conclusion {#conclusion}
+ ==========
+ In this paper, we have discovered that most
+ grandmas would rather eat dinner with their
+ grandchildren than get eaten. Begone, wolf!
+ ```
+
+: false
+
+ : Disable relative references in autolinks.
+
+ [1]: https://datatracker.ietf.org/doc/html/rfc3986#section-4.2
+
+% \end{markdown}
+% \iffalse
+
+##### \LaTeX{} Example {.unnumbered}
+
+Using a text editor, create a text document named `document.tex` with the
+following content:
+``` tex
+\documentclass{article}
+\usepackage[headerAttributes, relativeReferences]{markdown}
+\begin{document}
+\begin{markdown}
+
+I conclude in Section <#conclusion>.
+
+Conclusion {#conclusion}
+==========
+In this paper, we have discovered that most
+grandmas would rather eat dinner with their
+grandchildren than get eaten. Begone, wolf!
+
+\end{markdown}
+\end{document}
+```````
+Next, invoke LuaTeX twice from the terminal:
+``` sh
+lualatex document.tex
+lualatex document.tex
+``````
+A PDF document named `document.pdf` should be produced and contain the
+following text:
+
+> I conclude in Section 1.
+>
+> # 1. Conclusion
+>
+> In this paper, we have discovered that most grandmas would rather eat dinner
+> with their grandchildren than get eaten. Begone, wolf!
+
+%</manual-options>
+%<*lua,lua-cli>
+% \fi
+% \begin{macrocode}
+defaultOptions.relativeReferences = false
+% \end{macrocode}
+% \par
+% \iffalse
+%</lua,lua-cli>
+%<*manual-options>
+
#### Option `shiftHeadings`
`shiftHeadings` (default value: `0`)
@@ -5876,7 +5986,6 @@ defaultOptions.slice = "^ $"
%</lua,lua-cli>
%<*manual-options>
-
#### Option `smartEllipses`
`smartEllipses` (default value: `false`)
@@ -6860,13 +6969,13 @@ defaultOptions.underscores = true
% \par
% \begin{markdown}
%
-%### Command-Line Interface
-% \label{sec:lua-cli-interface}
+%### Command-Line Interface {#lua-cli-interface}
+%
% The high-level operation of the Markdown package involves the communication
% between several programming layers: the plain \TeX{} layer hands markdown
% documents to the Lua layer. Lua converts the documents to \TeX{}, and hands
% the converted documents back to plain \TeX{} layer for typesetting, see
-% Figure \vref{fig:sequence-diagram-tex-interface}.
+% Figure <#fig:sequence-diagram-tex-interface>.
%
% This procedure has the advantage of being fully automated. However, it also
% has several important disadvantages: The converted \TeX{} documents are
@@ -6878,7 +6987,7 @@ defaultOptions.underscores = true
% A solution to the above problems is to decouple the conversion from the
% typesetting. For this reason, a command-line Lua interface for converting a
% markdown document to \TeX{} is also provided, see
-% Figure \vref{fig:sequence-diagram-lua-cli}.
+% Figure <#fig:sequence-diagram-lua-cli>.
%
% \end{markdown}
% \begin{figure}
@@ -6968,7 +7077,7 @@ for i = 1, #arg do
% Unless the `-`{}`-` argument has been specified before, an argument
% containing the equals sign (`=`) is assumed to be an option specification in
% a \meta{key}`=`\meta{value} format. The available options are listed in
-% Section \vref{sec:luaoptions}.
+% Section <#sec:luaoptions>.
% \end{markdown}
% \begin{macrocode}
elseif arg[i]:match("=") then
@@ -7067,9 +7176,8 @@ end
% \par
% \begin{markdown}
%
-% Plain \TeX{} Interface
-%-----------------------
-% \label{sec:texinterface}
+% Plain \TeX{} Interface {#texinterface}
+%------------------------
%
% \iffalse
%</tex>
@@ -7126,7 +7234,7 @@ pdftex --shell-escape document.tex
%
% The plain \TeX{} interface provides macros for the typesetting of markdown
% input from within plain \TeX{}, for setting the Lua interface options (see
-% Section \vref{sec:luaoptions}) used during the conversion from markdown to
+% Section <#sec:luaoptions>) used during the conversion from markdown to
% plain \TeX{} and for changing the way markdown the tokens are rendered.
%
% \end{markdown}
@@ -7145,8 +7253,8 @@ pdftex --shell-escape document.tex
% \noindent It is expected that the special plain \TeX{} characters have the
% expected category codes, when \mref{input}ting the file.
%
-%### Typesetting Markdown
-% \label{sec:textypesetting}
+%### Typesetting Markdown {#textypesetting}
+%
% The interface exposes the \mdef{markdownBegin}, \mdef{markdownEnd}, and
% \mdef{markdownInput} macros.
%
@@ -7229,12 +7337,11 @@ pdftex --shell-escape document.tex
% \bye
% ```````
%
-%### Options
-% \label{sec:texoptions}
+%### Options {#texoptions}
%
% The plain \TeX{} options are represented by \TeX{} commands. Some of them map
% directly to the options recognized by the Lua interface (see
-% Section \vref{sec:luaoptions}), while some of them are specific to the plain
+% Section <#sec:luaoptions>), while some of them are specific to the plain
% \TeX{} interface.
%
% \end{markdown}
@@ -7499,7 +7606,7 @@ bug](https://github.com/witiko/markdown/issues).
%
%#### Lua Interface Options
% The following macros map directly to the options recognized by the Lua
-% interface (see Section \vref{sec:luaoptions}) and are not processed by the
+% interface (see Section <#sec:luaoptions>) and are not processed by the
% plain \TeX{} implementation, only passed along to Lua. They are undefined, which
% makes them fall back to the default values provided by the Lua interface.
%
@@ -7530,6 +7637,7 @@ bug](https://github.com/witiko/markdown/issues).
\let\markdownOptionJekyllData\undefined
\let\markdownOptionPipeTables\undefined
\let\markdownOptionPreserveTabs\undefined
+\let\markdownOptionRelativeReferences\undefined
\let\markdownOptionShiftHeadings\undefined
\let\markdownOptionSlice\undefined
\let\markdownOptionSmartEllipses\undefined
@@ -7589,7 +7697,7 @@ A PDF document named `document.pdf` should be produced and contain the text
%
% The \mdef{markdownOptionStripPercentSigns} macro controls whether a percent
% sign (`%`) at the beginning of a line will be discarded when buffering
-% Markdown input (see Section \vref{sec:buffering}) or not. Notably, this
+% Markdown input (see Section <#sec:buffering>) or not. Notably, this
% enables the use of markdown when writing \TeX{} package documentation using
% the \pkg{Doc} \LaTeX{}~package~[@mittelbach17] or similar. The recognized
% values of the macro are `true` (discard) and `false` (retain). It defaults
@@ -7613,9 +7721,8 @@ user to specify how every markdown token should be processed and rendered.
% \fi
% \begin{markdown}
-### Token Renderers
+### Token Renderers {#texrenderersuser}
-% \label{sec:texrenderersuser}
% \end{markdown}
% \iffalse
@@ -7627,10 +7734,10 @@ In this section, I will describe the individual token renderers.
%
% The following \TeX{} macros may occur inside the output of the
% converter functions exposed by the Lua interface (see Section
-% \vref{sec:luaconversion}) and represent the parsed markdown tokens. These
+% <#sec:luaconversion>) and represent the parsed markdown tokens. These
% macros are intended to be redefined by the user who is typesetting a
% document. By default, they point to the corresponding prototypes (see Section
-% \vref{sec:texrendererprototypes}).
+% <#sec:texrendererprototypes>).
#### Tickbox Renderers
The macros named \mdef{markdownRendererTickedBox},
@@ -7737,27 +7844,6 @@ into account.
##### \LaTeX{} Example {.unnumbered}
-\def\markdownRendererDocumentEnd{%
- \endgroup
- This is the end of a document.\par
-}
-\def\markdownRendererDocumentBegin{%
- This is the beginning of a document.\par
- \begingroup
- \def\markdownRendererDocumentBegin{%
- This is the beginning of a nested document.\par
- \begingroup
- \def\markdownRendererDocumentBegin{%
- This is the beginning of a nested document.\par
- \begingroup
- }%
- \def\markdownRendererDocumentEnd{%
- \endgroup
- This is the end of a nested document.\par
- }%
- }%
-}
-
Using a text editor, create a text document named `nested.md` with the
following content:
``` md
@@ -8785,8 +8871,8 @@ that the \TeX{} engine has shell access.
%
% \begin{markdown}
-#### Content Block Renderers
-\label{sec:texcontentblockrenderers}
+#### Content Block Rendere {#texcontentblockrenderers}
+
The \mdef{markdownRendererContentBlock} macro represents an iA\,Writer content
block. It receives four arguments: the local file or online image filename
extension cast to the lower case, the fully escaped \acro{uri} that can be
@@ -11863,12 +11949,17 @@ following text:
%
% \begin{markdown}
-#### Inline HTML Comment Renderer
+#### HTML Comment Renderers
+
The \mdef{markdownRendererInlineHtmlComment} macro represents the contents of an
inline \acro{HTML} comment. This macro will only be produced, when the
\Opt{html} option is enabled. The macro receives a single argument that
corresponds to the contents of the \acro{HTML} comment.
+The \mdef{markdownRendererBlockHtmlCommentBegin} and
+\mdef{markdownRendererBlockHtmlCommentEnd} macros represent the beginning
+and the end of a block \acro{HTML} comment. The macros receive no arguments.
+
% \end{markdown}
%
% \iffalse
@@ -11884,13 +11975,23 @@ following content:
\markdownSetup{
renderers = {
inlineHtmlComment = {\marginnote{#1}},
+ blockHtmlCommentBegin = {\begin{quote}},
+ blockHtmlCommentEnd = {\end{quote}},
},
}
\begin{document}
\begin{markdown}
-A useful use of HTML comments are side notes.
+A useful use of inline HTML comments are side notes.
<!-- Side notes are displayed in the horizontal margins next to the relevant
-passages, which makes them easier for the reader to find than footnotes. -->
+passages, which makes them *easier for the reader to find* than footnotes. -->
+
+We can render block HTML comments as blockquotes:
+
+<!--
+Here is a block HTML comment with a code example that a programmer might understand:
+
+ foo = bar + baz - 42
+-->
\end{markdown}
\end{document}
```````
@@ -11903,11 +12004,18 @@ A PDF document named `document.pdf` should be produced and contain the
following body text:
> A useful use of HTML comments are side notes.
+>
+> We can render block HTML comments as blockquotes:
+>
+> > Here is a block HTML comment with a code example that a programmer might
+> > understand:
+> >
+> > foo = bar + baz - 42
The horizontal margins should contain the following text:
> Side notes are displayed in the horizontal margins next to the relevant
-> passages, which makes them easier for the reader to find than footnotes.
+> passages, which makes them *easier for the reader to find* than footnotes.
%</manual-tokens>
%<*tex>
@@ -11916,6 +12024,268 @@ The horizontal margins should contain the following text:
% \begin{macrocode}
\def\markdownRendererInlineHtmlComment{%
\markdownRendererInlineHtmlCommentPrototype}%
+\def\markdownRendererBlockHtmlCommentBegin{%
+ \markdownRendererBlockHtmlCommentBeginPrototype}%
+\def\markdownRendererBlockHtmlCommentEnd{%
+ \markdownRendererBlockHtmlCommentEndPrototype}%
+% \end{macrocode}
+% \par
+%
+% \iffalse
+%</tex>
+%<*manual-tokens>
+% \fi
+%
+% \begin{markdown}
+
+#### HTML Tag and Element Renderers
+
+The \mdef{markdownRendererInlineHtmlTag} macro represents an opening, closing,
+or empty inline \acro{HTML} tag. This macro will only be produced, when the
+\Opt{html} option is enabled. The macro receives a single argument that
+corresponds to the contents of the \acro{HTML} tag.
+
+The \mdef{markdownRendererInputBlockHtmlElement} macro represents a block
+\acro{HTML} element. This macro will only be produced, when the \Opt{html}
+option is enabled. The macro receives a single argument that filename of a file
+containing the contents of the \acro{HTML} element.
+
+% \end{markdown}
+%
+% \iffalse
+
+##### \LaTeX{} Example {.unnumbered}
+
+Using a text editor, create a text document named `document.tex` with the
+following content:
+``` tex
+\documentclass{article}
+\usepackage[html]{markdown}
+\usepackage{marginnote}
+\usepackage{verbatim}
+\markdownSetup{
+ renderers = {
+ inlineHtmlTag = {\textbf{#1}},
+ inputBlockHtmlElement = {\verbatiminput{#1}},
+ },
+}
+\begin{document}
+\begin{markdown}
+<b>_Hello,_ world!</b><br/>
+
+<div>_Hello,_ world!</div>
+\end{markdown}
+\end{document}
+```````
+Next, invoke LuaTeX from the terminal:
+``` sh
+lualatex document.tex
+lualatex document.tex
+``````
+A PDF document named `document.pdf` should be produced and contain the
+following body text:
+
+> **<b>**_Hello,_ world!**</b><br/>**
+>
+> <div>_Hello,_ world!</div>
+
+%</manual-tokens>
+%<*tex>
+% \fi
+%
+% \begin{macrocode}
+\def\markdownRendererInlineHtmlTag{%
+ \markdownRendererInlineHtmlTagPrototype}%
+\def\markdownRendererInputBlockHtmlElement{%
+ \markdownRendererInputBlockHtmlElementPrototype}%
+% \end{macrocode}
+% \par
+%
+% \iffalse
+%</tex>
+%<*manual-tokens>
+% \fi
+%
+% \begin{markdown}
+
+#### Attribute Renderers
+The following macros are only produced, when the \Opt{headerAttributes} option
+is enabled.
+
+\mdef{markdownRendererAttributeIdentifier} represents the \meta{identifier} of
+a markdown element (`id="`\meta{identifier}`"` in HTML and `#`\meta{identifier}
+in Markdown's \Opt{headerAttributes} syntax extension). The macro receives a
+single attribute that corresponds to the \meta{identifier}.
+
+\mdef{markdownRendererAttributeClassName} represents the \meta{class name} of a
+markdown element (`class="`\meta{class name} ...`"` in HTML and
+`.`\meta{class name} in Markdown's \Opt{headerAttributes} syntax extension).
+The macro receives a single attribute that corresponds to the \meta{class
+name}.
+
+\mdef{markdownRendererAttributeKeyValue} represents a HTML attribute in the form
+\meta{key}`=`\meta{value} that is neither an identifier nor a class name.
+The macro receives two attributes that correspond to the \meta{key} and the
+\meta{value}, respectively.
+
+% \end{markdown}
+%
+% \iffalse
+
+##### \LaTeX{} Example {.unnumbered}
+
+Using a text editor, create a text document named `document.tex` with the
+following content:
+``` tex
+\documentclass{article}
+\usepackage[headerAttributes, underscores=false]{markdown}
+\markdownSetup{
+ renderers = {
+ attributeIdentifier = {%
+ \par
+ \emph{(Identifier: #1)}
+ \par
+ },
+ attributeClassName = {%
+ \par
+ \emph{(Class name: #1)}
+ \par
+ },
+ attributeKeyValue = {%
+ \par
+ \emph{(Key: #1, Value: #2)}
+ \par
+ },
+ },
+}
+\begin{document}
+\begin{markdown}
+
+# First top-level heading {jane=doe}
+
+## A subheading {#identifier}
+
+# Second top-level heading {.class_name}
+
+\end{markdown}
+\end{document}
+```````
+Next, invoke LuaTeX from the terminal:
+``` sh
+lualatex document.tex
+``````
+A PDF document named `document.pdf` should be produced and contain the
+following text:
+
+> # First top-level heading
+>
+> *(Key: Jane, Value: Doe)*
+>
+> ## A subheading
+>
+> *(Identifier: identifier)*
+>
+> # Second top-level heading
+>
+> *(Class name: class\_name)*
+
+%</manual-tokens>
+%<*tex>
+% \fi
+%
+% \begin{macrocode}
+\def\markdownRendererAttributeIdentifier{%
+ \markdownRendererAttributeIdentifierPrototype}%
+\def\markdownRendererAttributeClassName{%
+ \markdownRendererAttributeClassNamePrototype}%
+\def\markdownRendererAttributeKeyValue{%
+ \markdownRendererAttributeKeyValuePrototype}%
+% \end{macrocode}
+% \par
+%
+% \iffalse
+%</tex>
+%<*manual-tokens>
+% \fi
+%
+% \begin{markdown}
+
+#### Header Attribute Context Renderers
+The following macros are only produced, when the \Opt{headerAttributes} option
+is enabled.
+
+The \mdef{markdownRendererHeaderAttributeContextBegin} and
+\mdef{markdownRendererHeaderAttributeContextEnd} macros represent the beginning
+and the end of a section in which the attributes of a heading apply. The macros
+receive no arguments.
+
+% \end{markdown}
+%
+% \iffalse
+
+##### \LaTeX{} Example {.unnumbered}
+
+Using a text editor, create a text document named `document.tex` with the
+following content:
+``` tex
+\documentclass{article}
+\usepackage[headerAttributes]{markdown}
+\markdownSetup{
+ renderers = {
+ headerAttributeContextBegin = {%
+ \par
+ \emph{(The beginning of a header attribute context)}
+ \par
+ },
+ headerAttributeContextBegin = {%
+ \par
+ \emph{(The end of a header attribute context)}
+ \par
+ },
+ },
+}
+\begin{document}
+\begin{markdown}
+
+# First top-level heading
+
+## A subheading {#identifier}
+
+# Second top-level heading {.class_name}
+
+\end{markdown}
+\end{document}
+```````
+Next, invoke LuaTeX from the terminal:
+``` sh
+lualatex document.tex
+``````
+A PDF document named `document.pdf` should be produced and contain the
+following text:
+
+> # First top-level heading
+>
+> *(The beginning of a header attribute context)*
+>
+> ## A subheading
+>
+> *(The end of a header attribute context)*
+>
+> *(The beginning of a header attribute context)*
+>
+> # Second top-level heading
+>
+> *(The end of a header attribute context)*
+
+%</manual-tokens>
+%<*tex>
+% \fi
+%
+% \begin{macrocode}
+\def\markdownRendererHeaderAttributeContextBegin{%
+ \markdownRendererHeaderAttributeContextBeginPrototype}%
+\def\markdownRendererHeaderAttributeContextEnd{%
+ \markdownRendererHeaderAttributeContextEndPrototype}%
% \end{macrocode}
% \par
%
@@ -11926,9 +12296,8 @@ The horizontal margins should contain the following text:
%
% \begin{markdown}
-### Token Renderer Prototypes
+### Token Renderer Prototypes {#texrendererprototypes}
-% \label{sec:texrendererprototypes}
%
% \end{markdown}
% \iffalse
@@ -12049,19 +12418,24 @@ following text:
% \begin{markdown}
%
% The following \TeX{} macros provide definitions for the token renderers (see
-% Section \vref{sec:texrenderersuser}) that have not been redefined by the
+% Section <#sec:texrenderersuser>) that have not been redefined by the
% user. These macros are intended to be redefined by macro package authors
% who wish to provide sensible default token renderers. They are also redefined
% by the \LaTeX{} and \Hologo{ConTeXt} implementations (see sections
-% \vref{sec:lateximplementation} and \vref{sec:contextimplementation}).
+% <#sec:lateximplementation> and <#sec:contextimplementation>).
%
% \end{markdown}
% \begin{macrocode}
+\def\markdownRendererAttributeIdentifierPrototype#1{}%
+\def\markdownRendererAttributeClassNamePrototype#1{}%
+\def\markdownRendererAttributeKeyValuePrototype#1#2{}%
\def\markdownRendererDocumentBeginPrototype{}%
\def\markdownRendererDocumentEndPrototype{}%
\def\markdownRendererInterblockSeparatorPrototype{}%
\def\markdownRendererLineBreakPrototype{}%
\def\markdownRendererEllipsisPrototype{}%
+\def\markdownRendererHeaderAttributeContextBeginPrototype{}%
+\def\markdownRendererHeaderAttributeContextEndPrototype{}%
\def\markdownRendererNbspPrototype{}%
\def\markdownRendererLeftBracePrototype{}%
\def\markdownRendererRightBracePrototype{}%
@@ -12129,6 +12503,10 @@ following text:
\def\markdownRendererTextCitePrototype#1{}%
\def\markdownRendererTablePrototype#1#2#3{}%
\def\markdownRendererInlineHtmlCommentPrototype#1{}%
+\def\markdownRendererBlockHtmlCommentBeginPrototype{\iffalse}%
+\def\markdownRendererBlockHtmlCommentEndPrototype{\fi}%
+\def\markdownRendererInlineHtmlTagPrototype#1{}%
+\def\markdownRendererInputBlockHtmlElementPrototype#1{}%
\def\markdownRendererTickedBoxPrototype{}%
\def\markdownRendererHalfTickedBoxPrototype{}%
\def\markdownRendererUntickedBoxPrototype{}%
@@ -12189,7 +12567,7 @@ following text:
% \begin{markdown}
% The macro is exposed in the interface, so that the user can create their own
% markdown environments. Due to the way the arguments are passed to Lua (see
-% Section \vref{sec:directlua}), the first argument may not contain the
+% Section <#sec:directlua>), the first argument may not contain the
% string `]]` (regardless of the category code of the bracket symbol (`]`)).
%
% The \mdef{markdownMode} macro specifies how the plain \TeX{} implementation
@@ -12233,9 +12611,8 @@ following text:
% \par
% \begin{markdown}
%
-% \LaTeX{} Interface
-%-------------------
-% \label{sec:latexinterface}
+% \LaTeX{} Interface {#latexinterface}
+%--------------------
%
% \end{markdown}
% \iffalse
@@ -12293,10 +12670,10 @@ pdflatex --shell-escape document.tex
%
% The \LaTeX{} interface provides \LaTeX{} environments for the typesetting of
% markdown input from within \LaTeX{}, facilities for setting Lua interface
-% options (see Section \vref{sec:luaoptions}) used during the conversion from
+% options (see Section <#sec:luaoptions>) used during the conversion from
% markdown to plain \TeX{}, and facilities for changing the way markdown tokens
% are rendered. The rest of the interface is inherited from the plain \TeX{}
-% interface (see Section \vref{sec:texinterface}).
+% interface (see Section <#sec:texinterface>).
%
% The \LaTeX{} interface is implemented by the `markdown.sty` file, which
% can be loaded from the \LaTeX{} document preamble as follows:
@@ -12306,10 +12683,10 @@ pdflatex --shell-escape document.tex
% \end{Verbatim}
% \begin{markdown}
% where \meta{options} are the \LaTeX{} interface options (see Section
-% \vref{sec:latexoptions}). Note that \meta{options} inside the \mref{usepackage}
+% <#sec:latexoptions>). Note that \meta{options} inside the \mref{usepackage}
% macro may not set the `markdownRenderers` (see Section
-% \vref{sec:latexrenderers}) and `markdownRendererPrototypes` (see Section
-% \vref{sec:latexrendererprototypes}) keys. This limitation is due to the way
+% <#sec:latexrenderers>) and `markdownRendererPrototypes` (see Section
+% <#sec:latexrendererprototypes>) keys. This limitation is due to the way
% \Hologo{LaTeX2e} parses package options.
%
% \end{markdown}
@@ -12323,7 +12700,7 @@ pdflatex --shell-escape document.tex
% The \envmref{markdown} and \envmref{markdown*} \LaTeX{} environments are used to
% typeset markdown document fragments. The starred version of the
% \envmref{markdown} environment accepts \LaTeX{} interface options (see
-% Section \vref{sec:latexoptions}) as its only argument. These options will
+% Section <#sec:latexoptions>) as its only argument. These options will
% only influence this markdown document fragment.
%
% \end{markdown}
@@ -12360,7 +12737,7 @@ pdflatex --shell-escape document.tex
% the filename of a markdown document and expands to the result of the
% conversion of the input markdown document to plain \TeX{}. Unlike the
% \mref{markdownInput} macro provided by the plain \TeX{} interface, this macro
-% also accepts \LaTeX{} interface options (see Section \vref{sec:latexoptions})
+% also accepts \LaTeX{} interface options (see Section <#sec:latexoptions>)
% as its optional argument. These options will only influnce this markdown
% document.
%
@@ -12376,25 +12753,24 @@ pdflatex --shell-escape document.tex
% \end{document}
% ```````
%
-%### Options
-% \label{sec:latexoptions}
+%### Options {#latexoptions}
%
% The \LaTeX{} options are represented by a comma-delimited list of
% \meta{key}`=`\meta{value} pairs. For boolean options, the `=`\meta{value}
% part is optional, and \meta{key} will be interpreted as \meta{key}`=true`
% if the `=`\meta{value} part has been omitted.
%
-% Except for the `plain` option described in Section \vref{sec:latexplain}, and
-% the \LaTeX{} themes described in Section \vref{sec:latexthemes}, and the
-% \LaTeX{} setup snippets described in Section \vref{sec:latexsetupsnippets},
+% Except for the `plain` option described in Section <#sec:latexplain>, and
+% the \LaTeX{} themes described in Section <#sec:latexthemes>, and the
+% \LaTeX{} setup snippets described in Section <#sec:latexsetupsnippets>,
% \LaTeX{} options map directly to the options recognized by the plain
-% \TeX{} interface (see Section \vref{sec:texoptions}) and to the markdown token
+% \TeX{} interface (see Section <#sec:texoptions>) and to the markdown token
% renderers and their prototypes recognized by the plain \TeX{} interface (see
-% Sections \vref{sec:texrenderersuser} and \vref{sec:texrendererprototypes}).
+% Sections <#sec:texrenderersuser> and <#sec:texrendererprototypes>).
%
% The \LaTeX{} options may be specified when loading the \LaTeX{} package, when
% using the \envmref{markdown*} \LaTeX{} environment or the \mref{markdownInput}
-% macro (see Section \vref{sec:latexinterface}), or via the \mdef{markdownSetup}
+% macro (see Section <#sec:latexinterface>), or via the \mdef{markdownSetup}
% macro. The \mref{markdownSetup} macro receives the options to set up as its only
% argument:
%
@@ -12428,8 +12804,8 @@ pdflatex --shell-escape document.tex
% \end{macrocode}
% \begin{markdown}
%
-% See Section \vref{sec:latexthemes} for information on interactions between
-% setup snippets and \LaTeX{} themes. See Section \vref{sec:latexsetupsnippets}
+% See Section <#sec:latexthemes> for information on interactions between
+% setup snippets and \LaTeX{} themes. See Section <#sec:latexsetupsnippets>
% for information about invoking the stored setup snippets.
%
% \end{markdown}
@@ -12470,16 +12846,16 @@ document:
% \par
% \begin{markdown}
-#### No default token renderer prototypes
-% \label{sec:latexplain}
+#### No default token renderer prototypes {#latexplain}
+
Default token renderer prototypes require \LaTeX{} packages that may clash with
other packages used in a document. Additionally, if we redefine token
renderers and renderer prototypes ourselves, the default definitions will bring
no benefit to us. Using the `plain` package option, we can keep the default
definitions from the plain \TeX{} implementation
-% (see Section \vref{sec:textokenrendererprototypes})
+% (see Section <#sec:textokenrendererprototypes>)
and prevent the soft \LaTeX{} prerequisites
-% in Section \vref{sec:latexprerequisites}
+% in Section <#sec:latexprerequisites>
from being loaded:
``` tex
@@ -12508,8 +12884,7 @@ from being loaded:
% \fi
% \begin{markdown}
-#### \LaTeX{} themes
-% \label{sec:latexthemes}
+#### \LaTeX{} themes {#latexthemes}
User-contributed \LaTeX{} themes for the Markdown package provide a
domain-specific interpretation of some Markdown tokens. Similarly to \LaTeX{}
@@ -12575,7 +12950,7 @@ would use the following code in the preamble of your document:
% \begin{macrocode}
\newif\ifmarkdownLaTeXLoaded
\markdownLaTeXLoadedfalse
-\AtEndOfPackage{\markdownLaTeXLoadedtrue}%
+\AtEndOfPackage{\markdownLaTeXLoadedtrue}
\define@key{markdownOptions}{theme}{%
\IfSubStr{#1}{/}{}{%
\markdownError
@@ -12586,23 +12961,11 @@ would use the following code in the preamble of your document:
markdowntheme\markdownLaTeXThemePackageName}%
\expandafter\markdownLaTeXThemeLoad\expandafter{%
\markdownLaTeXThemePackageName}{#1/}}%
-\newcommand\markdownLaTeXThemeName{}%
-\newcommand\markdownLaTeXThemeLoad[2]{%
- \ifmarkdownLaTeXLoaded
- \def\markdownLaTeXThemeName{#2}%
- \RequirePackage{#1}%
- \def\markdownLaTeXThemeName{}%
- \else
- \AtEndOfPackage{%
- \def\markdownLaTeXThemeName{#2}%
- \RequirePackage{#1}%
- \def\markdownLaTeXThemeName{}}%
- \fi}%
% \end{macrocode}
% \begin{markdown}
%
% The \LaTeX{} themes have a useful synergy with the setup snippets (see
-% Section \vref{sec:latexoptions}): To make it less likely that different
+% Section <#sec:latexoptions>): To make it less likely that different
% themes will define setup snippets with the same name, we will prepend
% \meta{theme name}`/` before the snippet name and use the result as the
% snippet name. For example, if the `witiko/dot` theme defines the `product`
@@ -12678,7 +13041,7 @@ Example themes provided with the Markdown package include:
% \end{document}
% ````````
% Typesetting the above document produces the output shown in
-% Figure \vref{fig:witiko/dot}.
+% Figure <#fig:witiko/dot>.
% ``` dot Various formats of mathemathical formulae \label{fig:witiko/dot}
% digraph tree {
% margin = 0;
@@ -12792,7 +13155,7 @@ conference article:
% \end{document}
% ```````
% Typesetting the above document produces the output shown in
-% Figure \vref{fig:witiko/graphicx/http}.
+% Figure <#fig:witiko/graphicx/http>.
% ![img](https://github.com/witiko/markdown/raw/main/markdown.png
% "The banner of the Markdown package \label{fig:witiko/graphicx/http}")
The theme requires the \pkg{catchfile} \LaTeX{} package and a Unix-like
@@ -12894,11 +13257,11 @@ following text, where the middot (`·`) denotes a non-breaking space:
% \par
% \begin{markdown}
%
-% Please, see Section \vref{sec:latexthemesimplementation} for implementation
+% Please, see Section <#sec:latexthemesimplementation> for implementation
% details of the example themes.
-#### \LaTeX{} setup snippets
-% \label{sec:latexsetupsnippets}
+#### \LaTeX{} setup snippets {#latexsetupsnippets}
+
% \end{markdown}
% \iffalse
@@ -12917,8 +13280,16 @@ various options locally.
% \fi
% \begin{macrocode}
\define@key{markdownOptions}{snippet}{%
- \expandafter\markdownSetup\expandafter{%
- \the\csname markdownLaTeXSetupSnippet#1\endcsname}}%
+ \@ifundefined
+ {markdownLaTeXSetupSnippet#1}{%
+ \markdownError
+ {Can't invoke setup snippet #1}%
+ {The setup snippet is undefined}%
+ }{%
+ \expandafter\markdownSetup\expandafter{%
+ \the\csname markdownLaTeXSetupSnippet#1\endcsname}%
+ }%
+ }%
% \end{macrocode}
% \iffalse
%</latex>
@@ -12958,7 +13329,7 @@ The following ordered list will be preceded by roman numerals:
%#### Plain \TeX{} Interface Options
% The following options map directly to the option macros exposed by the plain
-% \TeX{} interface (see Section \vref{sec:texoptions}).
+% \TeX{} interface (see Section <#sec:texoptions>).
%
% \markdownEnd
% \iffalse
@@ -13022,6 +13393,8 @@ The following ordered list will be preceded by roman numerals:
\def\markdownOptionPipeTables{#1}}%
\define@key{markdownOptions}{preserveTabs}[true]{%
\def\markdownOptionPreserveTabs{#1}}%
+\define@key{markdownOptions}{relativeReferences}[true]{%
+ \def\markdownOptionRelativeReferences{#1}}%
\define@key{markdownOptions}{smartEllipses}[true]{%
\def\markdownOptionSmartEllipses{#1}}%
\define@key{markdownOptions}{shiftHeadings}{%
@@ -13096,16 +13469,21 @@ The following ordered list will be preceded by roman numerals:
% }
% ```````
%
-%#### Plain \TeX{} Markdown Token Renderers
-% \label{sec:latexrenderers}
+%#### Plain \TeX{} Markdown Token Renderers {#latexrenderers}
%
% The \LaTeX{} interface recognizes an option with the `renderers` key,
% whose value must be a list of options that map directly to the markdown token
% renderer macros exposed by the plain \TeX{} interface (see Section
-% \vref{sec:texrenderersuser}).
+% <#sec:texrenderersuser>).
%
% \end{markdown}
% \begin{macrocode}
+\define@key{markdownRenderers}{attributeIdentifier}{%
+ \renewcommand\markdownRendererAttributeIdentifier[1]{#1}}%
+\define@key{markdownRenderers}{attributeClassName}{%
+ \renewcommand\markdownRendererAttributeClassName[1]{#1}}%
+\define@key{markdownRenderers}{attributeKeyValue}{%
+ \renewcommand\markdownRendererAttributeKeyValue[2]{#1}}%
\define@key{markdownRenderers}{documentBegin}{%
\renewcommand\markdownRendererDocumentBegin{#1}}%
\define@key{markdownRenderers}{documentEnd}{%
@@ -13116,6 +13494,10 @@ The following ordered list will be preceded by roman numerals:
\renewcommand\markdownRendererLineBreak{#1}}%
\define@key{markdownRenderers}{ellipsis}{%
\renewcommand\markdownRendererEllipsis{#1}}%
+\define@key{markdownRenderers}{headerAttributeContextBegin}{%
+ \renewcommand\markdownRendererHeaderAttributeContextBegin{#1}}%
+\define@key{markdownRenderers}{headerAttributeContextEnd}{%
+ \renewcommand\markdownRendererHeaderAttributeContextEnd{#1}}%
\define@key{markdownRenderers}{nbsp}{%
\renewcommand\markdownRendererNbsp{#1}}%
\define@key{markdownRenderers}{leftBrace}{%
@@ -13250,6 +13632,14 @@ The following ordered list will be preceded by roman numerals:
\renewcommand\markdownRendererTable[3]{#1}}%
\define@key{markdownRenderers}{inlineHtmlComment}{%
\renewcommand\markdownRendererInlineHtmlComment[1]{#1}}%
+\define@key{markdownRenderers}{blockHtmlCommentBegin}{%
+ \renewcommand\markdownRendererBlockHtmlCommentBegin{#1}}%
+\define@key{markdownRenderers}{blockHtmlCommentEnd}{%
+ \renewcommand\markdownRendererBlockHtmlCommentEnd{#1}}%
+\define@key{markdownRenderers}{inlineHtmlTag}{%
+ \renewcommand\markdownRendererInlineHtmlTag[1]{#1}}%
+\define@key{markdownRenderers}{inputBlockHtmlElement}{%
+ \renewcommand\markdownRendererInputBlockHtmlElement[1]{#1}}%
\define@key{markdownRenderers}{tickedBox}{%
\renewcommand\markdownRendererTickedBox{#1}}%
\define@key{markdownRenderers}{halfTickedBox}{%
@@ -13272,15 +13662,21 @@ The following ordered list will be preceded by roman numerals:
% }
% ```````
%
-%#### Plain \TeX{} Markdown Token Renderer Prototypes
-% \label{sec:latexrendererprototypes}
+%#### Plain \TeX{} Markdown Token Renderer Prototypes {#latexrendererprototypes}
+%
% The \LaTeX{} interface recognizes an option with the `rendererPrototypes`
% key, whose value must be a list of options that map directly to the markdown
% token renderer prototype macros exposed by the plain \TeX{} interface (see
-% Section \vref{sec:texrendererprototypes}).
+% Section <#sec:texrendererprototypes>).
%
% \end{markdown}
% \begin{macrocode}
+\define@key{markdownRendererPrototypes}{attributeIdentifier}{%
+ \renewcommand\markdownRendererAttributeIdentifierPrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{attributeClassName}{%
+ \renewcommand\markdownRendererAttributeClassNamePrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{attributeKeyValue}{%
+ \renewcommand\markdownRendererAttributeKeyValuePrototype[2]{#1}}%
\define@key{markdownRendererPrototypes}{documentBegin}{%
\renewcommand\markdownRendererDocumentBeginPrototype{#1}}%
\define@key{markdownRendererPrototypes}{documentEnd}{%
@@ -13291,6 +13687,10 @@ The following ordered list will be preceded by roman numerals:
\renewcommand\markdownRendererLineBreakPrototype{#1}}%
\define@key{markdownRendererPrototypes}{ellipsis}{%
\renewcommand\markdownRendererEllipsisPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{headerAttributeContextBegin}{%
+ \renewcommand\markdownRendererHeaderAttributeContextBeginPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{headerAttributeContextEnd}{%
+ \renewcommand\markdownRendererHeaderAttributeContextEndPrototype{#1}}%
\define@key{markdownRendererPrototypes}{nbsp}{%
\renewcommand\markdownRendererNbspPrototype{#1}}%
\define@key{markdownRendererPrototypes}{leftBrace}{%
@@ -13425,6 +13825,14 @@ The following ordered list will be preceded by roman numerals:
\renewcommand\markdownRendererTablePrototype[3]{#1}}%
\define@key{markdownRendererPrototypes}{inlineHtmlComment}{%
\renewcommand\markdownRendererInlineHtmlCommentPrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{blockHtmlCommentBegin}{%
+ \renewcommand\markdownRendererBlockHtmlCommentBeginPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{blockHtmlCommentEnd}{%
+ \renewcommand\markdownRendererBlockHtmlCommentEndPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{inlineHtmlTag}{%
+ \renewcommand\markdownRendererInlineHtmlTagPrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{inputBlockHtmlElement}{%
+ \renewcommand\markdownRendererInputBlockHtmlElementPrototype[1]{#1}}%
\define@key{markdownRendererPrototypes}{tickedBox}{%
\renewcommand\markdownRendererTickedBoxPrototype{#1}}%
\define@key{markdownRendererPrototypes}{halfTickedBox}{%
@@ -13451,9 +13859,9 @@ The following ordered list will be preceded by roman numerals:
%</latex>
%<*context>
% \fi
-% \Hologo{ConTeXt} Interface
-%---------------------------
-% \label{sec:contextinterface}
+%
+% \Hologo{ConTeXt} Interface {#contextinterface}
+%----------------------------
%
% \iffalse
%</context>
@@ -13509,7 +13917,7 @@ texexec --passon=--shell-escape document.tex
% The \Hologo{ConTeXt} interface provides a start-stop macro pair for the
% typesetting of markdown input from within \Hologo{ConTeXt}. The rest of the
% interface is inherited from the plain \TeX{} interface (see Section
-% \vref{sec:texinterface}).
+% <#sec:texinterface>).
%
% \end{markdown}
% \begin{macrocode}
@@ -13559,14 +13967,14 @@ texexec --passon=--shell-escape document.tex
% \stoptext
% ```````
%
-% Implementation
-%===============
-% \label{sec:implementation}
+% Implementation {#implementation}
+%================
+%
% This part of the documentation describes the implementation of the interfaces
-% exposed by the package (see Section \vref{sec:interfaces}) and is aimed at the
+% exposed by the package (see Section <#sec:interfaces>) and is aimed at the
% developers of the package, as well as the curious users.
%
-% Figure \vref{fig:block-diagram} shows the high-level structure of the Markdown
+% Figure <#fig:block-diagram> shows the high-level structure of the Markdown
% package: The translation from markdown to \TeX{} *token renderers* is
% performed by the Lua layer. The plain \TeX{} layer provides default
% definitions for the token renderers. The \LaTeX{} and \Hologo{ConTeXt} layers
@@ -13580,9 +13988,9 @@ texexec --passon=--shell-escape document.tex
% \fi
% \begin{markdown}
%
-% Lua Implementation
-%-------------------
-% \label{sec:luaimplementation}
+% Lua Implementation {#luaimplementation}
+%--------------------
+%
% The Lua implementation implements \luamdef{writer} and \luamdef{reader}
% objects that provide the conversion from markdown to plain \TeX{}.
%
@@ -13590,7 +13998,7 @@ texexec --passon=--shell-escape document.tex
% other formats, such as DocBook, Groff, or \acro{HTML}. These were stripped
% from the module and the remaining markdown reader and plain \TeX{} writer
% were hidden behind the converter functions exposed by the Lua interface (see
-% Section \vref{sec:luainterface}).
+% Section <#sec:luainterface>).
%
% \end{markdown}
% \begin{macrocode}
@@ -15993,8 +16401,8 @@ end
% \par
% \begin{markdown}
%
-%### Plain \TeX{} Writer
-% \label{sec:texwriter}
+%### Plain \TeX{} Writer {#texwriter}
+%
% This section documents the \luamref{writer} object, which implements the
% routines for producing the \TeX{} output. The object is an amalgamate of the
% generic, \TeX{}, \LaTeX{} writer objects that were located in the
@@ -16002,7 +16410,7 @@ end
% `lunamark/writer/latex.lua` files in the Lunamark Lua module.
%
% Although not specified in the Lua interface (see Section
-% \vref{sec:luainterface}), the \luamref{writer} object is exported, so that the
+% <#sec:luainterface>), the \luamref{writer} object is exported, so that the
% curious user could easily tinker with the methods of the objects produced by
% the \luamref{writer.new} method described below. The user should be aware,
% however, that the implementation may change in a future revision.
@@ -16016,7 +16424,7 @@ M.writer = {}
%
% The \luamdef{writer.new} method creates and returns a new \TeX{} writer
% object associated with the Lua interface options (see Section
-% \vref{sec:luaoptions}) `options`. When `options` are unspecified, it is
+% <#sec:luaoptions>) `options`. When `options` are unspecified, it is
% assumed that an empty table was passed to the method.
%
% The objects produced by the \luamref{writer.new} method expose instance methods
@@ -16511,10 +16919,10 @@ function M.writer.new(options)
local contents = util.intersperse(buffer,"\n")
if tight and options.tightLists then
return {"\\markdownRendererOlBeginTight\n",contents,
- "\n\\markdownRendererOlEndTight "}
+ "\n\\markdownRendererOlEndTight "}
else
return {"\\markdownRendererOlBegin\n",contents,
- "\n\\markdownRendererOlEnd "}
+ "\n\\markdownRendererOlEnd "}
end
end
% \end{macrocode}
@@ -16534,6 +16942,50 @@ function M.writer.new(options)
% \par
% \begin{markdown}
%
+% Define \luamdef{writer->block_html_comment} as a function that will
+% transform the contents of a block \acro{HTML} comment, to the output
+% format, where `contents` are the contents of the \acro{HTML} comment.
+%
+% \end{markdown}
+% \begin{macrocode}
+ function self.block_html_comment(contents)
+ if not self.is_writing then return "" end
+ return {"\\markdownRendererBlockHtmlCommentBegin\n",contents,
+ "\n\\markdownRendererBlockHtmlCommentEnd "}
+ end
+% \end{macrocode}
+% \par
+% \begin{markdown}
+%
+% Define \luamdef{writer->inline_html_tag} as a function that will
+% transform the contents of an opening, closing, or empty inline \acro{HTML}
+% tag to the output format, where `contents` are the contents of the
+% \acro{HTML} tag.
+%
+% \end{markdown}
+% \begin{macrocode}
+ function self.inline_html_tag(contents)
+ return {"\\markdownRendererInlineHtmlTag{",self.string(contents),"}"}
+ end
+% \end{macrocode}
+% \par
+% \begin{markdown}
+%
+% Define \luamdef{writer->block_html_element} as a function that will
+% transform the contents of a block \acro{HTML} element to the output format,
+% where `s` are the contents of the \acro{HTML} element.
+%
+% \end{markdown}
+% \begin{macrocode}
+ function self.block_html_element(s)
+ if not self.is_writing then return "" end
+ local name = util.cache(options.cacheDir, s, nil, nil, ".verbatim")
+ return {"\\markdownRendererInputBlockHtmlElement{",name,"}"}
+ end
+% \end{macrocode}
+% \par
+% \begin{markdown}
+%
% Define \luamdef{writer->definitionlist} as a function that will transform an
% input definition list to the output format, where `items` is an array of
% tables, each of the form `{ term = t, definitions = defs }`, where `t`
@@ -16663,8 +17115,23 @@ function M.writer.new(options)
% \end{markdown}
% \begin{macrocode}
function self.document(d)
- return {"\\markdownRendererDocumentBegin\n", d,
- "\\markdownRendererDocumentEnd"}
+ local active_attributes = self.active_attributes
+ local buf = {"\\markdownRendererDocumentBegin\n", d}
+
+ -- pop attributes for sections that have ended
+ if options.headerAttributes and self.is_writing then
+ while #active_attributes > 0 do
+ local attributes = active_attributes[#active_attributes]
+ if #attributes > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
+ table.remove(active_attributes, #active_attributes)
+ end
+ end
+
+ table.insert(buf, "\\markdownRendererDocumentEnd")
+
+ return buf
end
% \end{macrocode}
% \par
@@ -16765,13 +17232,13 @@ function M.writer.new(options)
% \par
% \begin{markdown}
%
-% Define \luamdef{writer->active\_headings} as a stack of identifiers
+% Define \luamdef{writer->active\_attributes} as a stack of attributes
% of the headings that are currently active. The
% \luamref{writer->active\_headings} member variable is mutable.
%
% \end{markdown}
% \begin{macrocode}
- self.active_headings = {}
+ self.active_attributes = {}
% \end{macrocode}
% \par
% \begin{markdown}
@@ -16782,50 +17249,99 @@ function M.writer.new(options)
%
% \end{markdown}
% \begin{macrocode}
- function self.heading(s,level,attributes)
- local active_headings = self.active_headings
+ function self.heading(s, level, attributes)
+ attributes = attributes or {}
+ for i = 1, #attributes do
+ attributes[attributes[i]] = true
+ end
+
+ local active_attributes = self.active_attributes
local slice_begin_type = self.slice_begin:sub(1, 1)
local slice_begin_identifier = self.slice_begin:sub(2) or ""
local slice_end_type = self.slice_end:sub(1, 1)
local slice_end_identifier = self.slice_end:sub(2) or ""
- while #active_headings < level do
- -- push empty identifiers for implied sections
- table.insert(active_headings, {})
+ local buf = {}
+
+ -- push empty attributes for implied sections
+ while #active_attributes < level-1 do
+ table.insert(active_attributes, {})
end
- while #active_headings >= level do
- -- pop identifiers for sections that have ended
- local active_identifiers = active_headings[#active_headings]
- if active_identifiers[slice_begin_identifier] ~= nil
+ -- pop attributes for sections that have ended
+ while #active_attributes >= level do
+ local active_identifiers = active_attributes[#active_attributes]
+ -- tear down all active attributes at slice end
+ if active_identifiers["#" .. slice_end_identifier] ~= nil
+ and slice_end_type == "$" then
+ for header_level = #active_attributes, 1, -1 do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
+ end
+ self.is_writing = false
+ end
+ table.remove(active_attributes, #active_attributes)
+ if self.is_writing and options.headerAttributes and #active_identifiers > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
+ -- apply all active attributes at slice beginning
+ if active_identifiers["#" .. slice_begin_identifier] ~= nil
and slice_begin_type == "$" then
+ for header_level = 1, #active_attributes do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextBegin")
+ end
+ end
self.is_writing = true
end
- if active_identifiers[slice_end_identifier] ~= nil
- and slice_end_type == "$" then
- self.is_writing = false
+ end
+
+ -- tear down all active attributes at slice end
+ if attributes["#" .. slice_end_identifier] ~= nil
+ and slice_end_type == "^" then
+ for header_level = #active_attributes, 1, -1 do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
end
- table.remove(active_headings, #active_headings)
+ self.is_writing = false
end
- -- push identifiers for the new section
- attributes = attributes or {}
- local identifiers = {}
- for index = 1, #attributes do
- attribute = attributes[index]
- identifiers[attribute:sub(2)] = true
+ -- push attributes for the new section
+ table.insert(active_attributes, attributes)
+ if self.is_writing and options.headerAttributes and #attributes > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextBegin")
end
- if identifiers[slice_begin_identifier] ~= nil
+
+ -- apply all active attributes at slice beginning
+ if attributes["#" .. slice_begin_identifier] ~= nil
and slice_begin_type == "^" then
+ for header_level = 1, #active_attributes do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextBegin")
+ end
+ end
self.is_writing = true
end
- if identifiers[slice_end_identifier] ~= nil
- and slice_end_type == "^" then
- self.is_writing = false
- end
- table.insert(active_headings, identifiers)
- if not self.is_writing then return "" end
+ if self.is_writing then
+ table.sort(attributes)
+ local key, value
+ for i = 1, #attributes do
+ if attributes[i]:sub(1, 1) == "#" then
+ table.insert(buf, {"\\markdownRendererAttributeIdentifier{",
+ attributes[i]:sub(2), "}"})
+ elseif attributes[i]:sub(1, 1) == "." then
+ table.insert(buf, {"\\markdownRendererAttributeClassName{",
+ attributes[i]:sub(2), "}"})
+ else
+ key, value = attributes[i]:match("(%w+)=(%w+)")
+ table.insert(buf, {"\\markdownRendererAttributeKeyValue{",
+ key, "}{", value, "}"})
+ end
+ end
+ end
local cmd
level = level + options.shiftHeadings
@@ -16844,7 +17360,11 @@ function M.writer.new(options)
else
cmd = ""
end
- return {cmd,"{",s,"}"}
+ if self.is_writing then
+ table.insert(buf, {cmd, "{", s, "}"})
+ end
+
+ return buf
end
% \end{macrocode}
% \par
@@ -16900,7 +17420,7 @@ function M.writer.new(options)
function self.get_state()
return {
is_writing=self.is_writing,
- active_headings={table.unpack(self.active_headings)},
+ active_attributes={table.unpack(self.active_attributes)},
}
end
% \end{macrocode}
@@ -17082,7 +17602,7 @@ parsers.nonemptyline = parsers.line - parsers.blankline
%
% The \luamdef{parsers.commented_line}`^1` parser recognizes the regular
% language of \TeX{} comments, see an equivalent finite automaton in Figure
-% \vref{fig:commented_line}.
+% <#fig:commented_line>.
%
% \end{markdown}
% \begin{macrocode}
@@ -17140,12 +17660,12 @@ parsers.css_identifier = (parsers.hash + parsers.period)
* (parsers.css_identifier_char
- parsers.digit)
* parsers.css_identifier_char^0))
-parsers.attribute_name_char = parsers.any - parsers.space
+parsers.attribute_key_char = parsers.any - parsers.space
- parsers.squote - parsers.dquote
- parsers.more - parsers.slash
- parsers.equal
-parsers.attribute_value_char = parsers.any - parsers.dquote
- - parsers.more
+parsers.attribute_value_char = parsers.any - parsers.space
+ - parsers.dquote - parsers.more
-- block followed by 0 or more optionally
-- indented blocks with first line indented.
@@ -17667,11 +18187,6 @@ end
parsers.in_matched_block_tags = parsers.less
* Cmt(#parsers.openelt_block, parse_matched_tags)
-parsers.displayhtml = parsers.htmlcomment / ""
- + parsers.emptyelt_block
- + parsers.openelt_exact("hr")
- + parsers.in_matched_block_tags
- + parsers.htmlinstruction
% \end{macrocode}
% \par
% \begin{markdown}
@@ -17786,7 +18301,7 @@ parsers.dlchunk = Cs(parsers.line * (parsers.indentedline - parsers.blankline)^0
% \end{markdown}
% \begin{macrocode}
parsers.heading_attribute = C(parsers.css_identifier)
- + C((parsers.attribute_name_char
+ + C((parsers.attribute_key_char
- parsers.rbrace)^1
* parsers.equal
* (parsers.attribute_value_char
@@ -17811,22 +18326,22 @@ end
% \par
% \begin{markdown}
%
-%### Markdown Reader
-% \label{sec:markdownreader}
+%### Markdown Reader {#markdownreader}
+%
% This section documents the \luamref{reader} object, which implements the
% routines for parsing the markdown input. The object corresponds to the
% markdown reader object that was located in the
% `lunamark/reader/markdown.lua` file in the Lunamark Lua module.
%
% Although not specified in the Lua interface (see Section
-% \vref{sec:luainterface}), the \luamref{reader} object is exported, so that the
+% <#sec:luainterface>), the \luamref{reader} object is exported, so that the
% curious user could easily tinker with the methods of the objects produced by
% the \luamref{reader.new} method described below. The user should be aware,
% however, that the implementation may change in a future revision.
%
% The \luamdef{reader.new} method creates and returns a new \TeX{} reader
% object associated with the Lua interface options (see Section
-% \vref{sec:luaoptions}) `options` and with a writer object `writer`. When
+% <#sec:luaoptions>) `options` and with a writer object `writer`. When
% `options` are unspecified, it is assumed that an empty table was passed to
% the method.
%
@@ -18349,6 +18864,14 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
"mailto:"..email)
end
+ larsers.AutoLinkRelativeReference
+ = parsers.less
+ * C(parsers.urlchar^1)
+ * parsers.more
+ / function(url)
+ return writer.link(writer.escape(url), url)
+ end
+
larsers.DirectLink = (parsers.tag / parse_inlines_no_link) -- no links inside links
* parsers.spnl
* parsers.lparent
@@ -18405,12 +18928,12 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
larsers.EscapedChar = parsers.backslash * C(parsers.escapable) / writer.string
- larsers.InlineHtml = parsers.emptyelt_any
+ larsers.InlineHtml = parsers.emptyelt_any / writer.inline_html_tag
+ (parsers.htmlcomment / parse_inlines_no_html)
/ writer.inline_html_comment
+ parsers.htmlinstruction
- + parsers.openelt_any
- + parsers.closeelt_any
+ + parsers.openelt_any / writer.inline_html_tag
+ + parsers.closeelt_any / writer.inline_html_tag
larsers.HtmlEntity = parsers.hexentity / entities.hex_entity / writer.string
+ parsers.decentity / entities.dec_entity / writer.string
@@ -18428,7 +18951,12 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
* parsers.contentblock_tail
/ writer.contentblock
- larsers.DisplayHtml = parsers.displayhtml
+ larsers.DisplayHtml = (parsers.htmlcomment / parse_blocks)
+ / writer.block_html_comment
+ + parsers.emptyelt_block / writer.block_html_element
+ + parsers.openelt_exact("hr") / writer.block_html_element
+ + parsers.in_matched_block_tags / writer.block_html_element
+ + parsers.htmlinstruction
larsers.Verbatim = Cs( (parsers.blanklines
* ((parsers.indentedline - parsers.blankline))^1)^1
@@ -18724,6 +19252,7 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
+ V("Code")
+ V("AutoLinkUrl")
+ V("AutoLinkEmail")
+ + V("AutoLinkRelativeReference")
+ V("InlineHtml")
+ V("HtmlEntity")
+ V("EscapedChar")
@@ -18744,6 +19273,7 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
+ V("Code")
+ V("AutoLinkUrl")
+ V("AutoLinkEmail")
+ + V("AutoLinkRelativeReference")
+ V("InlineHtml")
+ V("HtmlEntity")
+ V("EscapedChar")
@@ -18765,6 +19295,8 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
Code = larsers.Code,
AutoLinkUrl = larsers.AutoLinkUrl,
AutoLinkEmail = larsers.AutoLinkEmail,
+ AutoLinkRelativeReference
+ = larsers.AutoLinkRelativeReference,
InlineHtml = larsers.InlineHtml,
HtmlEntity = larsers.HtmlEntity,
EscapedChar = larsers.EscapedChar,
@@ -18822,6 +19354,10 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
syntax.Smart = parsers.fail
end
+ if not options.relativeReferences then
+ syntax.AutoLinkRelativeReference = parsers.fail
+ end
+
local blocks_toplevel_t = util.table_copy(syntax)
blocks_toplevel_t.Paragraph = larsers.ToplevelParagraph
larsers.blocks_toplevel = Ct(blocks_toplevel_t)
@@ -18868,7 +19404,7 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
% \begin{markdown}
% When determining the name of the cache file, create salt for the hashing
% function out of the package version and the passed options recognized by the
-% Lua interface (see Section \vref{sec:luaoptions}). The \Opt{cacheDir} option
+% Lua interface (see Section <#sec:luaoptions>). The \Opt{cacheDir} option
% is disregarded.
% \end{markdown}
% \begin{macrocode}
@@ -18936,7 +19472,7 @@ end
%### Conversion from Markdown to Plain \TeX{}
% The \luamref{new} method returns the \luamref{reader->convert} function of a reader
% object associated with the Lua interface options (see Section
-% \vref{sec:luaoptions}) `options` and with a writer object associated with
+% <#sec:luaoptions>) `options` and with a writer object associated with
% `options`.
%
% \end{markdown}
@@ -18956,10 +19492,10 @@ return M
% \par
% \begin{markdown}
%
-%### Command-Line Implementation
-% \label{sec:lua-cli-implementation}
+%### Command-Line Implementation {#lua-cli-implementation}
+%
% The command-line implementation provides the actual conversion routine for
-% the command-line interface described in Section~\vref{sec:lua-cli-interface}.
+% the command-line interface described in Section <#sec:lua-cli-interface>.
%
% \end{markdown}
% \begin{macrocode}
@@ -19024,16 +19560,15 @@ end
% \par
% \begin{markdown}
%
-% Plain \TeX{} Implementation
-%----------------------------
-% \label{sec:teximplementation}
+% Plain \TeX{} Implementation {#teximplementation}
+%-----------------------------
+%
% The plain \TeX{} implementation provides macros for the interfacing between
% \TeX{} and Lua and for the buffering of input text. These macros are then
% used to implement the macros for the conversion from markdown to plain \TeX{}
-% exposed by the plain \TeX{} interface (see Section \vref{sec:texinterface}).
+% exposed by the plain \TeX{} interface (see Section <#sec:texinterface>).
%
-%### Logging Facilities
-% \label{sec:texinterfacelogging}
+%### Logging Facilities {#texinterfacelogging}
%
% \end{markdown}
% \begin{macrocode}
@@ -19071,8 +19606,8 @@ end
% \par
% \begin{markdown}
%
-%### Token Renderer Prototypes
-% \label{sec:textokenrendererprototypes}
+%### Token Renderer Prototypes {#textokenrendererprototypes}
+%
% The following definitions should be considered placeholder.
%
% \end{markdown}
@@ -19149,8 +19684,8 @@ end
%
%### Lua Snippets
% The \mdef{markdownLuaOptions} macro expands to a Lua table that
-% contains the plain \TeX{} options (see Section \vref{sec:texoptions}) in a
-% format recognized by Lua (see Section \vref{sec:luaoptions}).
+% contains the plain \TeX{} options (see Section <#sec:texoptions>) in a
+% format recognized by Lua (see Section <#sec:luaoptions>).
%
% \end{markdown}
% \begin{macrocode}
@@ -19228,6 +19763,9 @@ end
\ifx\markdownOptionPreserveTabs\undefined\else
preserveTabs = \markdownOptionPreserveTabs,
\fi
+\ifx\markdownOptionRelativeReferences\undefined\else
+ relativeReferences = \markdownOptionRelativeReferences,
+\fi
\ifx\markdownOptionShiftHeadings\undefined\else
shiftHeadings = "\markdownOptionShiftHeadings",
\fi
@@ -19294,8 +19832,7 @@ end
% \par
% \begin{markdown}
%
-%### Buffering Markdown Input
-% \label{sec:buffering}
+%### Buffering Markdown Input {#buffering}
%
% The
% \mdef{markdownIfOption}`{`\meta{name}`}{`\meta{iftrue}`}{`\meta{iffalse}`}`
@@ -19495,14 +20032,14 @@ end
% \par
% \begin{markdown}
%
-%### Lua Shell Escape Bridge
-% \label{sec:luabridge}
+%### Lua Shell Escape Bridge {#luabridge}
+%
% The following \TeX{} code is intended for \TeX{} engines that do not provide
% direct access to Lua, but expose the shell of the operating system. This
% corresponds to the \mref{markdownMode} values of `0` and `1`.
%
% The \mref{markdownLuaExecute} macro defined here and in Section
-% \vref{sec:directlua} are meant to be indistinguishable to the remaining code.
+% <#sec:directlua> are meant to be indistinguishable to the remaining code.
%
% The package assumes that although the user is not using the Lua\TeX{} engine,
% their \TeX{} distribution contains it, and uses shell access to produce and
@@ -19666,11 +20203,11 @@ end
% \par
% \begin{markdown}
%
-%### Direct Lua Access
-% \label{sec:directlua}
+%### Direct Lua Access {#directlua}
+%
% The following \TeX{} code is intended for \TeX{} engines that provide
% direct access to Lua (Lua\TeX{}). The macro \mref{markdownLuaExecute} defined
-% here and in Section \vref{sec:luabridge} are meant to be indistinguishable to
+% here and in Section <#sec:luabridge> are meant to be indistinguishable to
% the remaining code. This corresponds to the \mref{markdownMode} value of `2`.
%
% \end{markdown}
@@ -19684,7 +20221,7 @@ end
% The direct Lua access version of the \mref{markdownLuaExecute} macro is defined
% in terms of the \mref{directlua} primitive. The \luamref{print} function is set as
% an alias to the \mref{tex.print} method in order to mimic the behaviour of the
-% \mref{markdownLuaExecute} definition from Section \vref{sec:luabridge},
+% \mref{markdownLuaExecute} definition from Section <#sec:luabridge>,
%
% \end{markdown}
% \begin{macrocode}
@@ -19806,16 +20343,16 @@ end
% \par
% \begin{markdown}
%
-% \LaTeX{} Implementation
-%------------------------
-% \label{sec:lateximplementation}
+% \LaTeX{} Implementation {#lateximplementation}
+%-------------------------
+%
% The \LaTeX{} implemenation makes use of the fact that, apart from some subtle
% differences, \LaTeX{} implements the majority of the plain \TeX{}
% format~[@latex17, Section 9]. As a consequence, we can directly reuse the
% existing plain \TeX{} implementation.
%
% The \LaTeX{} implementation redefines the plain \TeX{} logging macros (see
-% Section \vref{sec:texinterfacelogging}) to use the \LaTeX{} \mref{PackageInfo},
+% Section <#sec:texinterfacelogging>) to use the \LaTeX{} \mref{PackageInfo},
% \mref{PackageWarning}, and \mref{PackageError} macros.
%
% \end{markdown}
@@ -19833,7 +20370,7 @@ end
%
%### Logging Facilities
% The \LaTeX{} implementation redefines the plain \TeX{} logging macros (see
-% Section \vref{sec:texinterfacelogging}) to use the \LaTeX{} \mref{PackageInfo},
+% Section <#sec:texinterfacelogging>) to use the \LaTeX{} \mref{PackageInfo},
% \mref{PackageWarning}, and \mref{PackageError} macros.
%
% \end{markdown}
@@ -19846,7 +20383,7 @@ end
% The \mdef{markdownInputPlainTeX} macro is used to store the original plain
% \TeX{} implementation of the \mref{markdownInput} macro. The \mref{markdownInput}
% is then redefined to accept an optional argument with options recognized by
-% the \LaTeX{} interface (see Section \vref{sec:latexoptions}).
+% the \LaTeX{} interface (see Section <#sec:latexoptions>).
%
% \end{markdown}
% \begin{macrocode}
@@ -19892,36 +20429,55 @@ end
% \par
% \begin{markdown}
%
-%### Options
-% The supplied package options are processed using the \mref{markdownSetup} macro.
+%#### \LaTeX{} Themes {#latexthemesimplementation}
+%
+% This section implements the theme-loading mechanism and the example themes
+% provided with the Markdown package.
%
% \end{markdown}
% \begin{macrocode}
-\DeclareOption*{%
- \expandafter\markdownSetup\expandafter{\CurrentOption}}%
-\ProcessOptions\relax
+\ExplSyntaxOn
% \end{macrocode}
% \begin{markdown}
%
-% After processing the options, activate the `renderers` and
-% `rendererPrototypes` keys.
+% To keep track of our current place when packages themes have been nested,
+% we will maintain the \mdef{g_\@\@_latex_themes_seq} stack of theme names.
%
% \end{markdown}
% \begin{macrocode}
-\define@key{markdownOptions}{renderers}{%
- \setkeys{markdownRenderers}{#1}%
- \def\KV@prefix{KV@markdownOptions@}}%
-\define@key{markdownOptions}{rendererPrototypes}{%
- \setkeys{markdownRendererPrototypes}{#1}%
- \def\KV@prefix{KV@markdownOptions@}}%
+\newcommand\markdownLaTeXThemeName{}
+\seq_new:N \g_@@_latex_themes_seq
+\seq_put_right:NV
+ \g_@@_latex_themes_seq
+ \markdownLaTeXThemeName
+\newcommand\markdownLaTeXThemeLoad[2]{
+ \def\@tempa{%
+ \def\markdownLaTeXThemeName{#2}
+ \seq_put_right:NV
+ \g_@@_latex_themes_seq
+ \markdownLaTeXThemeName
+ \RequirePackage{#1}
+ \seq_pop_right:NN
+ \g_@@_latex_themes_seq
+ \l_tmpa_tl
+ \seq_get_right:NN
+ \g_@@_latex_themes_seq
+ \l_tmpa_tl
+ \exp_args:NNV
+ \def
+ \markdownLaTeXThemeName
+ \l_tmpa_tl}
+ \ifmarkdownLaTeXLoaded
+ \@tempa
+ \else
+ \exp_args:No
+ \AtEndOfPackage
+ { \@tempa }
+ \fi}
+\ExplSyntaxOff
% \end{macrocode}
-% \par
% \begin{markdown}
%
-%#### \LaTeX{} Themes
-% \label{sec:latexthemesimplementation}
-% This section implements example themes provided with the Markdown package.
-%
% The `witiko/dot` theme enables the \Opt{fencedCode} Lua option:
%
% \end{markdown}
@@ -19935,7 +20491,7 @@ end
% \begin{markdown}
%
% We load the \pkg{ifthen} and \pkg{grffile} packages, see also
-% Section~\ref{sec:latexprerequisites}:
+% Section <#sec:latexprerequisites>:
%
% \end{markdown}
% \begin{macrocode}
@@ -20009,7 +20565,7 @@ end
% \begin{markdown}
%
% We load the \pkg{catchfile} and \pkg{grffile} packages, see also
-% Section~\ref{sec:latexprerequisites}:
+% Section <#sec:latexprerequisites>:
%
% \end{markdown}
% \begin{macrocode}
@@ -20148,10 +20704,36 @@ end
% \par
% \begin{markdown}
%
-%### Token Renderer Prototypes
-% \label{sec:latexdefaultrendererprototypes}
+%### Options
+% The supplied package options are processed using the \mref{markdownSetup} macro.
+%
+% \end{markdown}
+% \begin{macrocode}
+\DeclareOption*{%
+ \expandafter\markdownSetup\expandafter{\CurrentOption}}%
+\ProcessOptions\relax
+% \end{macrocode}
+% \begin{markdown}
+%
+% After processing the options, activate the `renderers` and
+% `rendererPrototypes` keys.
+%
+% \end{markdown}
+% \begin{macrocode}
+\define@key{markdownOptions}{renderers}{%
+ \setkeys{markdownRenderers}{#1}%
+ \def\KV@prefix{KV@markdownOptions@}}%
+\define@key{markdownOptions}{rendererPrototypes}{%
+ \setkeys{markdownRendererPrototypes}{#1}%
+ \def\KV@prefix{KV@markdownOptions@}}%
+% \end{macrocode}
+% \par
+% \begin{markdown}
+%
+%### Token Renderer Prototypes {#latexdefaultrendererprototypes}
+%
% The following configuration should be considered placeholder. If the `plain`
-% package option has been enabled (see Section \vref{sec:latexplain}), none of
+% package option has been enabled (see Section <#sec:latexplain>), none of
% it will take effect.
% \end{markdown}
% \begin{macrocode}
@@ -20289,7 +20871,6 @@ end
\ifx\empty#4\empty\else
\caption{#4}%
\fi
- \label{fig:#1}%
\end{figure}},
ulBegin = {\begin{itemize}},
ulEnd = {\end{itemize}},
@@ -20303,6 +20884,37 @@ end
emphasis = {\emph{#1}},
tickedBox = {$\boxtimes$},
halfTickedBox = {$\boxdot$},
+% \end{macrocode}
+% \par
+% \begin{markdown}
+%
+% If identifier attributes appear at the beginning of a section, we make the
+% next heading produce the \mref{label} macro.
+%
+% \end{markdown}
+% \begin{macrocode}
+ headerAttributeContextBegin = {
+ \markdownSetup{
+ rendererPrototypes = {
+ attributeIdentifier = {%
+ \begingroup
+ \def\next####1{%
+ \def####1########1{%
+ \endgroup
+ ####1{########1}%
+ \label{##1}%
+ }%
+ }%
+ \next\markdownRendererHeadingOne
+ \next\markdownRendererHeadingTwo
+ \next\markdownRendererHeadingThree
+ \next\markdownRendererHeadingFour
+ \next\markdownRendererHeadingFive
+ \next\markdownRendererHeadingSix
+ },
+ },
+ }%
+ },
blockQuoteBegin = {\begin{quotation}},
blockQuoteEnd = {\end{quotation}},
inputVerbatim = {\VerbatimInput{#1}},
@@ -20415,6 +21027,40 @@ end
% \par
% \begin{markdown}
%
+%#### HTML elements
+% If the \Opt{html} option is enabled and we are using [\TeX{}4ht][1], we will
+% pass HTML elements to the output HTML document unchanged.
+%
+% [1]: https://tug.org/tex4ht/
+%
+% \end{markdown}
+% \begin{macrocode}
+\@ifundefined{HCode}{}{
+ \markdownSetup{
+ rendererPrototypes = {
+ inlineHtmlTag = {%
+ \ifvmode
+ \IgnorePar
+ \EndP
+ \fi
+ \HCode{#1}%
+ },
+ inputBlockHtmlElement = {%
+ \ifvmode
+ \IgnorePar
+ \fi
+ \EndP
+ \special{t4ht*<#1}%
+ \par
+ \ShowPar
+ },
+ },
+ }
+}
+% \end{macrocode}
+% \par
+% \begin{markdown}
+%
%#### Citations
% Here is a basic implementation for citations that uses the \LaTeX{} \mref{cite}
% macro. There are also implementations that use the \pkg{natbib} \mref{citep},
@@ -20650,20 +21296,44 @@ end
%#### Links
% Before consuming the parameters for the hyperlink renderer, we change the
% category code of the hash sign (`#`) to other, so that it cannot be
-% mistaken for a parameter character. After the hyperlink has been typeset,
-% we restore the original catcode.
-%
+% mistaken for a parameter character.
% \end{markdown}
% \begin{macrocode}
\RequirePackage{url}
-\def\markdownRendererLinkPrototype{%
+\RequirePackage{expl3}
+\ExplSyntaxOn
+\def\markdownRendererLinkPrototype{
\begingroup
\catcode`\#=12
- \def\next##1##2##3##4{%
- ##1\footnote{%
- \ifx\empty##4\empty\else##4: \fi\texttt<\url{##3}\texttt>}%
- \endgroup}%
- \next}
+ \def\next##1##2##3##4{
+ \endgroup
+% \end{macrocode}
+% \begin{markdown}
+% If the URL begins with a hash sign, then we assume that it is a relative
+% reference. Otherwise, we assume that it is an absolute URL.
+% \end{markdown}
+% \begin{macrocode}
+ \tl_set:Nx
+ \l_tmpa_tl
+ { \str_range:nnn { ##3 } { 1 } { 1 } }
+ \str_if_eq:NNTF
+ \l_tmpa_tl
+ \c_hash_str
+ {
+ \exp_args:No
+ \markdownLaTeXRendererRelativeLink
+ { \str_range:nnn { ##3 } { 2 } { -1 } }
+ }{
+ \markdownLaTeXRendererAbsoluteLink { ##1 } { ##2 } { ##3 } { ##4 }
+ }
+ }
+ \next
+}
+\ExplSyntaxOff
+\def\markdownLaTeXRendererAbsoluteLink#1#2#3#4{%
+ #1\footnote{\ifx\empty#4\empty\else#4: \fi\texttt<\url{#3}\texttt>}}
+\def\markdownLaTeXRendererRelativeLink#1{%
+ \ref{#1}}
% \end{macrocode}
% \par
% \begin{markdown}
@@ -20681,14 +21351,16 @@ end
\newtoks\markdownLaTeXTable
\newtoks\markdownLaTeXTableAlignment
\newtoks\markdownLaTeXTableEnd
-\@ifpackageloaded{booktabs}{
- \let\markdownLaTeXTopRule\toprule
- \let\markdownLaTeXMidRule\midrule
- \let\markdownLaTeXBottomRule\bottomrule
-}{
- \let\markdownLaTeXTopRule\hline
- \let\markdownLaTeXMidRule\hline
- \let\markdownLaTeXBottomRule\hline
+\AtBeginDocument{%
+ \@ifpackageloaded{booktabs}{%
+ \def\markdownLaTeXTopRule{\toprule}%
+ \def\markdownLaTeXMidRule{\midrule}%
+ \def\markdownLaTeXBottomRule{\bottomrule}%
+ }{%
+ \def\markdownLaTeXTopRule{\hline}%
+ \def\markdownLaTeXMidRule{\hline}%
+ \def\markdownLaTeXBottomRule{\hline}%
+ }%
}
\markdownSetup{rendererPrototypes={
table = {%
@@ -20755,17 +21427,12 @@ end
% \par
% \begin{markdown}
%
-%#### YAML Metadata
-% \label{sec:latexyamlmetadata}
-% To parse the \acro{yaml} metadata we will use the expl3 language from the
-% \LaTeX3 kernel.
+%#### YAML Metadata {#latexyamlmetadata}
%
% \end{markdown}
% \begin{macrocode}
-\RequirePackage{expl3}
\ExplSyntaxOn
% \end{macrocode}
-% \par
% \begin{markdown}
%
% To keep track of the current type of structure we inhabit when we are
@@ -21079,9 +21746,9 @@ end
% \par
% \begin{markdown}
%
-% \Hologo{ConTeXt} Implementation
-%--------------------------------
-% \label{sec:contextimplementation}
+% \Hologo{ConTeXt} Implementation {#contextimplementation}
+%---------------------------------
+%
% The \Hologo{ConTeXt} implementation makes use of the fact that, apart from
% some subtle differences, the Mark II and Mark IV \Hologo{ConTeXt} formats
% *seem* to implement (the documentation is scarce) the majority of the
@@ -21090,7 +21757,7 @@ end
% after supplying the missing plain \TeX{} macros.
%
% The \Hologo{ConTeXt} implementation redefines the plain \TeX{} logging macros
-% (see Section \vref{sec:texinterfacelogging}) to use the \Hologo{ConTeXt}
+% (see Section <#sec:texinterfacelogging>) to use the \Hologo{ConTeXt}
% \mref{writestatus} macro.
%
% \end{markdown}
@@ -21219,7 +21886,7 @@ end
\markdownInput{#3}%
\fi}%
\def\markdownRendererImagePrototype#1#2#3#4{%
- \placefigure[][fig:#1]{#4}{\externalfigure[#3]}}%
+ \placefigure[][]{#4}{\externalfigure[#3]}}%
\def\markdownRendererUlBeginPrototype{\startitemize}%
\def\markdownRendererUlBeginTightPrototype{\startitemize[packed]}%
\def\markdownRendererUlItemPrototype{\item}%
diff --git a/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex b/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex
index f92f89dda62..6c55e9a8d48 100644
--- a/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex
+++ b/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex
@@ -125,7 +125,7 @@
\markdownInput{#3}%
\fi}%
\def\markdownRendererImagePrototype#1#2#3#4{%
- \placefigure[][fig:#1]{#4}{\externalfigure[#3]}}%
+ \placefigure[][]{#4}{\externalfigure[#3]}}%
\def\markdownRendererUlBeginPrototype{\startitemize}%
\def\markdownRendererUlBeginTightPrototype{\startitemize[packed]}%
\def\markdownRendererUlItemPrototype{\item}%
diff --git a/Master/texmf-dist/tex/generic/markdown/markdown.tex b/Master/texmf-dist/tex/generic/markdown/markdown.tex
index 1586d5579a7..bc837936a98 100644
--- a/Master/texmf-dist/tex/generic/markdown/markdown.tex
+++ b/Master/texmf-dist/tex/generic/markdown/markdown.tex
@@ -45,8 +45,8 @@
%%
%% The names of the source files used are shown above.
%%
-\def\markdownLastModified{2022/01/30}%
-\def\markdownVersion{2.13.0-0-g1f680a8}%
+\def\markdownLastModified{2022/02/28}%
+\def\markdownVersion{2.14.0-0-g9635d76}%
\let\markdownBegin\relax
\let\markdownEnd\relax
\let\markdownInput\relax
@@ -79,6 +79,7 @@
\let\markdownOptionJekyllData\undefined
\let\markdownOptionPipeTables\undefined
\let\markdownOptionPreserveTabs\undefined
+\let\markdownOptionRelativeReferences\undefined
\let\markdownOptionShiftHeadings\undefined
\let\markdownOptionSlice\undefined
\let\markdownOptionSmartEllipses\undefined
@@ -239,11 +240,34 @@
\markdownRendererTablePrototype}%
\def\markdownRendererInlineHtmlComment{%
\markdownRendererInlineHtmlCommentPrototype}%
+\def\markdownRendererBlockHtmlCommentBegin{%
+ \markdownRendererBlockHtmlCommentBeginPrototype}%
+\def\markdownRendererBlockHtmlCommentEnd{%
+ \markdownRendererBlockHtmlCommentEndPrototype}%
+\def\markdownRendererInlineHtmlTag{%
+ \markdownRendererInlineHtmlTagPrototype}%
+\def\markdownRendererInputBlockHtmlElement{%
+ \markdownRendererInputBlockHtmlElementPrototype}%
+\def\markdownRendererAttributeIdentifier{%
+ \markdownRendererAttributeIdentifierPrototype}%
+\def\markdownRendererAttributeClassName{%
+ \markdownRendererAttributeClassNamePrototype}%
+\def\markdownRendererAttributeKeyValue{%
+ \markdownRendererAttributeKeyValuePrototype}%
+\def\markdownRendererHeaderAttributeContextBegin{%
+ \markdownRendererHeaderAttributeContextBeginPrototype}%
+\def\markdownRendererHeaderAttributeContextEnd{%
+ \markdownRendererHeaderAttributeContextEndPrototype}%
+\def\markdownRendererAttributeIdentifierPrototype#1{}%
+\def\markdownRendererAttributeClassNamePrototype#1{}%
+\def\markdownRendererAttributeKeyValuePrototype#1#2{}%
\def\markdownRendererDocumentBeginPrototype{}%
\def\markdownRendererDocumentEndPrototype{}%
\def\markdownRendererInterblockSeparatorPrototype{}%
\def\markdownRendererLineBreakPrototype{}%
\def\markdownRendererEllipsisPrototype{}%
+\def\markdownRendererHeaderAttributeContextBeginPrototype{}%
+\def\markdownRendererHeaderAttributeContextEndPrototype{}%
\def\markdownRendererNbspPrototype{}%
\def\markdownRendererLeftBracePrototype{}%
\def\markdownRendererRightBracePrototype{}%
@@ -311,6 +335,10 @@
\def\markdownRendererTextCitePrototype#1{}%
\def\markdownRendererTablePrototype#1#2#3{}%
\def\markdownRendererInlineHtmlCommentPrototype#1{}%
+\def\markdownRendererBlockHtmlCommentBeginPrototype{\iffalse}%
+\def\markdownRendererBlockHtmlCommentEndPrototype{\fi}%
+\def\markdownRendererInlineHtmlTagPrototype#1{}%
+\def\markdownRendererInputBlockHtmlElementPrototype#1{}%
\def\markdownRendererTickedBoxPrototype{}%
\def\markdownRendererHalfTickedBoxPrototype{}%
\def\markdownRendererUntickedBoxPrototype{}%
@@ -485,6 +513,9 @@
\ifx\markdownOptionPreserveTabs\undefined\else
preserveTabs = \markdownOptionPreserveTabs,
\fi
+\ifx\markdownOptionRelativeReferences\undefined\else
+ relativeReferences = \markdownOptionRelativeReferences,
+\fi
\ifx\markdownOptionShiftHeadings\undefined\else
shiftHeadings = "\markdownOptionShiftHeadings",
\fi
diff --git a/Master/texmf-dist/tex/latex/markdown/markdown.sty b/Master/texmf-dist/tex/latex/markdown/markdown.sty
index 7ddde4014b1..8645918a346 100644
--- a/Master/texmf-dist/tex/latex/markdown/markdown.sty
+++ b/Master/texmf-dist/tex/latex/markdown/markdown.sty
@@ -47,6 +47,7 @@
%%
\RequirePackage{keyval}
\RequirePackage{xstring}
+\RequirePackage{expl3}
\newenvironment{markdown}\relax\relax
\newenvironment{markdown*}[1]\relax\relax
\newcommand\markdownSetup[1]{%
@@ -75,7 +76,7 @@
\fi}
\newif\ifmarkdownLaTeXLoaded
\markdownLaTeXLoadedfalse
-\AtEndOfPackage{\markdownLaTeXLoadedtrue}%
+\AtEndOfPackage{\markdownLaTeXLoadedtrue}
\define@key{markdownOptions}{theme}{%
\IfSubStr{#1}{/}{}{%
\markdownError
@@ -86,22 +87,18 @@
markdowntheme\markdownLaTeXThemePackageName}%
\expandafter\markdownLaTeXThemeLoad\expandafter{%
\markdownLaTeXThemePackageName}{#1/}}%
-\newcommand\markdownLaTeXThemeName{}%
-\newcommand\markdownLaTeXThemeLoad[2]{%
- \ifmarkdownLaTeXLoaded
- \def\markdownLaTeXThemeName{#2}%
- \RequirePackage{#1}%
- \def\markdownLaTeXThemeName{}%
- \else
- \AtEndOfPackage{%
- \def\markdownLaTeXThemeName{#2}%
- \RequirePackage{#1}%
- \def\markdownLaTeXThemeName{}}%
- \fi}%
\@onlypreamble\KV@markdownOptions@theme
\define@key{markdownOptions}{snippet}{%
- \expandafter\markdownSetup\expandafter{%
- \the\csname markdownLaTeXSetupSnippet#1\endcsname}}%
+ \@ifundefined
+ {markdownLaTeXSetupSnippet#1}{%
+ \markdownError
+ {Can't invoke setup snippet #1}%
+ {The setup snippet is undefined}%
+ }{%
+ \expandafter\markdownSetup\expandafter{%
+ \the\csname markdownLaTeXSetupSnippet#1\endcsname}%
+ }%
+ }%
\define@key{markdownOptions}{helperScriptFileName}{%
\def\markdownOptionHelperScriptFileName{#1}}%
\define@key{markdownOptions}{inputTempFileName}{%
@@ -158,6 +155,8 @@
\def\markdownOptionPipeTables{#1}}%
\define@key{markdownOptions}{preserveTabs}[true]{%
\def\markdownOptionPreserveTabs{#1}}%
+\define@key{markdownOptions}{relativeReferences}[true]{%
+ \def\markdownOptionRelativeReferences{#1}}%
\define@key{markdownOptions}{smartEllipses}[true]{%
\def\markdownOptionSmartEllipses{#1}}%
\define@key{markdownOptions}{shiftHeadings}{%
@@ -188,6 +187,12 @@
\DeclareOption{frozencache}{\markdownSetup{frozenCache}}
\define@key{markdownOptions}{frozenCacheFileName}{%
\def\markdownOptionFrozenCacheFileName{#1}}%
+\define@key{markdownRenderers}{attributeIdentifier}{%
+ \renewcommand\markdownRendererAttributeIdentifier[1]{#1}}%
+\define@key{markdownRenderers}{attributeClassName}{%
+ \renewcommand\markdownRendererAttributeClassName[1]{#1}}%
+\define@key{markdownRenderers}{attributeKeyValue}{%
+ \renewcommand\markdownRendererAttributeKeyValue[2]{#1}}%
\define@key{markdownRenderers}{documentBegin}{%
\renewcommand\markdownRendererDocumentBegin{#1}}%
\define@key{markdownRenderers}{documentEnd}{%
@@ -198,6 +203,10 @@
\renewcommand\markdownRendererLineBreak{#1}}%
\define@key{markdownRenderers}{ellipsis}{%
\renewcommand\markdownRendererEllipsis{#1}}%
+\define@key{markdownRenderers}{headerAttributeContextBegin}{%
+ \renewcommand\markdownRendererHeaderAttributeContextBegin{#1}}%
+\define@key{markdownRenderers}{headerAttributeContextEnd}{%
+ \renewcommand\markdownRendererHeaderAttributeContextEnd{#1}}%
\define@key{markdownRenderers}{nbsp}{%
\renewcommand\markdownRendererNbsp{#1}}%
\define@key{markdownRenderers}{leftBrace}{%
@@ -332,12 +341,26 @@
\renewcommand\markdownRendererTable[3]{#1}}%
\define@key{markdownRenderers}{inlineHtmlComment}{%
\renewcommand\markdownRendererInlineHtmlComment[1]{#1}}%
+\define@key{markdownRenderers}{blockHtmlCommentBegin}{%
+ \renewcommand\markdownRendererBlockHtmlCommentBegin{#1}}%
+\define@key{markdownRenderers}{blockHtmlCommentEnd}{%
+ \renewcommand\markdownRendererBlockHtmlCommentEnd{#1}}%
+\define@key{markdownRenderers}{inlineHtmlTag}{%
+ \renewcommand\markdownRendererInlineHtmlTag[1]{#1}}%
+\define@key{markdownRenderers}{inputBlockHtmlElement}{%
+ \renewcommand\markdownRendererInputBlockHtmlElement[1]{#1}}%
\define@key{markdownRenderers}{tickedBox}{%
\renewcommand\markdownRendererTickedBox{#1}}%
\define@key{markdownRenderers}{halfTickedBox}{%
\renewcommand\markdownRendererHalfTickedBox{#1}}%
\define@key{markdownRenderers}{untickedBox}{%
\renewcommand\markdownRendererUntickedBox{#1}}%
+\define@key{markdownRendererPrototypes}{attributeIdentifier}{%
+ \renewcommand\markdownRendererAttributeIdentifierPrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{attributeClassName}{%
+ \renewcommand\markdownRendererAttributeClassNamePrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{attributeKeyValue}{%
+ \renewcommand\markdownRendererAttributeKeyValuePrototype[2]{#1}}%
\define@key{markdownRendererPrototypes}{documentBegin}{%
\renewcommand\markdownRendererDocumentBeginPrototype{#1}}%
\define@key{markdownRendererPrototypes}{documentEnd}{%
@@ -348,6 +371,10 @@
\renewcommand\markdownRendererLineBreakPrototype{#1}}%
\define@key{markdownRendererPrototypes}{ellipsis}{%
\renewcommand\markdownRendererEllipsisPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{headerAttributeContextBegin}{%
+ \renewcommand\markdownRendererHeaderAttributeContextBeginPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{headerAttributeContextEnd}{%
+ \renewcommand\markdownRendererHeaderAttributeContextEndPrototype{#1}}%
\define@key{markdownRendererPrototypes}{nbsp}{%
\renewcommand\markdownRendererNbspPrototype{#1}}%
\define@key{markdownRendererPrototypes}{leftBrace}{%
@@ -482,6 +509,14 @@
\renewcommand\markdownRendererTablePrototype[3]{#1}}%
\define@key{markdownRendererPrototypes}{inlineHtmlComment}{%
\renewcommand\markdownRendererInlineHtmlCommentPrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{blockHtmlCommentBegin}{%
+ \renewcommand\markdownRendererBlockHtmlCommentBeginPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{blockHtmlCommentEnd}{%
+ \renewcommand\markdownRendererBlockHtmlCommentEndPrototype{#1}}%
+\define@key{markdownRendererPrototypes}{inlineHtmlTag}{%
+ \renewcommand\markdownRendererInlineHtmlTagPrototype[1]{#1}}%
+\define@key{markdownRendererPrototypes}{inputBlockHtmlElement}{%
+ \renewcommand\markdownRendererInputBlockHtmlElementPrototype[1]{#1}}%
\define@key{markdownRendererPrototypes}{tickedBox}{%
\renewcommand\markdownRendererTickedBoxPrototype{#1}}%
\define@key{markdownRendererPrototypes}{halfTickedBox}{%
@@ -515,6 +550,37 @@
|markdownReadAndConvert<\end{markdown#1}>%
<|end<markdown#1>>>%
|endgroup
+\ExplSyntaxOn
+\newcommand\markdownLaTeXThemeName{}
+\seq_new:N \g__markdown_latex_themes_seq
+\seq_put_right:NV
+ \g__markdown_latex_themes_seq
+ \markdownLaTeXThemeName
+\newcommand\markdownLaTeXThemeLoad[2]{
+ \def\@tempa{%
+ \def\markdownLaTeXThemeName{#2}
+ \seq_put_right:NV
+ \g__markdown_latex_themes_seq
+ \markdownLaTeXThemeName
+ \RequirePackage{#1}
+ \seq_pop_right:NN
+ \g__markdown_latex_themes_seq
+ \l_tmpa_tl
+ \seq_get_right:NN
+ \g__markdown_latex_themes_seq
+ \l_tmpa_tl
+ \exp_args:NNV
+ \def
+ \markdownLaTeXThemeName
+ \l_tmpa_tl}
+ \ifmarkdownLaTeXLoaded
+ \@tempa
+ \else
+ \exp_args:No
+ \AtEndOfPackage
+ { \@tempa }
+ \fi}
+\ExplSyntaxOff
\DeclareOption*{%
\expandafter\markdownSetup\expandafter{\CurrentOption}}%
\ProcessOptions\relax
@@ -609,7 +675,6 @@
\ifx\empty#4\empty\else
\caption{#4}%
\fi
- \label{fig:#1}%
\end{figure}},
ulBegin = {\begin{itemize}},
ulEnd = {\end{itemize}},
@@ -623,6 +688,28 @@
emphasis = {\emph{#1}},
tickedBox = {$\boxtimes$},
halfTickedBox = {$\boxdot$},
+ headerAttributeContextBegin = {
+ \markdownSetup{
+ rendererPrototypes = {
+ attributeIdentifier = {%
+ \begingroup
+ \def\next####1{%
+ \def####1########1{%
+ \endgroup
+ ####1{########1}%
+ \label{##1}%
+ }%
+ }%
+ \next\markdownRendererHeadingOne
+ \next\markdownRendererHeadingTwo
+ \next\markdownRendererHeadingThree
+ \next\markdownRendererHeadingFour
+ \next\markdownRendererHeadingFive
+ \next\markdownRendererHeadingSix
+ },
+ },
+ }%
+ },
blockQuoteBegin = {\begin{quotation}},
blockQuoteEnd = {\end{quotation}},
inputVerbatim = {\VerbatimInput{#1}},
@@ -688,6 +775,28 @@
\fi
\fi
}
+\@ifundefined{HCode}{}{
+ \markdownSetup{
+ rendererPrototypes = {
+ inlineHtmlTag = {%
+ \ifvmode
+ \IgnorePar
+ \EndP
+ \fi
+ \HCode{#1}%
+ },
+ inputBlockHtmlElement = {%
+ \ifvmode
+ \IgnorePar
+ \fi
+ \EndP
+ \special{t4ht*<#1}%
+ \par
+ \ShowPar
+ },
+ },
+ }
+}
\newcount\markdownLaTeXCitationsCounter
\RequirePackage{gobble}
@@ -905,14 +1014,34 @@
\expandafter{\expandafter}%
}}}}
\RequirePackage{url}
-\def\markdownRendererLinkPrototype{%
+\RequirePackage{expl3}
+\ExplSyntaxOn
+\def\markdownRendererLinkPrototype{
\begingroup
\catcode`\#=12
- \def\next##1##2##3##4{%
- ##1\footnote{%
- \ifx\empty##4\empty\else##4: \fi\texttt<\url{##3}\texttt>}%
- \endgroup}%
- \next}
+ \def\next##1##2##3##4{
+ \endgroup
+ \tl_set:Nx
+ \l_tmpa_tl
+ { \str_range:nnn { ##3 } { 1 } { 1 } }
+ \str_if_eq:NNTF
+ \l_tmpa_tl
+ \c_hash_str
+ {
+ \exp_args:No
+ \markdownLaTeXRendererRelativeLink
+ { \str_range:nnn { ##3 } { 2 } { -1 } }
+ }{
+ \markdownLaTeXRendererAbsoluteLink { ##1 } { ##2 } { ##3 } { ##4 }
+ }
+ }
+ \next
+}
+\ExplSyntaxOff
+\def\markdownLaTeXRendererAbsoluteLink#1#2#3#4{%
+ #1\footnote{\ifx\empty#4\empty\else#4: \fi\texttt<\url{#3}\texttt>}}
+\def\markdownLaTeXRendererRelativeLink#1{%
+ \ref{#1}}
\newcount\markdownLaTeXRowCounter
\newcount\markdownLaTeXRowTotal
\newcount\markdownLaTeXColumnCounter
@@ -920,14 +1049,16 @@
\newtoks\markdownLaTeXTable
\newtoks\markdownLaTeXTableAlignment
\newtoks\markdownLaTeXTableEnd
-\@ifpackageloaded{booktabs}{
- \let\markdownLaTeXTopRule\toprule
- \let\markdownLaTeXMidRule\midrule
- \let\markdownLaTeXBottomRule\bottomrule
-}{
- \let\markdownLaTeXTopRule\hline
- \let\markdownLaTeXMidRule\hline
- \let\markdownLaTeXBottomRule\hline
+\AtBeginDocument{%
+ \@ifpackageloaded{booktabs}{%
+ \def\markdownLaTeXTopRule{\toprule}%
+ \def\markdownLaTeXMidRule{\midrule}%
+ \def\markdownLaTeXBottomRule{\bottomrule}%
+ }{%
+ \def\markdownLaTeXTopRule{\hline}%
+ \def\markdownLaTeXMidRule{\hline}%
+ \def\markdownLaTeXBottomRule{\hline}%
+ }%
}
\markdownSetup{rendererPrototypes={
table = {%
@@ -990,7 +1121,6 @@
\expandafter\@gobble
\fi\markdownLaTeXRenderTableCell}
\fi
-\RequirePackage{expl3}
\ExplSyntaxOn
\seq_new:N \g__markdown_jekyll_data_datatypes_seq
\tl_const:Nn \c__markdown_jekyll_data_sequence_tl { sequence }
diff --git a/Master/texmf-dist/tex/luatex/markdown/markdown.lua b/Master/texmf-dist/tex/luatex/markdown/markdown.lua
index aac73da3c9f..161a0d39a29 100644
--- a/Master/texmf-dist/tex/luatex/markdown/markdown.lua
+++ b/Master/texmf-dist/tex/luatex/markdown/markdown.lua
@@ -20,7 +20,7 @@
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--
--- Copyright (C) 2016-2021 Vít Novotný
+-- Copyright (C) 2016-2022 Vít Novotný
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3
@@ -58,11 +58,11 @@
-- those in the standard .ins files.
--
local metadata = {
- version = "2.13.0-0-g1f680a8",
+ version = "2.14.0-0-g9635d76",
comment = "A module for the conversion from markdown to plain TeX",
author = "John MacFarlane, Hans Hagen, Vít Novotný",
copyright = {"2009-2016 John MacFarlane, Hans Hagen",
- "2016-2021 Vít Novotný"},
+ "2016-2022 Vít Novotný"},
license = "LPPL 1.3c"
}
@@ -102,6 +102,7 @@ defaultOptions.inlineFootnotes = false
defaultOptions.jekyllData = false
defaultOptions.pipeTables = false
defaultOptions.preserveTabs = false
+defaultOptions.relativeReferences = false
defaultOptions.shiftHeadings = 0
defaultOptions.slice = "^ $"
defaultOptions.smartEllipses = false
@@ -2527,15 +2528,28 @@ function M.writer.new(options)
local contents = util.intersperse(buffer,"\n")
if tight and options.tightLists then
return {"\\markdownRendererOlBeginTight\n",contents,
- "\n\\markdownRendererOlEndTight "}
+ "\n\\markdownRendererOlEndTight "}
else
return {"\\markdownRendererOlBegin\n",contents,
- "\n\\markdownRendererOlEnd "}
+ "\n\\markdownRendererOlEnd "}
end
end
function self.inline_html_comment(contents)
return {"\\markdownRendererInlineHtmlComment{",contents,"}"}
end
+ function self.block_html_comment(contents)
+ if not self.is_writing then return "" end
+ return {"\\markdownRendererBlockHtmlCommentBegin\n",contents,
+ "\n\\markdownRendererBlockHtmlCommentEnd "}
+ end
+ function self.inline_html_tag(contents)
+ return {"\\markdownRendererInlineHtmlTag{",self.string(contents),"}"}
+ end
+ function self.block_html_element(s)
+ if not self.is_writing then return "" end
+ local name = util.cache(options.cacheDir, s, nil, nil, ".verbatim")
+ return {"\\markdownRendererInputBlockHtmlElement{",name,"}"}
+ end
local function dlitem(term, defs)
local retVal = {"\\markdownRendererDlItem{",term,"}"}
for _, def in ipairs(defs) do
@@ -2593,8 +2607,23 @@ function M.writer.new(options)
return {"\\markdownRendererInputFencedCode{",name,"}{",i,"}"}
end
function self.document(d)
- return {"\\markdownRendererDocumentBegin\n", d,
- "\\markdownRendererDocumentEnd"}
+ local active_attributes = self.active_attributes
+ local buf = {"\\markdownRendererDocumentBegin\n", d}
+
+ -- pop attributes for sections that have ended
+ if options.headerAttributes and self.is_writing then
+ while #active_attributes > 0 do
+ local attributes = active_attributes[#active_attributes]
+ if #attributes > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
+ table.remove(active_attributes, #active_attributes)
+ end
+ end
+
+ table.insert(buf, "\\markdownRendererDocumentEnd")
+
+ return buf
end
function self.jekyllData(d, t, p)
if not self.is_writing then return "" end
@@ -2678,51 +2707,100 @@ function M.writer.new(options)
return buf
end
- self.active_headings = {}
- function self.heading(s,level,attributes)
- local active_headings = self.active_headings
+ self.active_attributes = {}
+ function self.heading(s, level, attributes)
+ attributes = attributes or {}
+ for i = 1, #attributes do
+ attributes[attributes[i]] = true
+ end
+
+ local active_attributes = self.active_attributes
local slice_begin_type = self.slice_begin:sub(1, 1)
local slice_begin_identifier = self.slice_begin:sub(2) or ""
local slice_end_type = self.slice_end:sub(1, 1)
local slice_end_identifier = self.slice_end:sub(2) or ""
- while #active_headings < level do
- -- push empty identifiers for implied sections
- table.insert(active_headings, {})
+ local buf = {}
+
+ -- push empty attributes for implied sections
+ while #active_attributes < level-1 do
+ table.insert(active_attributes, {})
end
- while #active_headings >= level do
- -- pop identifiers for sections that have ended
- local active_identifiers = active_headings[#active_headings]
- if active_identifiers[slice_begin_identifier] ~= nil
+ -- pop attributes for sections that have ended
+ while #active_attributes >= level do
+ local active_identifiers = active_attributes[#active_attributes]
+ -- tear down all active attributes at slice end
+ if active_identifiers["#" .. slice_end_identifier] ~= nil
+ and slice_end_type == "$" then
+ for header_level = #active_attributes, 1, -1 do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
+ end
+ self.is_writing = false
+ end
+ table.remove(active_attributes, #active_attributes)
+ if self.is_writing and options.headerAttributes and #active_identifiers > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
+ -- apply all active attributes at slice beginning
+ if active_identifiers["#" .. slice_begin_identifier] ~= nil
and slice_begin_type == "$" then
+ for header_level = 1, #active_attributes do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextBegin")
+ end
+ end
self.is_writing = true
end
- if active_identifiers[slice_end_identifier] ~= nil
- and slice_end_type == "$" then
- self.is_writing = false
+ end
+
+ -- tear down all active attributes at slice end
+ if attributes["#" .. slice_end_identifier] ~= nil
+ and slice_end_type == "^" then
+ for header_level = #active_attributes, 1, -1 do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextEnd")
+ end
end
- table.remove(active_headings, #active_headings)
+ self.is_writing = false
end
- -- push identifiers for the new section
- attributes = attributes or {}
- local identifiers = {}
- for index = 1, #attributes do
- attribute = attributes[index]
- identifiers[attribute:sub(2)] = true
+ -- push attributes for the new section
+ table.insert(active_attributes, attributes)
+ if self.is_writing and options.headerAttributes and #attributes > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextBegin")
end
- if identifiers[slice_begin_identifier] ~= nil
+
+ -- apply all active attributes at slice beginning
+ if attributes["#" .. slice_begin_identifier] ~= nil
and slice_begin_type == "^" then
+ for header_level = 1, #active_attributes do
+ if options.headerAttributes and #active_attributes[header_level] > 0 then
+ table.insert(buf, "\\markdownRendererHeaderAttributeContextBegin")
+ end
+ end
self.is_writing = true
end
- if identifiers[slice_end_identifier] ~= nil
- and slice_end_type == "^" then
- self.is_writing = false
- end
- table.insert(active_headings, identifiers)
- if not self.is_writing then return "" end
+ if self.is_writing then
+ table.sort(attributes)
+ local key, value
+ for i = 1, #attributes do
+ if attributes[i]:sub(1, 1) == "#" then
+ table.insert(buf, {"\\markdownRendererAttributeIdentifier{",
+ attributes[i]:sub(2), "}"})
+ elseif attributes[i]:sub(1, 1) == "." then
+ table.insert(buf, {"\\markdownRendererAttributeClassName{",
+ attributes[i]:sub(2), "}"})
+ else
+ key, value = attributes[i]:match("(%w+)=(%w+)")
+ table.insert(buf, {"\\markdownRendererAttributeKeyValue{",
+ key, "}{", value, "}"})
+ end
+ end
+ end
local cmd
level = level + options.shiftHeadings
@@ -2741,7 +2819,11 @@ function M.writer.new(options)
else
cmd = ""
end
- return {cmd,"{",s,"}"}
+ if self.is_writing then
+ table.insert(buf, {cmd, "{", s, "}"})
+ end
+
+ return buf
end
function self.note(s)
return {"\\markdownRendererFootnote{",s,"}"}
@@ -2758,7 +2840,7 @@ function M.writer.new(options)
function self.get_state()
return {
is_writing=self.is_writing,
- active_headings={table.unpack(self.active_headings)},
+ active_attributes={table.unpack(self.active_attributes)},
}
end
function self.set_state(s)
@@ -2920,12 +3002,12 @@ parsers.css_identifier = (parsers.hash + parsers.period)
* (parsers.css_identifier_char
- parsers.digit)
* parsers.css_identifier_char^0))
-parsers.attribute_name_char = parsers.any - parsers.space
+parsers.attribute_key_char = parsers.any - parsers.space
- parsers.squote - parsers.dquote
- parsers.more - parsers.slash
- parsers.equal
-parsers.attribute_value_char = parsers.any - parsers.dquote
- - parsers.more
+parsers.attribute_value_char = parsers.any - parsers.space
+ - parsers.dquote - parsers.more
-- block followed by 0 or more optionally
-- indented blocks with first line indented.
@@ -3375,11 +3457,6 @@ end
parsers.in_matched_block_tags = parsers.less
* Cmt(#parsers.openelt_block, parse_matched_tags)
-parsers.displayhtml = parsers.htmlcomment / ""
- + parsers.emptyelt_block
- + parsers.openelt_exact("hr")
- + parsers.in_matched_block_tags
- + parsers.htmlinstruction
parsers.hexentity = parsers.ampersand * parsers.hash * S("Xx")
* C(parsers.hexdigit^1) * parsers.semicolon
parsers.decentity = parsers.ampersand * parsers.hash
@@ -3446,7 +3523,7 @@ parsers.defstart = ( parsers.defstartchar * #parsers.spacing
parsers.dlchunk = Cs(parsers.line * (parsers.indentedline - parsers.blankline)^0)
parsers.heading_attribute = C(parsers.css_identifier)
- + C((parsers.attribute_name_char
+ + C((parsers.attribute_key_char
- parsers.rbrace)^1
* parsers.equal
* (parsers.attribute_value_char
@@ -3845,6 +3922,14 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
"mailto:"..email)
end
+ larsers.AutoLinkRelativeReference
+ = parsers.less
+ * C(parsers.urlchar^1)
+ * parsers.more
+ / function(url)
+ return writer.link(writer.escape(url), url)
+ end
+
larsers.DirectLink = (parsers.tag / parse_inlines_no_link) -- no links inside links
* parsers.spnl
* parsers.lparent
@@ -3901,12 +3986,12 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
larsers.EscapedChar = parsers.backslash * C(parsers.escapable) / writer.string
- larsers.InlineHtml = parsers.emptyelt_any
+ larsers.InlineHtml = parsers.emptyelt_any / writer.inline_html_tag
+ (parsers.htmlcomment / parse_inlines_no_html)
/ writer.inline_html_comment
+ parsers.htmlinstruction
- + parsers.openelt_any
- + parsers.closeelt_any
+ + parsers.openelt_any / writer.inline_html_tag
+ + parsers.closeelt_any / writer.inline_html_tag
larsers.HtmlEntity = parsers.hexentity / entities.hex_entity / writer.string
+ parsers.decentity / entities.dec_entity / writer.string
@@ -3916,7 +4001,12 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
* parsers.contentblock_tail
/ writer.contentblock
- larsers.DisplayHtml = parsers.displayhtml
+ larsers.DisplayHtml = (parsers.htmlcomment / parse_blocks)
+ / writer.block_html_comment
+ + parsers.emptyelt_block / writer.block_html_element
+ + parsers.openelt_exact("hr") / writer.block_html_element
+ + parsers.in_matched_block_tags / writer.block_html_element
+ + parsers.htmlinstruction
larsers.Verbatim = Cs( (parsers.blanklines
* ((parsers.indentedline - parsers.blankline))^1)^1
@@ -4180,6 +4270,7 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
+ V("Code")
+ V("AutoLinkUrl")
+ V("AutoLinkEmail")
+ + V("AutoLinkRelativeReference")
+ V("InlineHtml")
+ V("HtmlEntity")
+ V("EscapedChar")
@@ -4200,6 +4291,7 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
+ V("Code")
+ V("AutoLinkUrl")
+ V("AutoLinkEmail")
+ + V("AutoLinkRelativeReference")
+ V("InlineHtml")
+ V("HtmlEntity")
+ V("EscapedChar")
@@ -4221,6 +4313,8 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
Code = larsers.Code,
AutoLinkUrl = larsers.AutoLinkUrl,
AutoLinkEmail = larsers.AutoLinkEmail,
+ AutoLinkRelativeReference
+ = larsers.AutoLinkRelativeReference,
InlineHtml = larsers.InlineHtml,
HtmlEntity = larsers.HtmlEntity,
EscapedChar = larsers.EscapedChar,
@@ -4278,6 +4372,10 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline
syntax.Smart = parsers.fail
end
+ if not options.relativeReferences then
+ syntax.AutoLinkRelativeReference = parsers.fail
+ end
+
local blocks_toplevel_t = util.table_copy(syntax)
blocks_toplevel_t.Paragraph = larsers.ToplevelParagraph
larsers.blocks_toplevel = Ct(blocks_toplevel_t)