diff options
Diffstat (limited to 'macros/generic/markdown')
-rw-r--r-- | macros/generic/markdown/CHANGES.md | 88 | ||||
-rw-r--r-- | macros/generic/markdown/DEPENDS.txt | 21 | ||||
-rw-r--r-- | macros/generic/markdown/README.md | 26 | ||||
-rw-r--r-- | macros/generic/markdown/VERSION | 2 | ||||
-rw-r--r-- | macros/generic/markdown/docstrip.cfg | 4 | ||||
-rw-r--r-- | macros/generic/markdown/libraries/markdown-tinyyaml.lua | 4 | ||||
-rw-r--r-- | macros/generic/markdown/markdown.dtx | 767 | ||||
-rw-r--r-- | macros/generic/markdown/markdown.html | 12287 | ||||
-rw-r--r-- | macros/generic/markdown/markdown.ins | 1 | ||||
-rw-r--r-- | macros/generic/markdown/markdown.pdf | bin | 1116505 -> 1114115 bytes |
10 files changed, 6905 insertions, 6295 deletions
diff --git a/macros/generic/markdown/CHANGES.md b/macros/generic/markdown/CHANGES.md index 3ea1c8c837..922aadff91 100644 --- a/macros/generic/markdown/CHANGES.md +++ b/macros/generic/markdown/CHANGES.md @@ -1,10 +1,87 @@ # Changes +## 3.6.2 (2024-07-14) + +Fixes: + +- Fix the interplay between inline notes and square brackets. + (#453, #456, reported by @nopria, contributed by @lostenderman) +- Fix the interplay between lists and citations. + (witiko/expltools#3, #460, #461, contributed by @lostenderman) +- Do not override the `outputDir` option if if has been defined + before loading the package and pass it to lt3luabridge library. + (#457, #459) + +Documentation: + +- Fix various typos. (#454, contributed by @mbertucci47) +- Add file `DEPENDS.txt`. (#462, #463, 93bb7e18) + +Continuous Integration: + +- Only test latest TeX Live in pull requests. (81927ca1) + +Unit Tests: + +- Test the `outputDir` plain TeX option. (#457, #459) + +Libraries: + +- Update `tinyyaml` to v0.4.4-1-g197632c. (1e83ac94) + +## 3.6.1 (2024-06-20) + +Fixes: + +- Fix the interplay between (strong) emphasis and (inline) notes. + (#447, #450, lostenderman/markdown#159, reported by @nopria, + contributed by @lostenderman) +- Produce soft line break renderers in inline notes. + (#450, lostenderman/markdown#159, contributed by @lostenderman) + +Documentation: + +- Improve the documentation of portable installation. + (#444, 9afac050, contributed by @l0th3r) +- Document that the Markdown package can be installed from GitHub releases. + (#449, #450, reported by @nopria) + +Continuous Integration: + +- Remove warnings from Pandoc and GitHub Actions. (2b3f3469..71f174b1) + +Defaults: + +- Fix default definitions for fancy tight ordered lists. + (#446, f978e818, reported by @l0th3r) + +## 3.6.0 (2024-05-27) + +Development: + +- Add Lua options `unicodeNormalization` and `unicodeNormalizationForm` for + normalizing markdown text using Unicode normalization. + (#434, #442, sponsored by @istqborg) + +Fixes: + +- Make `\markdownInput` search in `\l_file_search_path_seq`. + (#443, reported by @robertjlee) + +Documentation: + +- Add a link to a work-in-progress article for TUGboat 45:2 to `README.md`. + (7a1a7ea0) + +Fixes: + +- Correctly sort YAML map keys with mixed types. (#433, #441) + ## 3.5.0 (2024-04-29) Development: -- Add `\markinline` plain TeX command. (#300, #439) +- Add `\markinline` plain TeX command. (#300, #439, [matrix.org][matrix-439]) - Support incremental definitions of token renderers and renderer prototypes in the `\markdownSetup` command. (#232, #435, 540a83c0, [matrix.org][matrix-435], #437, #438, @@ -12,12 +89,13 @@ Development: [on TeX StackExchange][tse-716400]) [matrix-435]: https://matrix.to/#/!UeAwznpYwwsinVTetR:matrix.org/$k4ky6I-uvxdp8ipVlHvef5JXfIfPQvFtXOAD_ogF2uU?via=matrix.org&via=im.f3l.de + [matrix-439]: https://matrix.to/#/!pznomuvubVyxElflTe:matrix.org/$Gp9CYKWP3h_gyFyArnW3Y3CJzVXefWYThjlyB58zvP8?via=matrix.org&via=im.f3l.de [tse-716400]: https://tex.stackexchange.com/questions/716362/convert-control-sequence-with-a-variable-number-of-parameters-into-a-token-list/716400#716400 Default Renderer Prototypes: - Add default renderers for unnumbered sections in LaTeX. - (#401, istqborg/istqb_product_base#23, #430, reported by @felinecrp, + (#401, istqborg/istqb_product_base#23, #430, reported by @felipecrp, sponsored by @istqborg) ## 3.4.3 (2024-04-04) @@ -655,7 +733,7 @@ Development: - Add support for strike-throughs, fenced divs, subscripts, superscripts, and fancy lists. (#149, #160, #162, #168, #170) -- Add facade in front of expl3 inferface for YAML metadata. (#118, #175) +- Add facade in front of expl3 interface for YAML metadata. (#118, #175) - Add `\setupmarkdown` and `\inputmarkdown` commands to ConTeXt. (#17, #176) Fixes: @@ -735,7 +813,7 @@ Docker: Documentation: -- Remove disfunctional badges for Docker from `README.md`. (ad00b58, 707cad9) +- Remove dysfunctional badges for Docker from `README.md`. (ad00b58, 707cad9) - Link to TUG's version of the TUG 2021 video in `README.md`. (1462411) Miscellaneous: @@ -996,7 +1074,7 @@ Fixes: Fixes: - String text and parenthetical citations. (e6026c1) -- Escape autolink labels even when hybrid mode is enabled. (repored by @iwelch, +- Escape autolink labels even when hybrid mode is enabled. (reported by @iwelch, 693e134) - Protect LaTeX strong emphasis renderer prototype and make it detect font. (reported by @iwelch, 89a031a) diff --git a/macros/generic/markdown/DEPENDS.txt b/macros/generic/markdown/DEPENDS.txt new file mode 100644 index 0000000000..3f73ad3431 --- /dev/null +++ b/macros/generic/markdown/DEPENDS.txt @@ -0,0 +1,21 @@ +hard l3kernel +hard lt3luabridge +hard lua-uni-algos +soft amsfonts +soft amsmath +soft catchfile +soft csvsimple +soft epstopdf-pkg +soft etoolbox +soft fancyvrb +soft gobble +soft graphics +soft grffile +soft latex +soft ltxcmds +soft paralist +soft pgf +soft soul +soft tools +soft url +soft verse diff --git a/macros/generic/markdown/README.md b/macros/generic/markdown/README.md index 69fdc4ab30..2a02ee9736 100644 --- a/macros/generic/markdown/README.md +++ b/macros/generic/markdown/README.md @@ -18,7 +18,7 @@ Markdown The Markdown package converts [CommonMark][] markup to TeX commands. The functionality is provided both as a Lua module, and as plain TeX, LaTeX, and ConTeXt macro packages that can be used to directly typeset TeX documents -containing markdown markup. Unlike other convertors, the Markdown package does +containing markdown markup. Unlike other converters, the Markdown package does not require any external programs, and makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged. đ @@ -192,8 +192,9 @@ For further information, consult one of the following: - [Markdown 2.15.0: What's New?][tb133], - [Markdown 2.17.1: What's New, What's Next?][tb135], - [Attributes in Markdown][tb136], - - Markdown 3 at TUG 2023: Reflections from the Q&A session ([preprint][tb138]), and - - Fast Regression Testing of TeX Packages: The Unreasonable Effectiveness of Batching ([preprint][tb139]). + - [Markdown 3 at TUG 2023: Reflections from the Q&A session][tb138], + - Fast Regression Testing of TeX Packages: The Unreasonable Effectiveness of Batching ([preprint][tb139]), and + - Markdown Themes in Practice ([preprint][tb140]). 5. Journal articles published by [CSTUG Bulletin][csbul] (in Czech and Slovak): - [Rendering Markdown inside TeX Documents][10.5300/2016-1-4/78], - [Markdown 2.8.1: Boldly Unto the Throne of Lightweight Markup in TeX][10.5300/2020-1-2/48], @@ -219,15 +220,16 @@ For further information, consult one of the following: [overleaf-5]: https://www.overleaf.com/latex/examples/writing-posters-with-markdown/jtbgmmgqrqmh "Writing Posters with Markdown" [overleaf-6]: https://www.overleaf.com/latex/examples/using-markdown-in-latex-documents/whdrnpcpnwrm "Using Markdown in LaTeX documents" - [tb119]: https://www.tug.org/TUGboat/tb38-2/tb119novotny.pdf "Using Markdown inside TeX documents" - [tb124]: https://www.tug.org/TUGboat/tb40-1/tb124novotny-markdown.pdf "Markdown 2.7.0: Towards lightweight markup in TeX" - [tb129]: https://www.tug.org/TUGboat/tb41-3/tb129novotny-frozen.pdf "Making Markdown into a Microwave Meal" - [tb131]: https://www.tug.org/TUGboat/tb42-2/tb131novotny-markdown.pdf "Markdown 2.10.0: LaTeX Themes & Snippets, Two Flavors of Comments, and LuaMetaTeX" - [tb133]: https://www.tug.org/TUGboat/tb43-1/tb133novotny-markdown.pdf "Markdown 2.15.0: What's New?" - [tb135]: https://www.tug.org/TUGboat/tb43-3/tb135novotny-markdown.pdf "Markdown 2.17.1: What's New, What's Next?" - [tb136]: https://www.tug.org/TUGboat/tb44-1/tb136novotny-markdown-attr.pdf "Attributes in Markdown" - [tb138]: https://www.overleaf.com/read/mjghwhrbgmfj "Markdown 3 at TUG 2023: Reflections from the Q&A session" - [tb139]: https://github.com/Witiko/fast-regression-testing/releases/download/latest/tb139starynovotny-testing.pdf "Fast Regression Testing of TeX Packages: The Unreasonable Effectiveness of Batching" + [tb119]: https://www.tug.org/TUGboat/tb38-2/tb119novotny.pdf "Using Markdown inside TeX documents" + [tb124]: https://www.tug.org/TUGboat/tb40-1/tb124novotny-markdown.pdf "Markdown 2.7.0: Towards lightweight markup in TeX" + [tb129]: https://www.tug.org/TUGboat/tb41-3/tb129novotny-frozen.pdf "Making Markdown into a Microwave Meal" + [tb131]: https://www.tug.org/TUGboat/tb42-2/tb131novotny-markdown.pdf "Markdown 2.10.0: LaTeX Themes & Snippets, Two Flavors of Comments, and LuaMetaTeX" + [tb133]: https://www.tug.org/TUGboat/tb43-1/tb133novotny-markdown.pdf "Markdown 2.15.0: What's New?" + [tb135]: https://www.tug.org/TUGboat/tb43-3/tb135novotny-markdown.pdf "Markdown 2.17.1: What's New, What's Next?" + [tb136]: https://www.tug.org/TUGboat/tb44-1/tb136novotny-markdown-attr.pdf "Attributes in Markdown" + [tb138]: https://www.tug.org/TUGboat/tb44-3/tb138starynovotny-markdown-qa.pdf "Markdown 3 at TUG 2023: Reflections from the Q&A session" + [tb139]: https://github.com/Witiko/fast-regression-testing/releases/download/latest/tb139starynovotny-testing.pdf "Fast Regression Testing of TeX Packages: The Unreasonable Effectiveness of Batching" + [tb140]: https://www.tug.org/tug2024/preprints/starynovotny-markdown-themes.pdf "Markdown Themes in Practice" [tb131-slides]: https://tug.org/tug2021/assets/pdf/tug2021-novotny-slides.pdf "Markdown 2.10.0: LaTeX Themes & Snippets, Two Flavors of Comments, and LuaMetaTeX" [tb131-video]: https://youtu.be/i2GJMnLCZls "Markdown 2.10.0: LaTeX Themes & Snippets, Two Flavors of Comments, and LuaMetaTeX" diff --git a/macros/generic/markdown/VERSION b/macros/generic/markdown/VERSION index e4e9a98451..c2b2c7e0ab 100644 --- a/macros/generic/markdown/VERSION +++ b/macros/generic/markdown/VERSION @@ -1 +1 @@ -3.5.0-0-gfd01a252 (2024-04-29) +3.6.2-0-g6c30af7e (2024-07-14) diff --git a/macros/generic/markdown/docstrip.cfg b/macros/generic/markdown/docstrip.cfg index 9dc5f65230..959a3a21c3 100644 --- a/macros/generic/markdown/docstrip.cfg +++ b/macros/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-2024 VĂt StarĂ˝ NovotnĂ˝^^J% +-- Copyright (C) 2016-2024 VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur^^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% @@ -62,7 +62,7 @@ \let\luapostamble\empty \declarepreamble\texpreamble -Copyright (C) 2016-2024 VĂt StarĂ˝ NovotnĂ˝ +Copyright (C) 2016-2024 VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c diff --git a/macros/generic/markdown/libraries/markdown-tinyyaml.lua b/macros/generic/markdown/libraries/markdown-tinyyaml.lua index 36cef293ed..25b351f7e4 100644 --- a/macros/generic/markdown/libraries/markdown-tinyyaml.lua +++ b/macros/generic/markdown/libraries/markdown-tinyyaml.lua @@ -253,7 +253,9 @@ function Parser:parsestring(line, stopper) end line = ssub(line, 2) end - return rtrim(buf), line + buf = rtrim(buf) + local val = tonumber(buf) or buf + return val, line end local function isemptyline(line) diff --git a/macros/generic/markdown/markdown.dtx b/macros/generic/markdown/markdown.dtx index bbbd06e8bb..97fa8d6b56 100644 --- a/macros/generic/markdown/markdown.dtx +++ b/macros/generic/markdown/markdown.dtx @@ -122,7 +122,7 @@ --- title: A Markdown Interpreter for \TeX url: https://github.com/witiko/markdown -authors: [VĂt StarĂ˝ NovotnĂ˝] +authors: [VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur] email: witiko@mail.muni.cz revision: \markdownVersion date: \markdownLastModified @@ -796,6 +796,7 @@ abbr { %<*themes-witiko-markdown-techdoc> \ProvidesPackage{markdownthemewitiko_markdown_techdoc}[2022/12/13] \RequirePackage{etoolbox} +\gdef\ltd@title@author{\@gobble}% \markdownSetup{ renderers = { head*Four = {\paragraph{#1}\leavevmode}, @@ -804,6 +805,7 @@ abbr { codeSpan = {\inline{#1}}, jekyllData(End) = {% \AfterEndPreamble{% + \hypersetup{pdfauthor=\ltd@title@author}% \printtitlepage \tableofcontents {\def\addcontentsline##1##2##3{}\listoffigures}% @@ -812,8 +814,7 @@ abbr { }, jekyllDataRenderers = { /authors/* = {% - \gdef\ltd@title@author{#1}% - \hypersetup{pdfauthor={#1}}% + \expandafter\gdef\expandafter\ltd@title@author\expandafter{\ltd@title@author, #1}% }, title = {% \gdef\ltd@title@title{#1}% @@ -875,7 +876,7 @@ abbr { --- title: Markdown Package User Manual -author: VĂt StarĂ˝ NovotnĂ˝ +author: VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur date: \markdownVersion{} \markdownLastModified{} --- @@ -890,7 +891,7 @@ Introduction The [Markdown package][pkg] converts [CommonMark][] markup to \TeX{} commands. The functionality is provided both as a Lua module and as plain \TeX{}, \LaTeX{}, and \Hologo{ConTeXt} macro packages that can be used to directly typeset \TeX{} documents -containing markdown markup. Unlike other convertors, the Markdown package +containing markdown markup. Unlike other converters, the Markdown package does not require any external programs, and makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged. đ @@ -928,9 +929,9 @@ documentation][techdoc]. local metadata = { version = "(((VERSION)))", comment = "A module for the conversion from markdown to plain TeX", - author = "John MacFarlane, Hans Hagen, VĂt StarĂ˝ NovotnĂ˝", + author = "John MacFarlane, Hans Hagen, VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur", copyright = {"2009-2016 John MacFarlane, Hans Hagen", - "2016-2023 VĂt StarĂ˝ NovotnĂ˝"}, + "2016-2024 VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur"}, license = "LPPL 1.3c" } @@ -965,20 +966,28 @@ requirements. Installation ------------ -If Markdown is not included in your \TeX{} distribution, you will need to -install it. +If the Markdown package is not included in your \TeX{} distribution, you will +need to install it. -First, download the package from the repository using Git: +From [Releases][], download [an archive `markdown.zip` for this version of the +Markdown package (\markdownShortVersion{})][this-release] or a different version +that you wish to install. Then, unzip the archive. If you downloaded an archive +for a different version of the Markdown package, you should now locate a file +named `markdown.html` with the user manual for that version, open it, and +follow the installation steps in it rather than the steps from this manual. + + [releases]: https://github.com/witiko/markdown/releases (Releases - witiko/markdown) + [this-release]: https://github.com/witiko/markdown/releases/download/\markdownShortVersion{}/markdown.zip (Release \markdownShortVersion{} - witiko/markdown) + +Alternatively, download the package from the repository using Git, enter the +directory named `markdown` and run the `make base` command using GNU Make: ``` sh git clone https://github.com/witiko/markdown -`````` -Next, enter the directory named `markdown` and run the `make base` command using -GNU Make: -``` sh cd markdown make base `````` -This should produce the following files: + +Either of the two abovelisted approaches should produce the following files: * `markdown.lua`: The Lua module * `libraries/markdown-tinyyaml.lua`: An external library for reading \acro{yaml} @@ -1039,6 +1048,8 @@ This is where the individual files should be placed: * `./markdownthemewitiko_markdown_defaults.sty` * `./t-markdownthemewitiko_markdown_defaults.tex` +The file `markdown.tex` *must* be placed in a directory named `markdown`. + %</manual> %<*lua> % \fi @@ -1138,6 +1149,17 @@ end)() %: A package that implements Unicode case-folding in \TeX{} Live${}\geq{}2020$. % % \end{markdown} +% \iffalse +%</lua> +%<*depends> +% \fi +% \begin{macrocode} +hard lua-uni-algos +% \end{macrocode} +% \iffalse +%</depends> +%<*lua> +% \fi % \begin{macrocode} local uni_algos = require("lua-uni-algos") % \end{macrocode} @@ -1156,6 +1178,13 @@ local uni_algos = require("lua-uni-algos") % \end{markdown} % \iffalse %</lua> +%<*depends> +% \fi +% \begin{macrocode} +# hard lua-tinyyaml # TODO: Uncomment after TeX Live 2022 has been deprecated. +% \end{macrocode} +% \iffalse +%</depends> %<*tex> % \fi % \par @@ -1175,18 +1204,33 @@ local uni_algos = require("lua-uni-algos") % such as options, renderers, and renderer prototypes. % % \end{markdown} -% \begin{macrocode} +% \iffalse %</tex> +%<*depends> +% \fi +% \begin{macrocode} +hard l3kernel +% \end{macrocode} +% \iffalse +%</depends> %<*context> +% \fi +% \begin{macrocode} \unprotect +% \end{macrocode} +% \iffalse %</context> %<*context,tex> +% \fi +% \begin{macrocode} \ifx\ExplSyntaxOn\undefined \input expl3-generic \fi +% \end{macrocode} +% \iffalse %</context,tex> %<*tex> -% \end{macrocode} +% \fi % \begin{markdown} % % \pkg{lt3luabridge} @@ -1195,6 +1239,20 @@ local uni_algos = require("lua-uni-algos") % with other TeX engines that provide the *shell escape* capability, % which allows them to execute code with the system's shell. % +% \end{markdown} +% \iffalse +%</tex> +%<*depends> +% \fi +% \begin{macrocode} +hard lt3luabridge +% \end{macrocode} +% \iffalse +%</depends> +%<*tex> +% \fi +% \begin{markdown} +% % The plain \TeX{} part of the package also requires the following Lua module: % % \pkg{Lua File System} @@ -1239,10 +1297,13 @@ local uni_algos = require("lua-uni-algos") %<*themes-witiko-dot,latex-themes-witiko-graphicx-http> % \fi % \begin{macrocode} -\NeedsTeXFormat{LaTeX2e}% +\NeedsTeXFormat{LaTeX2e} +\RequirePackage{expl3} % \end{macrocode} % \iffalse %</themes-witiko-dot,latex-themes-witiko-graphicx-http> +%</latex> +%<*depends> % \fi % \begin{markdown} % a \TeX{} engine that extends \Hologo{eTeX}, and all the plain \TeX{} @@ -1259,10 +1320,23 @@ local uni_algos = require("lua-uni-algos") % %: A package that provides the `\url` macro for the typesetting of links. % +% \end{markdown} +% \begin{macrocode} +soft url +% \end{macrocode} +% \begin{markdown} +% % \pkg{graphicx} % %: A package that provides the `\includegraphics` macro for the typesetting -% of images. +% of images.Furthermore, it also provides a key-value interface that is +% used in the default renderer prototypes for image attribute contexts. +% +% \end{markdown} +% \begin{macrocode} +soft graphics +% \end{macrocode} +% \begin{markdown} % % \pkg{paralist} % @@ -1271,45 +1345,85 @@ local uni_algos = require("lua-uni-algos") % ordered lists, and definition lists as well as the rendering of % fancy lists. % +% \end{markdown} +% \begin{macrocode} +soft paralist +% \end{macrocode} +% \begin{markdown} +% % \pkg{ifthen} % %: A package that provides a concise syntax for the inspection of macro % values. It is used in the `witiko/dot` \LaTeX{} theme (see Section % <#sec:latexthemes>). % +% \end{markdown} +% \begin{macrocode} +soft latex +soft epstopdf-pkg # required by `latex` +% \end{macrocode} +% \begin{markdown} +% % \pkg{fancyvrb} % %: A package that provides the `\VerbatimInput` macros for the verbatim % inclusion of files containing code. % +% \end{markdown} +% \begin{macrocode} +soft fancyvrb +% \end{macrocode} +% \begin{markdown} +% % \pkg{csvsimple} % %: A package that provides the `\csvautotabular` macro for typesetting % \acro{csv} files in the default renderer prototypes for iA\\,Writer % content blocks. % +% \end{markdown} +% \begin{macrocode} +soft csvsimple +soft pgf # required by `csvsimple`, which loads `pgfkeys.sty` +soft tools # required by `csvsimple`, which loads `shellesc.sty` +% \end{macrocode} +% \begin{markdown} +% % \pkg{gobble} % %: A package that provides the `\@gobblethree` \TeX{} command that % is used in the default renderer prototype for citations. The package % is included in \TeX Live${}\geq{}2016$. % +% \end{markdown} +% \begin{macrocode} +soft gobble +% \end{macrocode} +% \begin{markdown} +% % \pkg{amsmath} and \pkg{amssymb} % %: Packages that provide symbols used for drawing ticked and unticked % boxes. % +% \end{markdown} +% \begin{macrocode} +soft amsmath +soft amsfonts +% \end{macrocode} +% \begin{markdown} +% % \pkg{catchfile} % %: 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 % <#sec:latexthemes>. % -% \pkg{graphicx} -% -%: A package that builds upon the \pkg{graphics} package, which is part of -% the \LaTeXe{} kernel. It provides a key-value interface that is used in -% the default renderer prototypes for image attribute contexts. +% \end{markdown} +% \begin{macrocode} +soft catchfile +% \end{macrocode} +% \begin{markdown} % % \pkg{grffile} % @@ -1320,6 +1434,12 @@ local uni_algos = require("lua-uni-algos") % the `witiko/dot` and `witiko/graphicx/http` \LaTeX{} themes, see Section % <#sec:latexthemes>. % +% \end{markdown} +% \begin{macrocode} +soft grffile +% \end{macrocode} +% \begin{markdown} +% % \pkg{etoolbox} % %: A package that is used to polyfill the general hook management system in @@ -1327,10 +1447,23 @@ local uni_algos = require("lua-uni-algos") % <#sec:latex-yaml-metadata>, and also in the default renderer prototype % for identifier attributes. % +% \end{markdown} +% \begin{macrocode} +soft etoolbox +% \end{macrocode} +% \begin{markdown} +% % \pkg{soulutf8} % %: A package that is used in the default renderer prototype for % strike-throughs and marked text. +% <!-- TODO: 1,$s/soulutf8/soul/g in TeX Live 2023. --> +% +% \end{markdown} +% \begin{macrocode} +soft soul +% \end{macrocode} +% \begin{markdown} % % \pkg{ltxcmds} % @@ -1338,6 +1471,12 @@ local uni_algos = require("lua-uni-algos") % \pkg{listings} packages are loaded in the default renderer prototype % for fenced code blocks. % +% \end{markdown} +% \begin{macrocode} +soft ltxcmds +% \end{macrocode} +% \begin{markdown} +% % \pkg{verse} % %: A package that is used in the default renderer prototypes for @@ -1345,10 +1484,13 @@ local uni_algos = require("lua-uni-algos") % % \end{markdown} % \begin{macrocode} -\RequirePackage{expl3} +soft verse % \end{macrocode} +% \begin{markdown} +% +% \end{markdown} % \iffalse -%</latex> +%</depends> %<*context> % \fi % \par @@ -1691,9 +1833,6 @@ In this section, I will describe the individual parts of the Markdown package. Each part will be shown by example, leaving the implementation details to the [technical documentation][techdoc]. - [techdoc]: https://mirrors.ctan.org/macros/generic/markdown/markdown.pdf - (A Markdown Interpreter for \TeX{}) - /markdown-interfaces.md /markdown-options.md /markdown-tokens.md @@ -2502,11 +2641,12 @@ defaultOptions.eagerCache = false : Every call to the function \luamref{new}`(options)` will produce a new conversion function that will not be cached. This is slower than caching conversion functions and may expose bugs related to memory - leaks in the creation of conversion functions, see also issue [#226][1]. + leaks in the creation of conversion functions, see also issue + [#226][issue-226]. This was the default behavior until version 3.0.0 of the Markdown package. - [1]: https://github.com/witiko/markdown/pull/226#issuecomment-1599641634 + [issue-226]: https://github.com/witiko/markdown/pull/226#issuecomment-1599641634 % \end{markdown} % \iffalse @@ -2574,6 +2714,107 @@ local singletonCache = { % \iffalse %</lua> %<*manual-options> + +#### Option `unicodeNormalization` + +`unicodeNormalization` (default value: `true`) + +% \fi +% \begin{markdown} +% +% \Optitem[true]{unicodeNormalization}{\opt{true}, \opt{false}} +% +: true + + : Markdown documents will be normalized using one of the four [Unicode + normalization forms][unicode-normalization] before conversion. The + Unicode normalization norm used is determined by option + \Opt{unicodeNormalizationForm}. + +: false + + : Markdown documents will not be Unicode-normalized before conversion. + + [unicode-normalization]: https://unicode.org/faq/normalization.html + +% \end{markdown} +% \iffalse +%</manual-options> +%<*tex> +% \fi +% \begin{macrocode} +\@@_add_lua_option:nnn + { unicodeNormalization } + { boolean } + { true } +% \end{macrocode} +% \iffalse +%</tex> +%<*lua,lua-cli> +% \fi +% \begin{macrocode} +defaultOptions.unicodeNormalization = true +% \end{macrocode} +% \par +% \iffalse +%</lua,lua-cli> +%<*manual-options> + +#### Option `unicodeNormalizationForm` + +`unicodeNormalizationForm` (default value: `nfc`) + +% \fi +% \begin{markdown} +% +% \Optitem[nfc]{unicodeNormalizationForm}{\opt{nfc}, \opt{nfd}, \opt{nfkc}, \opt{nfkd}} +% +: nfc + + : When option \Opt{unicodeNormalization} has been enabled, markdown documents + will be normalized using Unicode Normalization Form C (NFC) before + conversion. + +: nfd + + : When option \Opt{unicodeNormalization} has been enabled, markdown documents + will be normalized using Unicode Normalization Form D (NFD) before + conversion. + +: nfkc + + : When option \Opt{unicodeNormalization} has been enabled, markdown documents + will be normalized using Unicode Normalization Form KC (NFKC) before + conversion. + +: nfkd + + : When option \Opt{unicodeNormalization} has been enabled, markdown documents + will be normalized using Unicode Normalization Form KD (NFKD) before + conversion. + +% \end{markdown} +% \iffalse +%</manual-options> +%<*tex> +% \fi +% \begin{macrocode} +\@@_add_lua_option:nnn + { unicodeNormalizationForm } + { string } + { nfc } +% \end{macrocode} +% \iffalse +%</tex> +%<*lua,lua-cli> +% \fi +% \begin{macrocode} +defaultOptions.unicodeNormalizationForm = "nfc" +% \end{macrocode} +% \par +% \iffalse +%</lua,lua-cli> +%<*manual-options> % \fi % \begin{markdown} % @@ -7128,7 +7369,7 @@ defaultOptions.html = true : false : Enable the escaping of special plain \TeX{} characters outside verbatim - environments, so that they are not interpretted by \TeX{}. This is + environments, so that they are not interpreted by \TeX{}. This is encouraged when typesetting automatically generated content or markdown documents that were not prepared with this package in mind. @@ -8081,10 +8322,6 @@ following text: > Here is a note reference,[^1] and another.[^longnote] > -> [^1]: Here is the note. -> -> [^longnote]: Here's one with multiple blocks. -> > Subsequent paragraphs are indented to show that they > belong to the previous note. > @@ -8135,10 +8372,6 @@ following text: > Here is a note reference,[^1] and another.[^longnote] > -> [^1]: Here is the note. -> -> [^longnote]: Here's one with multiple blocks. -> > Subsequent paragraphs are indented to show that they > belong to the previous note. > @@ -8427,7 +8660,7 @@ defaultOptions.rawAttribute = false % : true - : Enable [relative references][1] in autolinks: + : Enable [relative references][rfc3986] in autolinks: ``` md I conclude in Section <#conclusion>. @@ -8443,7 +8676,7 @@ defaultOptions.rawAttribute = false : Disable relative references in autolinks. - [1]: https://datatracker.ietf.org/doc/html/rfc3986#section-4.2 + [rfc3986]: https://datatracker.ietf.org/doc/html/rfc3986#section-4.2 % \end{markdown} % \iffalse @@ -10385,9 +10618,9 @@ luatex document.tex A PDF document named `document.pdf` should be produced and contain the following text: -> \\(E=mc^2\\) +> \(E=mc^2\) > -> \\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\] +> \[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\] ##### Lua CLI Example {.unnumbered} @@ -10427,13 +10660,13 @@ script file using [Kpathsea][]. A PDF document named `document.pdf` should be produced and contain the following text: -> \\\(E=mc^2\\) -> -> \\\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\] -> > \\(E=mc^2\\) > > \\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\] +> +> \(E=mc^2\) +> +> \[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\] ##### Plain \TeX{} Example {.unnumbered} @@ -10458,9 +10691,9 @@ luatex document.tex A PDF document named `document.pdf` should be produced and contain the following text: -> \\(E=mc^2\\) +> \(E=mc^2\) > -> \\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\] +> \[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\] ##### \LaTeX{} Example {.unnumbered} @@ -10486,9 +10719,9 @@ lualatex document.tex A PDF document named `document.pdf` should be produced and contain the following text: -> \\(E=mc^2\\) +> \(E=mc^2\) > -> \\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\] +> \[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\] ##### \Hologo{ConTeXt} Example {.unnumbered} @@ -10514,9 +10747,9 @@ context --luatex document.tex A PDF document named `document.pdf` should be produced and contain the following text: -> \\(E=mc^2\\) +> \(E=mc^2\) > -> \\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\] +> \[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\] %</manual-options> %<*tex> @@ -11221,7 +11454,7 @@ for i = 1, #arg do end % \end{macrocode} % \begin{markdown} -% The first argument that matches none of the above patters is assumed to be +% The first argument that matches none of the above patterns is assumed to be % the input filename. The input filename should correspond to the Markdown % document that is going to be converted to a \TeX{} document. % \end{markdown} @@ -11230,7 +11463,7 @@ for i = 1, #arg do input_filename = arg[i] % \end{macrocode} % \begin{markdown} -% The first argument that matches none of the above patters is assumed to be +% The first argument that matches none of the above patterns is assumed to be % the output filename. The output filename should correspond to the \TeX{} % document that will result from the conversion. % \end{markdown} @@ -11755,47 +11988,10 @@ For more information, see the examples for the \Opt{finalizeCache} option. % % \end{markdown} % \begin{macrocode} -\cs_generate_variant:Nn - \@@_add_plain_tex_option:nnn - { nnV } -% \end{macrocode} -% \begin{markdown} -% -% Use the \pkg{lt3luabridge} library to determine the default value of the -% \mref{markdownOptionOutputDir} macro by using the environmental variable -% `TEXMF_OUTPUT_DIRECTORY` that is available since TeX~Live 2024. -% -% \end{markdown} -% \begin{macrocode} -\ExplSyntaxOff -\input lt3luabridge.tex -\ExplSyntaxOn -\bool_if:nTF - { - \cs_if_exist_p:N - \luabridge_tl_set:Nn && - ( - \int_compare_p:nNn - { \g_luabridge_method_int } - = - { \c_luabridge_method_directlua_int } || - \sys_if_shell_unrestricted_p: - ) - } - { - \luabridge_tl_set:Nn - \l_tmpa_tl - { print(os.getenv("TEXMF_OUTPUT_DIRECTORY") or ".") } - } - { - \tl_set:Nn - \l_tmpa_tl - { . } - } -\@@_add_plain_tex_option:nnV +\@@_add_plain_tex_option:nnn { outputDir } { path } - \l_tmpa_tl + { . } % \end{macrocode} % \iffalse %</tex> @@ -12071,22 +12267,73 @@ A PDF document named `document.pdf` should be produced and contain the text % \end{macrocode} % \begin{markdown} % -% Do not override options defined before loading the package. +% Use the \pkg{lt3luabridge} library to determine the default value of the +% \mref{markdownOptionOutputDir} macro by using the environmental variable +% `TEXMF_OUTPUT_DIRECTORY` that is available since TeX~Live 2024. % % \end{markdown} % \begin{macrocode} - \@@_option_tl_to_csname:nN + \str_if_eq:nnTF { #1 } - \l_tmpa_tl - \cs_if_exist:cF - { \l_tmpa_tl } + { outputDir } + { \@@_define_option_command_output_dir: } { - \@@_get_default_option_value:nN - { #1 } - \l_tmpa_tl - \@@_set_option_value:nV +% \end{macrocode} +% \begin{markdown} +% +% Do not override options defined before loading the package. +% +% \end{markdown} +% \begin{macrocode} + \@@_option_tl_to_csname:nN { #1 } \l_tmpa_tl + \cs_if_exist:cF + { \l_tmpa_tl } + { + \@@_get_default_option_value:nN + { #1 } + \l_tmpa_tl + \@@_set_option_value:nV + { #1 } + \l_tmpa_tl + } + } + } +\ExplSyntaxOff +\input lt3luabridge.tex +\ExplSyntaxOn +\cs_new:Nn + \@@_define_option_command_output_dir: + { + \cs_if_free:NT + \markdownOptionOutputDir + { + \bool_if:nTF + { + \cs_if_exist_p:N + \luabridge_tl_set:Nn && + ( + \int_compare_p:nNn + { \g_luabridge_method_int } + = + { \c_luabridge_method_directlua_int } || + \sys_if_shell_unrestricted_p: + ) + } + { + \luabridge_tl_set:Nn + \l_tmpa_tl + { print(os.getenv("TEXMF_OUTPUT_DIRECTORY") or ".") } + \tl_gset:NV + \markdownOptionOutputDir + \l_tmpa_tl + } + { + \tl_gset:Nn + \markdownOptionOutputDir + { . } + } } } \cs_new:Nn @@ -13938,7 +14185,7 @@ following text: #### Code Block Renderers The \mdef{markdownRendererInputVerbatim} macro represents a code block. The macro receives a single argument that corresponds to the -filename of a file contaning the code block contents. +filename of a file containing the code block contents. % \end{markdown} % @@ -13972,7 +14219,7 @@ filename of a file contaning the code block contents. The \mdef{markdownRendererInputFencedCode} macro represents a fenced code block. This macro will only be produced, when the \Opt{fencedCode} option is enabled. The macro receives three arguments that correspond to the filename of -a file contaning the code block contents, the fully escaped code fence infostring +a file containing the code block contents, the fully escaped code fence infostring that can be directly typeset, and the raw code fence infostring that can be used outside typesetting. @@ -15188,7 +15435,7 @@ following text: % \begin{markdown} #### Ellipsis Renderer -The \mdef{markdownRendererEllipsis} macro replaces any occurance of ASCII +The \mdef{markdownRendererEllipsis} macro replaces any occurrence of ASCII ellipses in the input text. This macro will only be produced, when the \Opt{smartEllipses} option is enabled. The macro receives no arguments. @@ -18334,7 +18581,7 @@ following text: #### Raw Content Renderers The \mdef{markdownRendererInputRawInline} macro represents an inline raw span. -The macro receives two arguments: the filename of a file contaning the inline +The macro receives two arguments: the filename of a file containing the inline raw span contents and the raw attribute that designates the format of the inline raw span. This macro will only be produced, when the \Opt{rawAttribute} option is enabled. @@ -18369,7 +18616,7 @@ option is enabled. % \begin{markdown} The \mdef{markdownRendererInputRawBlock} macro represents a raw block. The -macro receives two arguments: the filename of a file contaning the raw block +macro receives two arguments: the filename of a file containing the raw block and the raw attribute that designates the format of the raw block. This macro will only be produced, when the \Opt{rawAttribute} and \Opt{fencedCode} options are enabled. @@ -19267,7 +19514,7 @@ following content: \markdownSetup{ renderers = { table = {% - This is a table with caption \emph{#1} that is #3 colums wide + This is a table with caption \emph{#1} that is #3 columns wide and #2 rows long. \rowCounter=0% \def\rowTotal{#2}% @@ -19296,7 +19543,7 @@ A PDF document named `document.pdf` should be produced and contain the following text: > This is a table with caption *Demonstration of pipe table syntax* that is 4 -> colums wide and 4 rows long. As for the alignment, column number 1 is +> columns 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 > *Right*, column number 2 says *Left*, column number 3 says *Default*, and @@ -19353,7 +19600,7 @@ following content: \input markdown \def\markdownOptionTexMathDollars{true} \def\markdownRendererInlineMath#1{$#1\dots$} -\def\markdownRendererDisplayMath#1{$$#1\eqno(1)$$} +\def\markdownRendererDisplayMath#1{$$#1\nonumber$$} \markdownBegin $E=mc^2$ @@ -19370,7 +19617,7 @@ following text: > $E=mc^2\dots$ > -> $$\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\eqno(1)$$ +> $$\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\nonumber$$ ##### \LaTeX{} Example {.unnumbered} @@ -20155,7 +20402,7 @@ following text: %#### Generating Plain \TeX{} Token Renderer Macros and Key-Values {#plain-tex-renderers} % % We define the command \mdef{@@_define_renderers:} that defines plain \TeX{} -% macros for token renderers. Futhermore, the `\markdownSetup` macro also accepts +% macros for token renderers. Furthermore, the `\markdownSetup` macro also accepts % the `renderers` key, whose value must be a list of key-values, where the keys % correspond to the markdown token renderer macros and the values are new % definitions of these token renderers. @@ -20873,7 +21120,7 @@ following text: %#### Generating Plain \TeX{} Token Renderer Prototype Macros and Key-Values {#plain-tex-renderer-prototypes} % % We define the command \mdef{@@_define_renderer_prototypes:} that defines plain \TeX{} -% macros for token renderer prototypes. Futhermore, the `\markdownSetup` macro also accepts +% macros for token renderer prototypes. Furthermore, the `\markdownSetup` macro also accepts % the `rendererPrototype` key, whose value must be a list of key-values, where the keys % correspond to the markdown token renderer prototype macros and the values are new % definitions of these token renderer prototypes. @@ -21499,7 +21746,7 @@ following code in our \LaTeX{} document: We can also set all plain \TeX{} options directly from \LaTeX{}. For example, to set the `\markdownOptionInputTempFileName` plain \TeX{} option to -`helper-script.lua`, we would inclde the following code in our \LaTeX{} +`helper-script.lua`, we would include the following code in our \LaTeX{} document: ``` tex @@ -22458,7 +22705,7 @@ end % Given a table `char_escapes` mapping escapable characters to escaped % strings and optionally a table `string_escapes` mapping escapable strings % to escaped strings, the \luamdef{util.escaper} method returns an escaper -% function that escapes all occurances of escapable strings and characters (in +% function that escapes all occurrences of escapable strings and characters (in % this order). % % The method uses \pkg{LPeg}, which is faster than the Lua `string.gsub` @@ -22487,7 +22734,7 @@ function util.escaper(char_escapes, string_escapes) % \begin{markdown} % If `string_escapes` is provided, turn `escapable` into the % $$\sum^^B{(`k`, `v`)\in`string_escapes`}`P(k) / v` + `escapable`$$ -% capture that replaces any occurance of the string `k` with the string +% capture that replaces any occurrence of the string `k` with the string % `v` for each $(`k`, `v`)\in`string_escapes`$. Note that the pattern % summation is not commutative and its operands are inspected in the % summation order during the matching. As a corrolary, the strings always @@ -25705,8 +25952,12 @@ function M.writer.new(options) local buffer = {} local prev_space = false local letter_found = false + local normalized_s = s + if not options.unicodeNormalization or options.unicodeNormalizationForm ~= "nfc" then + normalized_s = uni_algos.normalize.NFC(normalized_s) + end - for _, code in utf8.codes(uni_algos.normalize.NFC(s)) do + for _, code in utf8.codes(normalized_s) do local char = utf8.char(code) -- Remove everything up to the first letter. @@ -25761,8 +26012,12 @@ function M.writer.new(options) local buffer = {} local prev_space = false local letter_found = false + local normalized_s = s + if not options.unicodeNormalization or options.unicodeNormalizationForm ~= "nfc" then + normalized_s = uni_algos.normalize.NFC(normalized_s) + end - for _, code in utf8.codes(uni_algos.normalize.NFC(s)) do + for _, code in utf8.codes(normalized_s) do local char = utf8.char(code) -- Remove everything up to the first non-space. @@ -27551,19 +27806,21 @@ parsers.link_text = parsers.lbracket - (parsers.newline + parsers.lbracket + parsers.rbracket + parsers.blankline^2))))^0) * parsers.rbracket +parsers.link_label_body = -#(parsers.sp * parsers.rbracket) + * #((parsers.any - parsers.rbracket)^-999 * parsers.rbracket) + * Cs((parsers.alphanumeric^1 + + parsers.inticks + + parsers.autolink + + V("InlineHtml") + + ( parsers.backslash * parsers.backslash) + + ( parsers.backslash * (parsers.lbracket + parsers.rbracket) + + V("NoSoftLineBreakSpace") + + V("NoSoftLineBreakEndline") + + (parsers.any + - (parsers.newline + parsers.lbracket + parsers.rbracket + parsers.blankline^2))))^1) + parsers.link_label = parsers.lbracket - * -#(parsers.sp * parsers.rbracket) - * #((parsers.any - parsers.rbracket)^-999 * parsers.rbracket) - * Cs((parsers.alphanumeric^1 - + parsers.inticks - + parsers.autolink - + V("InlineHtml") - + ( parsers.backslash * parsers.backslash) - + ( parsers.backslash * (parsers.lbracket + parsers.rbracket) - + V("NoSoftLineBreakSpace") - + V("NoSoftLineBreakEndline") - + (parsers.any - - (parsers.newline + parsers.lbracket + parsers.rbracket + parsers.blankline^2))))^1) + * parsers.link_label_body * parsers.rbracket parsers.inparens_url = P{ parsers.lparent @@ -28453,6 +28710,9 @@ function M.reader.new(writer, options) -- List of references defined in the document local references + -- List of note references defined in the document + parsers.rawnotes = {} + % \end{macrocode} % \par % \begin{markdown} @@ -28490,6 +28750,19 @@ function M.reader.new(writer, options) return references[self.normalize_tag(tag)] end +% \end{macrocode} +% \par +% \begin{markdown} +% +% The \luamdef{reader->lookup_note_reference} method looks up a +% note reference with label `tag`. +% +% \end{markdown} +% \begin{macrocode} + function self.lookup_note_reference(tag) + return parsers.rawnotes[self.normalize_tag(tag)] + end + parsers.title_s_direct_ref = parsers.squote * Cs((parsers.html_entities + (parsers.anyescaped - parsers.squote - parsers.blankline^2))^0) @@ -28560,15 +28833,49 @@ function M.reader.new(writer, options) + #parsers.link_text * Cg(Cc("link_text"), "link_type") + parsers.note_opening = #(parsers.circumflex * parsers.link_text) + * Cg(Cc("note_inline"), "link_type") + + parsers.raw_note_opening = #( parsers.lbracket + * parsers.circumflex + * parsers.link_label_body + * parsers.rbracket) + * Cg(Cc("raw_note"), "link_type") + + local inline_note_element = Cg(Cc("note"), "element") + * parsers.note_opening + * Cg(parsers.circumflex * parsers.lbracket, "content") + + local image_element = Cg(Cc("image"), "element") + * parsers.image_opening + * Cg(parsers.exclamation * parsers.lbracket, "content") + + local note_element = Cg(Cc("note"), "element") + * parsers.raw_note_opening + * Cg(parsers.lbracket * parsers.circumflex, "content") + + local link_element = Cg(Cc("link"), "element") + * parsers.link_opening + * Cg(parsers.lbracket, "content") + + local opening_elements = parsers.fail + + if options.inlineNotes then + opening_elements = opening_elements + inline_note_element + end + + opening_elements = opening_elements + image_element + + if options.notes then + opening_elements = opening_elements + note_element + end + + opening_elements = opening_elements + link_element + parsers.link_image_opening = Ct( Cg(Cc("delimiter"), "type") * Cg(Cc(true), "is_opening") * Cg(Cc(false), "is_closing") - * ( Cg(Cc("image"), "element") - * parsers.image_opening - * Cg(parsers.exclamation * parsers.lbracket, "content") - + Cg(Cc("link"), "element") - * parsers.link_opening - * Cg(parsers.lbracket, "content"))) + * opening_elements) parsers.link_image_closing = Ct( Cg(Cc("delimiter"), "type") * Cg(Cc("link"), "element") @@ -28641,7 +28948,7 @@ function M.reader.new(writer, options) local value = t[i] if value.type == "delimiter" and value.is_opening and - (value.element == "link" or value.element == "image") + (value.element == "link" or value.element == "image" or value.element == "note") and not value.removed then if value.is_active then return i @@ -28784,6 +29091,15 @@ function M.reader.new(writer, options) rendered = writer.image(mapped, reference.url, reference.title, reference.attributes) end + if (t[opening_index].element == "note") then + if (t[opening_index].link_type == "note_inline") then + rendered = writer.note(mapped) + end + if (t[opening_index].link_type == "raw_note") then + rendered = writer.note(reference) + end + end + t[opening_index].rendered = rendered delete_parsed_content_in_range(t, opening_index + 1, closing_index) empty_content_in_range(t, opening_index, closing_index) @@ -28849,7 +29165,7 @@ function M.reader.new(writer, options) % \end{macrocode} % \begin{markdown} % -% Resolve an inline link [a](b "c") from the delimiters at `opening_index` and `closing_index` +% Resolve an inline link `[a](b "c")` from the delimiters at `opening_index` and `closing_index` % within a delimiter table `t`. Here, compared to other types of links, no reference definition is needed. % % \end{markdown} @@ -28862,7 +29178,20 @@ function M.reader.new(writer, options) % \end{macrocode} % \begin{markdown} % -% Resolve a shortcut link [a] from the delimiters at `opening_index` and `closing_index` within a delimiter table `t`. +% Resolve an inline note `^[a]` from the delimiters at `opening_index` and `closing_index` +% within a delimiter table `t`. +% +% \end{markdown} +% \begin{macrocode} + local function resolve_note_inline_link(t, opening_index, closing_index) + local inline_content = resolve_inline_following_content(t, closing_index, false, false) + render_link_or_image(t, opening_index, closing_index, closing_index, inline_content) + end + +% \end{macrocode} +% \begin{markdown} +% +% Resolve a shortcut link `[a]` from the delimiters at `opening_index` and `closing_index` within a delimiter table `t`. % Continue if a tag `a` is not found in the references. % % \end{markdown} @@ -28881,7 +29210,25 @@ function M.reader.new(writer, options) % \end{macrocode} % \begin{markdown} % -% Resolve a full link [a][b] from the delimiters at `opening_index` and `closing_index` within a delimiter table `t`. +% Resolve a note `[^a]` from the delimiters at `opening_index` and `closing_index` within a delimiter table `t`. +% Continue if a tag `a` is not found in the rawnotes. +% +% \end{markdown} +% \begin{macrocode} + local function resolve_raw_note_link(t, opening_index, closing_index) + local content = collect_link_content(t, opening_index + 1, closing_index - 1) + local r = self.lookup_note_reference(content) + + if r then + local parsed_ref = self.parser_functions.parse_blocks_nested(r) + render_link_or_image(t, opening_index, closing_index, closing_index, parsed_ref) + end + end + +% \end{macrocode} +% \begin{markdown} +% +% Resolve a full link `[a][b]` from the delimiters at `opening_index` and `closing_index` within a delimiter table `t`. % Continue if a tag `b` is not found in the references. % % \end{markdown} @@ -28902,7 +29249,7 @@ function M.reader.new(writer, options) % \end{macrocode} % \begin{markdown} % -% Resolve a collapsed link [a][] from the delimiters at `opening_index` and `closing_index` +% Resolve a collapsed link `[a][]` from the delimiters at `opening_index` and `closing_index` % within a delimiter table `t`. % Continue if a tag `a` is not found in the references. % @@ -28936,9 +29283,10 @@ function M.reader.new(writer, options) end for i,value in ipairs(t) do - if not value.is_closing or - value.type ~= "delimiter" or - not (value.element == "link" or value.element == "image") then + if not value.is_closing + or value.type ~= "delimiter" + or not (value.element == "link" or value.element == "image" or value.element == "note") + or value.removed then goto continue end @@ -28964,6 +29312,12 @@ function M.reader.new(writer, options) if (link_type == "collapsed") then resolve_collapsed_link(t, opener_position, i) end + if (link_type == "note_inline") then + resolve_note_inline_link(t, opener_position, i) + end + if (link_type == "raw_note") then + resolve_raw_note_link(t, opener_position, i) + end ::continue:: end @@ -29916,6 +30270,25 @@ end return function(input) % \end{macrocode} % \begin{markdown} +% Unicode-normalize the input. +% \end{markdown} +% \begin{macrocode} + if options.unicodeNormalization then + local form = options.unicodeNormalizationForm + if form == "nfc" then + input = uni_algos.normalize.NFC(input) + elseif form == "nfd" then + input = uni_algos.normalize.NFD(input) + elseif form == "nfkc" then + input = uni_algos.normalize.NFKC(input) + elseif form == "nfkd" then + input = uni_algos.normalize.NFKD(input) + else + error(format("Unknown normalization form %s", form)) + end + end +% \end{macrocode} +% \begin{markdown} % Since the Lua converter expects \acro{unix} line endings, normalize the % input. Also add a line ending at the end of the file in case the input file % has none. @@ -30220,7 +30593,7 @@ M.extensions.citations = function(citation_nbsps) ) * citation_name * (parsers.internal_punctuation - parsers.semicolon)^-1 - * ( parsers.spnlc + * ( parsers.spnlc / function(_) return end * citation_body_postnote + Cc("") * parsers.spnlc @@ -31653,6 +32026,8 @@ M.extensions.notes = function(notes, inline_notes) local parsers = self.parsers local writer = self.writer + local rawnotes = parsers.rawnotes + if inline_notes then local InlineNote = parsers.circumflex @@ -31671,8 +32046,6 @@ M.extensions.notes = function(notes, inline_notes) = #(parsers.lbracket * parsers.circumflex) * parsers.link_label / strip_first_char - local rawnotes = {} - -- like indirect_link local function lookup_note(ref) return writer.defer_call(function() @@ -32359,13 +32732,38 @@ M.extensions.jekyll_data = function(expect_jekyll_data) for k, _ in pairs(d) do table.insert(keys, k) end - table.sort(keys) +% \end{macrocode} +% \begin{markdown} +% +% For reproducibility, sort the keys. For mixed string-and-numeric keys, sort +% numeric keys before string keys. +% +% \end{markdown} +% \begin{macrocode} + table.sort(keys, function(first, second) + if type(first) ~= type(second) then + return type(first) < type(second) + else + return first < second + end + end) if not p then table.insert(buf, "\\markdownRendererJekyllDataBegin") end - if #d > 0 then + local is_sequence = false + if #d > 0 and #d == #keys then + for i=1, #d do + if d[i] == nil then + goto not_a_sequence + end + end + is_sequence = true + end + ::not_a_sequence:: + + if is_sequence then table.insert(buf, "\\markdownRendererJekyllDataSequenceBegin{") table.insert(buf, self.identifier(p or "null")) table.insert(buf, "}{") @@ -32420,7 +32818,7 @@ M.extensions.jekyll_data = function(expect_jekyll_data) end end - if #d > 0 then + if is_sequence then table.insert(buf, "\\markdownRendererJekyllDataSequenceEnd") else table.insert(buf, "\\markdownRendererJekyllDataMappingEnd") @@ -32966,7 +33364,7 @@ end %### Themes {#themes-implementation} % % This section implements the theme-loading mechanism and the built-in themes -% provided with the Markdown package. Futhermore, this section also implements +% provided with the Markdown package. Furthermore, this section also implements % the built-in plain \TeX{} themes provided with the Markdown package. % % \end{markdown} @@ -33910,6 +34308,9 @@ end } } } + \str_gset:NV + \g_luabridge_output_dirname_str + \markdownOptionOutputDir \luabridge_now:e { #1 } } @@ -34065,6 +34466,42 @@ end % % \end{markdown} % \begin{macrocode} +\ExplSyntaxOn +\cs_new:Npn + \markdownInput + #1 + { +% \end{macrocode} +% \begin{markdown} +% +% If the file does not exist in the current directory, we will search for it in +% the directories specified in \mref{l_file_search_path_seq}. On \LaTeX, this +% also includes the directories specified in \mref{input@path}. +% +% \end{markdown} +% \begin{macrocode} + \file_get_full_name:nNTF + { #1 } + \l_tmpa_tl + { + \exp_args:NV + \markdownInputRaw + \l_tmpa_tl + } + { + \msg_error:nnnV + { markdown } + { markdown-file-does-not-exist } + { #1 } + } + } +\msg_new:nnn + { markdown } + { markdown-file-does-not-exist } + { + Markdown~file~#1~does~not~exist + } +\ExplSyntaxOff \begingroup % \end{macrocode} % \begin{markdown} @@ -34076,7 +34513,7 @@ end \catcode`|=0% \catcode`\\=12% \catcode`|&=6% - |gdef|markdownInput#1{% + |gdef|markdownInputRaw#1{% % \end{macrocode} % \begin{markdown} % Change the category code of the percent sign (`\%`) to other, so that a user @@ -34169,7 +34606,7 @@ end % \LaTeX{} Implementation {#lateximplementation} %------------------------- % -% The \LaTeX{} implemenation makes use of the fact that, apart from some subtle +% The \LaTeX{} implementation 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. @@ -34398,7 +34835,7 @@ end %### Themes {#latex-themes-implementation} % % This section overrides the plain \TeX{} implementation of the theme-loading -% mechanism from Section <#sec:themes-implementation>. Futhermore, this section +% mechanism from Section <#sec:themes-implementation>. Furthermore, this section % also implements the built-in \LaTeX{} themes provided with the Markdown package. % % \end{markdown} @@ -34923,21 +35360,15 @@ end \tl_set:Nn \l_@@_latex_fancy_list_item_label_delimiter_style_tl { #2 } - \tl_set:Nn - \l_tmpa_tl - { - \plpartopsep=\partopsep - \pltopsep=\topsep - } \@@_if_option:nTF { startNumber } { - \tl_put_right:Nn + \tl_set:Nn \l_tmpa_tl { \begin{compactenum} } } { - \tl_put_right:Nn + \tl_set:Nn \l_tmpa_tl { \begin{compactenum}[ } \tl_put_right:Nx @@ -34947,6 +35378,12 @@ end \l_tmpa_tl { ] } } + \tl_put_left:Nn + \l_tmpa_tl + { + \plpartopsep=\partopsep + \pltopsep=\topsep + } \tl_use:N \l_tmpa_tl }, @@ -36125,7 +36562,7 @@ end %### Themes {#context-themes-implementation} % % This section overrides the plain \TeX{} implementation of the theme-loading -% mechanism from Section <#sec:themes-implementation>. Futhermore, this section +% mechanism from Section <#sec:themes-implementation>. Furthermore, this section % also implements the built-in \Hologo{ConTeXt} themes provided with the % Markdown package. % diff --git a/macros/generic/markdown/markdown.html b/macros/generic/markdown/markdown.html index 65f1de7d51..81e62b2044 100644 --- a/macros/generic/markdown/markdown.html +++ b/macros/generic/markdown/markdown.html @@ -4,7 +4,7 @@ <meta charset="utf-8" /> <meta name="generator" content="pandoc" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> - <meta name="author" content="VĂt StarĂ˝ NovotnĂ˝" /> + <meta name="author" content="VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur" /> <title>Markdown Package User Manual</title> <style> code{white-space: pre-wrap;} @@ -92,8 +92,8 @@ <body> <header id="title-block-header"> <h1 class="title">Markdown Package User Manual</h1> -<p class="author">VĂt StarĂ˝ NovotnĂ˝</p> -<p class="date">3.5.0-0-gfd01a252 2024-04-29</p> +<p class="author">VĂt StarĂ˝ NovotnĂ˝, Andrej GenÄur</p> +<p class="date">3.6.2-0-g6c30af7e 2024-07-14</p> </header> <nav id="TOC" role="doc-toc"> <ul> @@ -191,7 +191,7 @@ 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 macro packages that can be used to directly typeset <span class="tex">T<sub>e</sub>X</span> documents -containing markdown markup. Unlike other convertors, the Markdown +containing markdown markup. Unlike other converters, the Markdown package does not require any external programs, and makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged. <i class="em em-wink"></i></p> @@ -200,9 +200,8 @@ href="https://ctan.org/pkg/markdown" title="CTAN: Package markdown">Markdown package</a>. It provides tutorials and code examples. For an in-depth description of the package requirements, interfaces, and implementation, please refer to the <a -href="https://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" -title="A Markdown Interpreter for <span class="tex">T<sub>e</sub>X</span>">technical -documentation</a>.</p> +href="http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" +title="A Markdown Interpreter for TeX">technical documentation</a>.</p> <h2 data-number="1.1" id="requirements"><span class="header-section-number">1.1</span> Requirements</h2> <p>The package requires either <a @@ -218,21 +217,33 @@ of <a href="https://miktex.org/" title="Home - MiKTeXorg">Mik<span class="tex">T<sub>e</sub>X</span></a>. If you are using an older, incomplete, or atypical <span class="tex">T<sub>e</sub>X</span> distribution, please consult the <a -href="https://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" -title="A Markdown Interpreter for <span class="tex">T<sub>e</sub>X</span>">technical -documentation</a> for a detailed list of requirements.</p> +href="http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" +title="A Markdown Interpreter for TeX">technical documentation</a> for a +detailed list of requirements.</p> <h2 data-number="1.2" id="installation"><span class="header-section-number">1.2</span> Installation</h2> -<p>If Markdown is not included in your <span +<p>If the Markdown package is not included in your <span class="tex">T<sub>e</sub>X</span> distribution, you will need to install it.</p> -<p>First, download the package from the repository using Git:</p> -<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/witiko/markdown</span></code></pre></div> -<p>Next, enter the directory named <code>markdown</code> and run the +<p>From <a href="https://github.com/witiko/markdown/releases" +title="Releases - witiko/markdown">Releases</a>, download <a +href="https://github.com/witiko/markdown/releases/download/3.6.2/markdown.zip" +title="Release 3.6.2 - witiko/markdown">an archive +<code>markdown.zip</code> for this version of the Markdown package +(3.6.2)</a> or a different version that you wish to install. Then, unzip +the archive. If you downloaded an archive for a different version of the +Markdown package, you should now locate a file named +<code>markdown.html</code> with the user manual for that version, open +it, and follow the installation steps in it rather than the steps from +this manual.</p> +<p>Alternatively, download the package from the repository using Git, +enter the directory named <code>markdown</code> and run the <code>make base</code> command using GNU Make:</p> -<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> markdown</span> -<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> base</span></code></pre></div> -<p>This should produce the following files:</p> +<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/witiko/markdown</span> +<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> markdown</span> +<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> base</span></code></pre></div> +<p>Either of the two abovelisted approaches should produce the following +files:</p> <ul> <li><code>markdown.lua</code>: The Lua module</li> <li><code>libraries/markdown-tinyyaml.lua</code>: An external library @@ -303,6 +314,8 @@ them together. This way your document can be portably typeset on legacy <li><code>./markdownthemewitiko_markdown_defaults.sty</code></li> <li><code>./t-markdownthemewitiko_markdown_defaults.tex</code></li> </ul> +<p>The file <code>markdown.tex</code> <em>must</em> be placed in a +directory named <code>markdown</code>.</p> <h2 data-number="1.3" id="first-document"><span class="header-section-number">1.3</span> First Document</h2> <p>In this section, we will take the necessary steps to typeset our @@ -316,49 +329,49 @@ you need to prefix all commands in this section with <code>docker run --rm -v "$PWD"/workdir:/workdir -w /workdir witiko/markdown</code>. For example, instead of <code>luatex document.tex</code>, you would execute the following command:</p> -<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">docker</span> run <span class="at">--rm</span> <span class="at">-v</span> <span class="st">"</span><span class="va">$PWD</span><span class="st">"</span>/workdir:/workdir <span class="at">-w</span> /workdir witiko/markdown <span class="dt">\</span></span> -<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> luatex document.tex</span></code></pre></div> +<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">docker</span> run <span class="at">--rm</span> <span class="at">-v</span> <span class="st">"</span><span class="va">$PWD</span><span class="st">"</span>/workdir:/workdir <span class="at">-w</span> /workdir witiko/markdown <span class="dt">\</span></span> +<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> luatex document.tex</span></code></pre></div> <h3 data-number="1.3.1" id="using-lua"><span class="header-section-number">1.3.1</span> Using Lua</h3> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb4"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> hello</span> -<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb3"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> hello</span> +<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <h4 data-number="1.3.1.1" id="using-the-lua-module"><span class="header-section-number">1.3.1.1</span> Using the Lua Module</h4> <p>Using a text editor, create a text document named <code>hello.lua</code> with the following content:</p> -<div class="sourceCode" id="cb5"><pre -class="sourceCode lua"><code class="sourceCode lua"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="co">#!/usr/bin/env texlua</span></span> -<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">kpse</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"kpse"</span><span class="op">)</span></span> -<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a><span class="va">kpse</span><span class="op">.</span>set_program_name<span class="op">(</span><span class="st">"luatex"</span><span class="op">)</span></span> -<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">markdown</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"markdown"</span><span class="op">)</span></span> -<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">convert</span> <span class="op">=</span> <span class="va">markdown</span><span class="op">.</span>new<span class="op">()</span></span> -<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a><span class="fu">print</span><span class="op">(</span>convert<span class="op">(</span><span class="st">"Hello *world*!"</span><span class="op">))</span></span></code></pre></div> +<div class="sourceCode" id="cb4"><pre +class="sourceCode lua"><code class="sourceCode lua"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co">#!/usr/bin/env texlua</span></span> +<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">kpse</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"kpse"</span><span class="op">)</span></span> +<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="va">kpse</span><span class="op">.</span>set_program_name<span class="op">(</span><span class="st">"luatex"</span><span class="op">)</span></span> +<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">markdown</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"markdown"</span><span class="op">)</span></span> +<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">convert</span> <span class="op">=</span> <span class="va">markdown</span><span class="op">.</span>new<span class="op">()</span></span> +<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="fu">print</span><span class="op">(</span>convert<span class="op">(</span><span class="st">"Hello *world*!"</span><span class="op">))</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> hello.lua <span class="op">></span> hello.tex</span> -<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> hello.lua <span class="op">></span> hello.tex</span> +<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></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>!â Invoking pdfTeX should have the same effect:</p> -<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> hello.lua <span class="op">></span> hello.tex</span> -<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> hello.lua <span class="op">></span> hello.tex</span> +<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> <h4 data-number="1.3.1.2" id="using-the-lua-command-line-interface"><span class="header-section-number">1.3.1.2</span> Using the Lua Command-Line Interface</h4> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb8"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb7"><pre class="sourceCode md"><code class="sourceCode markdown"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> hello.md hello.tex</span> -<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> hello.md hello.tex</span> +<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></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 @@ -371,28 +384,27 @@ title="Kpathsea - TeX Users Group">Kpathsea</a>.</p> <p>A PDF document named <code>document.pdf</code> should be produced and contain the text âHello <em>world</em>!â Invoking pdfTeX should have the same effect:</p> -<div class="sourceCode" id="cb10"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> hello.md hello.tex</span> -<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> hello.md hello.tex</span> +<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> <h3 data-number="1.3.2" id="using-plain-tex"><span class="header-section-number">1.3.2</span> Using Plain <span class="tex">T<sub>e</sub>X</span></h3> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb11"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb11-2"><a href="#cb11-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb11-3"><a href="#cb11-3" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb11-4"><a href="#cb11-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb11-5"><a href="#cb11-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb10"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb10-4"><a href="#cb10-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb10-5"><a href="#cb10-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb12"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb11"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></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> <p>Instead of LuaTeX, you may also use pdfTeX:</p> -<div class="sourceCode" id="cb13"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb12"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> <p>This should also produce a PDF document named <code>document.pdf</code> with the same content.</p> <hr /> @@ -403,14 +415,14 @@ similarly to how you might use the <code>\input</code> TeX primitive to include <span class="tex">T<sub>e</sub>X</span> documents.</p> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb14"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb13"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb15"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hello.md}</span> -<span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb14"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb14-2"><a href="#cb14-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hello.md}</span> +<span id="cb14-3"><a href="#cb14-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX or pdfTeX from the terminal like in the previous example. A PDF document named <code>document.pdf</code> should be produced and contain the text âHello <em>world</em>!â</p> @@ -419,22 +431,22 @@ class="header-section-number">1.3.3</span> Using <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span></h3> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb16"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb16-2"><a href="#cb16-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb16-3"><a href="#cb16-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb16-4"><a href="#cb16-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb16-5"><a href="#cb16-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb16-6"><a href="#cb16-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb16-7"><a href="#cb16-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb15"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb15-4"><a href="#cb15-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb15-5"><a href="#cb15-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb15-6"><a href="#cb15-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb15-7"><a href="#cb15-7" aria-hidden="true" tabindex="-1"></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="cb17"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb16"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></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> <p>Instead of LuaTeX, you may also use pdfTeX:</p> -<div class="sourceCode" id="cb18"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb17"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> <p>This should also produce a PDF document named <code>document.pdf</code> with the same content.</p> <hr /> @@ -446,51 +458,51 @@ primitive to include <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> documents.</p> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb19"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb18"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb20"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb20-1"><a href="#cb20-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb20-2"><a href="#cb20-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb20-3"><a href="#cb20-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb20-4"><a href="#cb20-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb20-5"><a href="#cb20-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hello.md}</span> -<span id="cb20-6"><a href="#cb20-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb20-7"><a href="#cb20-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb19"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb19-2"><a href="#cb19-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb19-3"><a href="#cb19-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb19-4"><a href="#cb19-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb19-5"><a href="#cb19-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hello.md}</span> +<span id="cb19-6"><a href="#cb19-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb19-7"><a href="#cb19-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> <p>Next, invoke LuaTeX or pdfTeX from the terminal like in the previous example. A PDF document named <code>document.pdf</code> should be produced and contain the text âHello <em>world</em>!â</p> <hr /> <p>As the next step, try typesetting the example documents distributed along with the Markdown package:</p> -<div class="sourceCode" id="cb21"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/witiko/markdown</span> -<span id="cb21-2"><a href="#cb21-2" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> markdown/examples</span> -<span id="cb21-3"><a href="#cb21-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> latex-luatex.tex</span></code></pre></div> +<div class="sourceCode" id="cb20"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb20-1"><a href="#cb20-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/witiko/markdown</span> +<span id="cb20-2"><a href="#cb20-2" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> markdown/examples</span> +<span id="cb20-3"><a href="#cb20-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> latex-luatex.tex</span></code></pre></div> <p>A PDF document named <code>latex-luatex.pdf</code> should be produced. Open the text documents <code>latex-luatex.tex</code> and <code>example.md</code> in a text editor to see how the example documents are structured. Try changing the documents and typesetting them as follows:</p> -<div class="sourceCode" id="cb22"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb22-1"><a href="#cb22-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> latex-luatex.tex</span></code></pre></div> +<div class="sourceCode" id="cb21"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> latex-luatex.tex</span></code></pre></div> <p>to see the effect of your changes.</p> <h3 data-number="1.3.4" id="using-context"><span class="header-section-number">1.3.4</span> Using Con<span class="tex">T<sub>e</sub>X</span>t</h3> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb23"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb23-1"><a href="#cb23-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb23-2"><a href="#cb23-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb23-3"><a href="#cb23-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb23-4"><a href="#cb23-4" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb23-5"><a href="#cb23-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb23-6"><a href="#cb23-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb22"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb22-1"><a href="#cb22-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb22-2"><a href="#cb22-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb22-3"><a href="#cb22-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb22-4"><a href="#cb22-4" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb22-5"><a href="#cb22-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb22-6"><a href="#cb22-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb24"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb24-1"><a href="#cb24-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb23"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb23-1"><a href="#cb23-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> <hr /> @@ -501,41 +513,40 @@ similarly to how you might use the <code>\input</code> TeX primitive to include Con<span class="tex">T<sub>e</sub>X</span>t documents.</p> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb25"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb25-1"><a href="#cb25-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb24"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb24-1"><a href="#cb24-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb26"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb26-1"><a href="#cb26-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb26-2"><a href="#cb26-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb26-3"><a href="#cb26-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>{hello.md}</span> -<span id="cb26-4"><a href="#cb26-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb25"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb25-1"><a href="#cb25-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb25-2"><a href="#cb25-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb25-3"><a href="#cb25-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>{hello.md}</span> +<span id="cb25-4"><a href="#cb25-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal like in the previous example. A PDF document named <code>document.pdf</code> should be produced and contain the text âHello <em>world</em>!â</p> <hr /> <p>As the next step, try typesetting the example documents distributed along with the Markdown package:</p> -<div class="sourceCode" id="cb27"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb27-1"><a href="#cb27-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/witiko/markdown</span> -<span id="cb27-2"><a href="#cb27-2" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> markdown/examples</span> -<span id="cb27-3"><a href="#cb27-3" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> context.tex</span></code></pre></div> +<div class="sourceCode" id="cb26"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb26-1"><a href="#cb26-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> clone https://github.com/witiko/markdown</span> +<span id="cb26-2"><a href="#cb26-2" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> markdown/examples</span> +<span id="cb26-3"><a href="#cb26-3" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> context.tex</span></code></pre></div> <p>A PDF document named <code>context.pdf</code> should be produced. Open the text documents <code>context.tex</code> and <code>example.md</code> in a text editor to see how the example documents are structured. Try changing the documents and typesetting them as follows:</p> -<div class="sourceCode" id="cb28"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb28-1"><a href="#cb28-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> context.tex</span></code></pre></div> +<div class="sourceCode" id="cb27"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb27-1"><a href="#cb27-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> context.tex</span></code></pre></div> <p>to see the effect of your changes.</p> <h1 data-number="2" id="examples"><span class="header-section-number">2</span> Examples</h1> <p>In this section, I will describe the individual parts of the Markdown package. Each part will be shown by example, leaving the implementation details to the <a -href="https://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" -title="A Markdown Interpreter for <span class="tex">T<sub>e</sub>X</span>">technical -documentation</a>.</p> +href="http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" +title="A Markdown Interpreter for TeX">technical documentation</a>.</p> <h2 data-number="2.1" id="interfaces"><span class="header-section-number">2.1</span> Interfaces</h2> <p>In this section, I will describe the individual interfaces exposed by @@ -569,37 +580,37 @@ parameter is optional; when unspecified, the behaviour will be the same as if â¨<em>options</em>⊠were an empty table.</p> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb29"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb29-1"><a href="#cb29-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb29-2"><a href="#cb29-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb29-3"><a href="#cb29-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb29-4"><a href="#cb29-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb29-5"><a href="#cb29-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb29-6"><a href="#cb29-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> example</span> -<span id="cb29-7"><a href="#cb29-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb29-8"><a href="#cb29-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb28"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb28-1"><a href="#cb28-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb28-2"><a href="#cb28-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb28-3"><a href="#cb28-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb28-4"><a href="#cb28-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb28-5"><a href="#cb28-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb28-6"><a href="#cb28-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> example</span> +<span id="cb28-7"><a href="#cb28-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb28-8"><a href="#cb28-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Using a text editor, create a text document named <code>example.lua</code> with the following content:</p> -<div class="sourceCode" id="cb30"><pre -class="sourceCode lua"><code class="sourceCode lua"><span id="cb30-1"><a href="#cb30-1" aria-hidden="true" tabindex="-1"></a><span class="co">#!/usr/bin/env texlua</span></span> -<span id="cb30-2"><a href="#cb30-2" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">kpse</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"kpse"</span><span class="op">)</span></span> -<span id="cb30-3"><a href="#cb30-3" aria-hidden="true" tabindex="-1"></a><span class="va">kpse</span><span class="op">.</span>set_program_name<span class="op">(</span><span class="st">"luatex"</span><span class="op">)</span></span> -<span id="cb30-4"><a href="#cb30-4" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">markdown</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"markdown"</span><span class="op">)</span></span> -<span id="cb30-5"><a href="#cb30-5" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">input</span><span class="op">,</span> <span class="va">convert_nomath</span><span class="op">,</span> <span class="va">convert_math</span><span class="op">,</span> <span class="va">paragraph</span></span> -<span id="cb30-6"><a href="#cb30-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb30-7"><a href="#cb30-7" aria-hidden="true" tabindex="-1"></a><span class="va">input</span> <span class="op">=</span> <span class="vs">[[$\sqrt{-1}$ *equals* $i$.]]</span></span> -<span id="cb30-8"><a href="#cb30-8" aria-hidden="true" tabindex="-1"></a><span class="va">convert_nomath</span> <span class="op">=</span> <span class="va">markdown</span><span class="op">.</span>new<span class="op">()</span></span> -<span id="cb30-9"><a href="#cb30-9" aria-hidden="true" tabindex="-1"></a><span class="va">convert_math</span> <span class="op">=</span> <span class="va">markdown</span><span class="op">.</span>new<span class="op">({</span><span class="va">texMathDollars</span> <span class="op">=</span> <span class="kw">true</span><span class="op">})</span></span> -<span id="cb30-10"><a href="#cb30-10" aria-hidden="true" tabindex="-1"></a><span class="va">paragraph</span> <span class="op">=</span> <span class="vs">[[\par]]</span></span> -<span id="cb30-11"><a href="#cb30-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb30-12"><a href="#cb30-12" aria-hidden="true" tabindex="-1"></a><span class="fu">print</span><span class="op">(</span></span> -<span id="cb30-13"><a href="#cb30-13" aria-hidden="true" tabindex="-1"></a> convert_nomath<span class="op">(</span><span class="va">input</span><span class="op">)</span> <span class="op">..</span> <span class="va">paragraph</span> <span class="op">..</span></span> -<span id="cb30-14"><a href="#cb30-14" aria-hidden="true" tabindex="-1"></a> convert_math<span class="op">(</span><span class="va">input</span><span class="op">)</span></span> -<span id="cb30-15"><a href="#cb30-15" aria-hidden="true" tabindex="-1"></a><span class="op">)</span></span></code></pre></div> +<div class="sourceCode" id="cb29"><pre +class="sourceCode lua"><code class="sourceCode lua"><span id="cb29-1"><a href="#cb29-1" aria-hidden="true" tabindex="-1"></a><span class="co">#!/usr/bin/env texlua</span></span> +<span id="cb29-2"><a href="#cb29-2" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">kpse</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"kpse"</span><span class="op">)</span></span> +<span id="cb29-3"><a href="#cb29-3" aria-hidden="true" tabindex="-1"></a><span class="va">kpse</span><span class="op">.</span>set_program_name<span class="op">(</span><span class="st">"luatex"</span><span class="op">)</span></span> +<span id="cb29-4"><a href="#cb29-4" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">markdown</span> <span class="op">=</span> <span class="fu">require</span><span class="op">(</span><span class="st">"markdown"</span><span class="op">)</span></span> +<span id="cb29-5"><a href="#cb29-5" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">input</span><span class="op">,</span> <span class="va">convert_nomath</span><span class="op">,</span> <span class="va">convert_math</span><span class="op">,</span> <span class="va">paragraph</span></span> +<span id="cb29-6"><a href="#cb29-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb29-7"><a href="#cb29-7" aria-hidden="true" tabindex="-1"></a><span class="va">input</span> <span class="op">=</span> <span class="vs">[[$\sqrt{-1}$ *equals* $i$.]]</span></span> +<span id="cb29-8"><a href="#cb29-8" aria-hidden="true" tabindex="-1"></a><span class="va">convert_nomath</span> <span class="op">=</span> <span class="va">markdown</span><span class="op">.</span>new<span class="op">()</span></span> +<span id="cb29-9"><a href="#cb29-9" aria-hidden="true" tabindex="-1"></a><span class="va">convert_math</span> <span class="op">=</span> <span class="va">markdown</span><span class="op">.</span>new<span class="op">({</span><span class="va">texMathDollars</span> <span class="op">=</span> <span class="kw">true</span><span class="op">})</span></span> +<span id="cb29-10"><a href="#cb29-10" aria-hidden="true" tabindex="-1"></a><span class="va">paragraph</span> <span class="op">=</span> <span class="vs">[[\par]]</span></span> +<span id="cb29-11"><a href="#cb29-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb29-12"><a href="#cb29-12" aria-hidden="true" tabindex="-1"></a><span class="fu">print</span><span class="op">(</span></span> +<span id="cb29-13"><a href="#cb29-13" aria-hidden="true" tabindex="-1"></a> convert_nomath<span class="op">(</span><span class="va">input</span><span class="op">)</span> <span class="op">..</span> <span class="va">paragraph</span> <span class="op">..</span></span> +<span id="cb29-14"><a href="#cb29-14" aria-hidden="true" tabindex="-1"></a> convert_math<span class="op">(</span><span class="va">input</span><span class="op">)</span></span> +<span id="cb29-15"><a href="#cb29-15" aria-hidden="true" tabindex="-1"></a><span class="op">)</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb31"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb31-1"><a href="#cb31-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> example.lua <span class="op">></span> example.tex</span> -<span id="cb31-2"><a href="#cb31-2" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb30"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb30-1"><a href="#cb30-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> example.lua <span class="op">></span> example.tex</span> +<span id="cb30-2"><a href="#cb30-2" aria-hidden="true" tabindex="-1"></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> @@ -608,35 +619,35 @@ contain the following text:</p> <math><mi>i</mi></math>.</p> </blockquote> <p>Invoking pdfTeX should have the same effect:</p> -<div class="sourceCode" id="cb32"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb32-1"><a href="#cb32-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> example.lua <span class="op">></span> example.tex</span> -<span id="cb32-2"><a href="#cb32-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb31"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb31-1"><a href="#cb31-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> example.lua <span class="op">></span> example.tex</span> +<span id="cb31-2"><a href="#cb31-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> <hr /> <p>Rather than use the <code>texlua</code> interpreter, we can also access the <code>markdown</code> Lua module directly from our document. Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb33"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb33-1"><a href="#cb33-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb33-2"><a href="#cb33-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb33-3"><a href="#cb33-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb33-4"><a href="#cb33-4" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb33-5"><a href="#cb33-5" aria-hidden="true" tabindex="-1"></a> local input, convert_nomath, convert_math, paragraph</span> -<span id="cb33-6"><a href="#cb33-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb33-7"><a href="#cb33-7" aria-hidden="true" tabindex="-1"></a> input = [[<span class="ss">$</span><span class="sc">\string\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.]]</span> -<span id="cb33-8"><a href="#cb33-8" aria-hidden="true" tabindex="-1"></a> convert_nomath = markdown.new()</span> -<span id="cb33-9"><a href="#cb33-9" aria-hidden="true" tabindex="-1"></a> convert_math = markdown.new({texMathDollars = true})</span> -<span id="cb33-10"><a href="#cb33-10" aria-hidden="true" tabindex="-1"></a> paragraph = [[<span class="fu">\par</span>]]</span> -<span id="cb33-11"><a href="#cb33-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb33-12"><a href="#cb33-12" aria-hidden="true" tabindex="-1"></a> tex.sprint(</span> -<span id="cb33-13"><a href="#cb33-13" aria-hidden="true" tabindex="-1"></a> convert_nomath(input) .. paragraph ..</span> -<span id="cb33-14"><a href="#cb33-14" aria-hidden="true" tabindex="-1"></a> convert_math(input)</span> -<span id="cb33-15"><a href="#cb33-15" aria-hidden="true" tabindex="-1"></a> )</span> -<span id="cb33-16"><a href="#cb33-16" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb33-17"><a href="#cb33-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb32"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb32-1"><a href="#cb32-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb32-2"><a href="#cb32-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb32-3"><a href="#cb32-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb32-4"><a href="#cb32-4" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb32-5"><a href="#cb32-5" aria-hidden="true" tabindex="-1"></a> local input, convert_nomath, convert_math, paragraph</span> +<span id="cb32-6"><a href="#cb32-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb32-7"><a href="#cb32-7" aria-hidden="true" tabindex="-1"></a> input = [[<span class="ss">$</span><span class="sc">\string\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.]]</span> +<span id="cb32-8"><a href="#cb32-8" aria-hidden="true" tabindex="-1"></a> convert_nomath = markdown.new()</span> +<span id="cb32-9"><a href="#cb32-9" aria-hidden="true" tabindex="-1"></a> convert_math = markdown.new({texMathDollars = true})</span> +<span id="cb32-10"><a href="#cb32-10" aria-hidden="true" tabindex="-1"></a> paragraph = [[<span class="fu">\par</span>]]</span> +<span id="cb32-11"><a href="#cb32-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb32-12"><a href="#cb32-12" aria-hidden="true" tabindex="-1"></a> tex.sprint(</span> +<span id="cb32-13"><a href="#cb32-13" aria-hidden="true" tabindex="-1"></a> convert_nomath(input) .. paragraph ..</span> +<span id="cb32-14"><a href="#cb32-14" aria-hidden="true" tabindex="-1"></a> convert_math(input)</span> +<span id="cb32-15"><a href="#cb32-15" aria-hidden="true" tabindex="-1"></a> )</span> +<span id="cb32-16"><a href="#cb32-16" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb32-17"><a href="#cb32-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb34"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb34-1"><a href="#cb34-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb33"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb33-1"><a href="#cb33-1" aria-hidden="true" tabindex="-1"></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> @@ -660,26 +671,26 @@ Lua programming language.</p> command-line parameters.</p> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb35"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb35-1"><a href="#cb35-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb35-2"><a href="#cb35-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb35-3"><a href="#cb35-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb35-4"><a href="#cb35-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb35-5"><a href="#cb35-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb35-6"><a href="#cb35-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> nomath</span> -<span id="cb35-7"><a href="#cb35-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb35-8"><a href="#cb35-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> math</span> -<span id="cb35-9"><a href="#cb35-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb35-10"><a href="#cb35-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb34"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb34-1"><a href="#cb34-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb34-2"><a href="#cb34-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb34-3"><a href="#cb34-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb34-4"><a href="#cb34-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb34-5"><a href="#cb34-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb34-6"><a href="#cb34-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> nomath</span> +<span id="cb34-7"><a href="#cb34-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb34-8"><a href="#cb34-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> math</span> +<span id="cb34-9"><a href="#cb34-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb34-10"><a href="#cb34-10" aria-hidden="true" tabindex="-1"></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:</p> -<div class="sourceCode" id="cb36"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb36-1"><a href="#cb36-1" aria-hidden="true" tabindex="-1"></a>$\sqrt{-1}$ *equals* $i$.</span></code></pre></div> +<div class="sourceCode" id="cb35"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb35-1"><a href="#cb35-1" aria-hidden="true" tabindex="-1"></a>$\sqrt{-1}$ *equals* $i$.</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb37"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb37-1"><a href="#cb37-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> example.md nomath.tex</span> -<span id="cb37-2"><a href="#cb37-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠tex_math_dollars=true <span class="at">--</span> example.md math.tex</span> -<span id="cb37-3"><a href="#cb37-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb36"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb36-1"><a href="#cb36-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> example.md nomath.tex</span> +<span id="cb36-2"><a href="#cb36-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠tex_math_dollars=true <span class="at">--</span> example.md math.tex</span> +<span id="cb36-3"><a href="#cb36-3" aria-hidden="true" tabindex="-1"></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 @@ -697,10 +708,10 @@ contain the following text:</p> <math><mi>i</mi></math>.</p> </blockquote> <p>Invoking pdfTeX should have the same effect:</p> -<div class="sourceCode" id="cb38"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb38-1"><a href="#cb38-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> example.md nomath.tex</span> -<span id="cb38-2"><a href="#cb38-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠tex_math_dollars=true <span class="at">--</span> example.md math.tex</span> -<span id="cb38-3"><a href="#cb38-3" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb37"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb37-1"><a href="#cb37-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> example.md nomath.tex</span> +<span id="cb37-2"><a href="#cb37-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠tex_math_dollars=true <span class="at">--</span> example.md math.tex</span> +<span id="cb37-3"><a href="#cb37-3" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> document.tex</span></code></pre></div> <h3 data-number="2.1.2" id="plain-tex"><span class="header-section-number">2.1.2</span> Plain <span class="tex">T<sub>e</sub>X</span></h3> @@ -716,23 +727,23 @@ its own options, but now the options are specified as <span class="tex">T<sub>e</sub>X</span> commands.</p> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb39"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb39-1"><a href="#cb39-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb39-2"><a href="#cb39-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb39-3"><a href="#cb39-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb39-4"><a href="#cb39-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb39-5"><a href="#cb39-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb39-6"><a href="#cb39-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb39-7"><a href="#cb39-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb39-8"><a href="#cb39-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDollars</span>{true}</span> -<span id="cb39-9"><a href="#cb39-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb39-10"><a href="#cb39-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb39-11"><a href="#cb39-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb39-12"><a href="#cb39-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb39-13"><a href="#cb39-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb38"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb38-1"><a href="#cb38-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb38-2"><a href="#cb38-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb38-3"><a href="#cb38-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb38-4"><a href="#cb38-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb38-5"><a href="#cb38-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb38-6"><a href="#cb38-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb38-7"><a href="#cb38-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb38-8"><a href="#cb38-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDollars</span>{true}</span> +<span id="cb38-9"><a href="#cb38-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb38-10"><a href="#cb38-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb38-11"><a href="#cb38-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb38-12"><a href="#cb38-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb38-13"><a href="#cb38-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb40"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb40-1"><a href="#cb40-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb39"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb39-1"><a href="#cb39-1" aria-hidden="true" tabindex="-1"></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> @@ -741,8 +752,8 @@ contain the following text:</p> <math><mi>i</mi></math>.</p> </blockquote> <p>Invoking pdfTeX should have the same effect:</p> -<div class="sourceCode" id="cb41"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb41-1"><a href="#cb41-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb40"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb40-1"><a href="#cb40-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> <h3 data-number="2.1.3" id="latex"><span class="header-section-number">2.1.3</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span></h3> @@ -764,23 +775,23 @@ or as parameters for the <code>markdown*</code> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> environment.</p> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb42"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb42-1"><a href="#cb42-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb42-2"><a href="#cb42-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb42-3"><a href="#cb42-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb42-4"><a href="#cb42-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb42-5"><a href="#cb42-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb42-6"><a href="#cb42-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb42-7"><a href="#cb42-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb42-8"><a href="#cb42-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb42-9"><a href="#cb42-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[texMathDollars]</span> -<span id="cb42-10"><a href="#cb42-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb42-11"><a href="#cb42-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb42-12"><a href="#cb42-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb42-13"><a href="#cb42-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb41"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb41-1"><a href="#cb41-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb41-2"><a href="#cb41-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb41-3"><a href="#cb41-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb41-4"><a href="#cb41-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb41-5"><a href="#cb41-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb41-6"><a href="#cb41-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb41-7"><a href="#cb41-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb41-8"><a href="#cb41-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb41-9"><a href="#cb41-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[texMathDollars]</span> +<span id="cb41-10"><a href="#cb41-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb41-11"><a href="#cb41-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb41-12"><a href="#cb41-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb41-13"><a href="#cb41-13" aria-hidden="true" tabindex="-1"></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="cb43"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb43-1"><a href="#cb43-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb42"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb42-1"><a href="#cb42-1" aria-hidden="true" tabindex="-1"></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> @@ -789,8 +800,8 @@ contain the following text:</p> <math><mi>i</mi></math>.</p> </blockquote> <p>Invoking pdfTeX should have the same effect:</p> -<div class="sourceCode" id="cb44"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb44-1"><a href="#cb44-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb43"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb43-1"><a href="#cb43-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> <h3 data-number="2.1.4" id="context"><span class="header-section-number">2.1.4</span> Con<span class="tex">T<sub>e</sub>X</span>t</h3> @@ -807,23 +818,23 @@ same options as the plain <span class="tex">T<sub>e</sub>X</span> interface.</p> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb45"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb45-1"><a href="#cb45-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb45-2"><a href="#cb45-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb45-3"><a href="#cb45-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb45-4"><a href="#cb45-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb45-5"><a href="#cb45-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb45-6"><a href="#cb45-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb45-7"><a href="#cb45-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb45-8"><a href="#cb45-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texmathdollars = yes]</span> -<span id="cb45-9"><a href="#cb45-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb45-10"><a href="#cb45-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb45-11"><a href="#cb45-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb45-12"><a href="#cb45-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb45-13"><a href="#cb45-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb44"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb44-1"><a href="#cb44-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb44-2"><a href="#cb44-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb44-3"><a href="#cb44-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb44-4"><a href="#cb44-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb44-5"><a href="#cb44-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb44-6"><a href="#cb44-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb44-7"><a href="#cb44-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb44-8"><a href="#cb44-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texmathdollars = yes]</span> +<span id="cb44-9"><a href="#cb44-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb44-10"><a href="#cb44-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb44-11"><a href="#cb44-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb44-12"><a href="#cb44-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb44-13"><a href="#cb44-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb46"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb46-1"><a href="#cb46-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb45"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb45-1"><a href="#cb45-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -879,12 +890,12 @@ Lua command-line interface for plumbing.</p> <h5 class="unnumbered" id="lua-cli-example">Lua CLI Example</h5> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb47"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb47-1"><a href="#cb47-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb46"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb46-1"><a href="#cb46-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal with the <strong><code>eagerCache</code></strong> option disabled:</p> -<div class="sourceCode" id="cb48"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb48-1"><a href="#cb48-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠eagerCache=false <span class="at">--</span> hello.md hello.tex</span></code></pre></div> +<div class="sourceCode" id="cb47"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb47-1"><a href="#cb47-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠eagerCache=false <span class="at">--</span> hello.md hello.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 @@ -897,23 +908,23 @@ title="Kpathsea - TeX Users Group">Kpathsea</a>.</p> <p>A <span class="tex">T<sub>e</sub>X</span> document named <code>hello.tex</code> should be produced and contain the following code:</p> -<div class="sourceCode" id="cb49"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb49-1"><a href="#cb49-1" aria-hidden="true" tabindex="-1"></a>Hello <span class="fu">\markdownRendererEmphasis</span>{world}!<span class="fu">\relax</span></span></code></pre></div> +<div class="sourceCode" id="cb48"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb48-1"><a href="#cb48-1" aria-hidden="true" tabindex="-1"></a>Hello <span class="fu">\markdownRendererEmphasis</span>{world}!<span class="fu">\relax</span></span></code></pre></div> <hr /> <p>Invoke LuaTeX from the terminal again, this time with the <strong><code>eagerCache</code></strong> option enabled:</p> -<div class="sourceCode" id="cb50"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb50-1"><a href="#cb50-1" aria-hidden="true" tabindex="-1"></a>texlua â¨CLI pathname⊠eagerCache=true -- hello.md hello.tex</span></code></pre></div> +<div class="sourceCode" id="cb49"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb49-1"><a href="#cb49-1" aria-hidden="true" tabindex="-1"></a>texlua â¨CLI pathname⊠eagerCache=true -- hello.md hello.tex</span></code></pre></div> <p>A <span class="tex">T<sub>e</sub>X</span> document named <code>hello.tex</code> should be produced and contain the following code:</p> -<div class="sourceCode" id="cb51"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb51-1"><a href="#cb51-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> ./â¨hashâŠ.md.tex<span class="fu">\relax</span></span></code></pre></div> +<div class="sourceCode" id="cb50"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb50-1"><a href="#cb50-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> ./â¨hashâŠ.md.tex<span class="fu">\relax</span></span></code></pre></div> <p>Additionally, a <span class="tex">T<sub>e</sub>X</span> document named <code>â¨hashâŠ.md.tex</code> should be produced and contain the following code:</p> -<div class="sourceCode" id="cb52"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb52-1"><a href="#cb52-1" aria-hidden="true" tabindex="-1"></a>Hello <span class="fu">\markdownRendererEmphasis</span>{world}!<span class="fu">\relax</span></span></code></pre></div> +<div class="sourceCode" id="cb51"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb51-1"><a href="#cb51-1" aria-hidden="true" tabindex="-1"></a>Hello <span class="fu">\markdownRendererEmphasis</span>{world}!<span class="fu">\relax</span></span></code></pre></div> <h4 data-number="2.2.1.2" id="option-singletoncache"><span class="header-section-number">2.2.1.2</span> Option <code>singletonCache</code></h4> @@ -941,7 +952,7 @@ Markdown package.</p> produce a new conversion function that will not be cached. This is slower than caching conversion functions and may expose bugs related to memory leaks in the creation of conversion functions, see also issue <a -href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">#226</a>.</p> +href="https://github.com/witiko/markdown/pull/226#issuecomment-1599641634">#226</a>.</p> <p>This was the default behavior until version 3.0.0 of the Markdown package.</p> </dd> @@ -951,26 +962,26 @@ package.</p> <h5 class="unnumbered" id="lua-module-example">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="cb53"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb53-1"><a href="#cb53-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb53-2"><a href="#cb53-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb53-3"><a href="#cb53-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb53-4"><a href="#cb53-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb53-5"><a href="#cb53-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb53-6"><a href="#cb53-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb53-7"><a href="#cb53-7" aria-hidden="true" tabindex="-1"></a> local convert1 = markdown.new({})</span> -<span id="cb53-8"><a href="#cb53-8" aria-hidden="true" tabindex="-1"></a> local convert2 = markdown.new({singletonCache=false})</span> -<span id="cb53-9"><a href="#cb53-9" aria-hidden="true" tabindex="-1"></a> local convert3 = markdown.new({singletonCache=true})</span> -<span id="cb53-10"><a href="#cb53-10" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb53-11"><a href="#cb53-11" aria-hidden="true" tabindex="-1"></a> tex.print(tostring(convert1) .. ", ")</span> -<span id="cb53-12"><a href="#cb53-12" aria-hidden="true" tabindex="-1"></a> tex.print(tostring(convert2) .. ", ")</span> -<span id="cb53-13"><a href="#cb53-13" aria-hidden="true" tabindex="-1"></a> tex.print(tostring(convert3))</span> -<span id="cb53-14"><a href="#cb53-14" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb53-15"><a href="#cb53-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb53-16"><a href="#cb53-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb52"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb52-1"><a href="#cb52-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb52-2"><a href="#cb52-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb52-3"><a href="#cb52-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb52-4"><a href="#cb52-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb52-5"><a href="#cb52-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb52-6"><a href="#cb52-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb52-7"><a href="#cb52-7" aria-hidden="true" tabindex="-1"></a> local convert1 = markdown.new({})</span> +<span id="cb52-8"><a href="#cb52-8" aria-hidden="true" tabindex="-1"></a> local convert2 = markdown.new({singletonCache=false})</span> +<span id="cb52-9"><a href="#cb52-9" aria-hidden="true" tabindex="-1"></a> local convert3 = markdown.new({singletonCache=true})</span> +<span id="cb52-10"><a href="#cb52-10" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb52-11"><a href="#cb52-11" aria-hidden="true" tabindex="-1"></a> tex.print(tostring(convert1) .. ", ")</span> +<span id="cb52-12"><a href="#cb52-12" aria-hidden="true" tabindex="-1"></a> tex.print(tostring(convert2) .. ", ")</span> +<span id="cb52-13"><a href="#cb52-13" aria-hidden="true" tabindex="-1"></a> tex.print(tostring(convert3))</span> +<span id="cb52-14"><a href="#cb52-14" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb52-15"><a href="#cb52-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb52-16"><a href="#cb52-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb54"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb54-1"><a href="#cb54-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb53"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb53-1"><a href="#cb53-1" aria-hidden="true" tabindex="-1"></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> @@ -978,8 +989,83 @@ contain the following text:</p> </blockquote> <p>As you can see, the caching causes <code>convert1</code> and <code>convert3</code> to be the same conversion function.</p> -<h4 data-number="2.2.1.3" id="option-cachedir"><span +<h4 data-number="2.2.1.3" id="option-unicodenormalization"><span class="header-section-number">2.2.1.3</span> Option +<code>unicodeNormalization</code></h4> +<dl> +<dt><code>unicodeNormalization</code> (default value: +<code>true</code>)</dt> +<dd> +<dl> +<dt>true</dt> +<dd> +<p>Markdown documents will be normalized using one of the four <a +href="https://unicode.org/faq/normalization.html">Unicode normalization +forms</a> before conversion. The Unicode normalization norm used is +determined by option +<strong><code>unicodeNormalizationForm</code></strong>.</p> +</dd> +</dl> +</dd> +<dd> +<dl> +<dt>false</dt> +<dd> +<p>Markdown documents will not be Unicode-normalized before +conversion.</p> +</dd> +</dl> +</dd> +</dl> +<h4 data-number="2.2.1.4" id="option-unicodenormalizationform"><span +class="header-section-number">2.2.1.4</span> Option +<code>unicodeNormalizationForm</code></h4> +<dl> +<dt><code>unicodeNormalizationForm</code> (default value: +<code>nfc</code>)</dt> +<dd> +<dl> +<dt>nfc</dt> +<dd> +<p>When option <strong><code>unicodeNormalization</code></strong> has +been enabled, markdown documents will be normalized using Unicode +Normalization Form C (NFC) before conversion.</p> +</dd> +</dl> +</dd> +<dd> +<dl> +<dt>nfd</dt> +<dd> +<p>When option <strong><code>unicodeNormalization</code></strong> has +been enabled, markdown documents will be normalized using Unicode +Normalization Form D (NFD) before conversion.</p> +</dd> +</dl> +</dd> +<dd> +<dl> +<dt>nfkc</dt> +<dd> +<p>When option <strong><code>unicodeNormalization</code></strong> has +been enabled, markdown documents will be normalized using Unicode +Normalization Form KC (NFKC) before conversion.</p> +</dd> +</dl> +</dd> +<dd> +<dl> +<dt>nfkd</dt> +<dd> +<p>When option <strong><code>unicodeNormalization</code></strong> has +been enabled, markdown documents will be normalized using Unicode +Normalization Form KD (NFKD) before conversion.</p> +</dd> +</dl> +</dd> +</dl> +<h4 data-number="2.2.1.5" id="option-cachedir"><span +class="header-section-number">2.2.1.5</span> Option <code>cacheDir</code></h4> <dl> <dt><code>cacheDir</code> (default value: <code>"."</code>)</dt> @@ -999,22 +1085,22 @@ periodically emptied.</p> <h5 class="unnumbered" id="lua-module-example-1">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="cb55"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb55-1"><a href="#cb55-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb55-2"><a href="#cb55-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb55-3"><a href="#cb55-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb55-4"><a href="#cb55-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb55-5"><a href="#cb55-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb55-6"><a href="#cb55-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb55-7"><a href="#cb55-7" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({cacheDir = "cache"})</span> -<span id="cb55-8"><a href="#cb55-8" aria-hidden="true" tabindex="-1"></a> local input = "Hello *world*!"</span> -<span id="cb55-9"><a href="#cb55-9" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb55-10"><a href="#cb55-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb55-11"><a href="#cb55-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb54"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb54-1"><a href="#cb54-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb54-2"><a href="#cb54-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb54-3"><a href="#cb54-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb54-4"><a href="#cb54-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb54-5"><a href="#cb54-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb54-6"><a href="#cb54-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb54-7"><a href="#cb54-7" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({cacheDir = "cache"})</span> +<span id="cb54-8"><a href="#cb54-8" aria-hidden="true" tabindex="-1"></a> local input = "Hello *world*!"</span> +<span id="cb54-9"><a href="#cb54-9" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb54-10"><a href="#cb54-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb54-11"><a href="#cb54-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Create an empty directory named <code>cache</code> next to our text document. Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb56"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb56-1"><a href="#cb56-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb55"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb55-1"><a href="#cb55-1" aria-hidden="true" tabindex="-1"></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>!â Several cache files of the Markdown package will also be produced in the <code>cache</code> @@ -1022,22 +1108,22 @@ directory as we requested using the <code>cacheDir</code> option.</p> <h5 class="unnumbered" id="lua-cli-example-1">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="cb57"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb57-1"><a href="#cb57-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb57-2"><a href="#cb57-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb57-3"><a href="#cb57-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb57-4"><a href="#cb57-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb57-5"><a href="#cb57-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> hello</span> -<span id="cb57-6"><a href="#cb57-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb57-7"><a href="#cb57-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb56"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb56-1"><a href="#cb56-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb56-2"><a href="#cb56-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb56-3"><a href="#cb56-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb56-4"><a href="#cb56-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb56-5"><a href="#cb56-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> hello</span> +<span id="cb56-6"><a href="#cb56-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb56-7"><a href="#cb56-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb58"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb58-1"><a href="#cb58-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb57"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb57-1"><a href="#cb57-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb59"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb59-1"><a href="#cb59-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠cacheDir=cache <span class="at">--</span> hello.md hello.tex</span> -<span id="cb59-2"><a href="#cb59-2" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb58"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb58-1"><a href="#cb58-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠cacheDir=cache <span class="at">--</span> hello.md hello.tex</span> +<span id="cb58-2"><a href="#cb58-2" aria-hidden="true" tabindex="-1"></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 @@ -1056,16 +1142,16 @@ package will also be produced as we requested using the 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="cb60"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb60-1"><a href="#cb60-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb60-2"><a href="#cb60-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionCacheDir</span>{cache}</span> -<span id="cb60-3"><a href="#cb60-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb60-4"><a href="#cb60-4" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb60-5"><a href="#cb60-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb60-6"><a href="#cb60-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb59"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb59-1"><a href="#cb59-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb59-2"><a href="#cb59-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionCacheDir</span>{cache}</span> +<span id="cb59-3"><a href="#cb59-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb59-4"><a href="#cb59-4" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb59-5"><a href="#cb59-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb59-6"><a href="#cb59-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb61"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb61-1"><a href="#cb61-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb60"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb60-1"><a href="#cb60-1" aria-hidden="true" tabindex="-1"></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>!â A directory named <code>cache</code> containing several cache files of the Markdown @@ -1075,17 +1161,17 @@ package will also be produced as we requested using the 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="cb62"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb62-1"><a href="#cb62-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb62-2"><a href="#cb62-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[cacheDir=cache]{<span class="ex">markdown</span>}</span> -<span id="cb62-3"><a href="#cb62-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb62-4"><a href="#cb62-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb62-5"><a href="#cb62-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb62-6"><a href="#cb62-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb62-7"><a href="#cb62-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb61"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb61-1"><a href="#cb61-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb61-2"><a href="#cb61-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[cacheDir=cache]{<span class="ex">markdown</span>}</span> +<span id="cb61-3"><a href="#cb61-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb61-4"><a href="#cb61-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb61-5"><a href="#cb61-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb61-6"><a href="#cb61-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb61-7"><a href="#cb61-7" aria-hidden="true" tabindex="-1"></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="cb63"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb63-1"><a href="#cb63-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb62"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb62-1"><a href="#cb62-1" aria-hidden="true" tabindex="-1"></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>!â A directory named <code>cache</code> containing several cache files of the Markdown @@ -1095,24 +1181,24 @@ package will also be produced as we requested using the 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="cb64"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb64-1"><a href="#cb64-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb64-2"><a href="#cb64-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[cacheDir = cache]</span> -<span id="cb64-3"><a href="#cb64-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb64-4"><a href="#cb64-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb64-5"><a href="#cb64-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb64-6"><a href="#cb64-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb64-7"><a href="#cb64-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb63"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb63-1"><a href="#cb63-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb63-2"><a href="#cb63-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[cacheDir = cache]</span> +<span id="cb63-3"><a href="#cb63-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb63-4"><a href="#cb63-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb63-5"><a href="#cb63-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb63-6"><a href="#cb63-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb63-7"><a href="#cb63-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb65"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb65-1"><a href="#cb65-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb64"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb64-1"><a href="#cb64-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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>!â A directory named <code>cache</code> containing several cache files of the Markdown package will also be produced as we requested using the <code>cacheDir</code> option.</p> -<h4 data-number="2.2.1.4" id="option-contentblockslanguagemap"><span -class="header-section-number">2.2.1.4</span> Option +<h4 data-number="2.2.1.6" id="option-contentblockslanguagemap"><span +class="header-section-number">2.2.1.6</span> Option <code>contentBlocksLanguageMap</code></h4> <dl> <dt><code>contentBlocksLanguageMap</code> (default value: @@ -1134,37 +1220,37 @@ Marie,Curie,1867 Thomas,Edison,1847</code></pre> <p>Create also a text document named <code>language-map.json</code> with the following content:</p> -<div class="sourceCode" id="cb67"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb67-1"><a href="#cb67-1" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb67-2"><a href="#cb67-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"LaTeX"</span></span> -<span id="cb67-3"><a href="#cb67-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb66"><pre +class="sourceCode js"><code class="sourceCode javascript"><span id="cb66-1"><a href="#cb66-1" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb66-2"><a href="#cb66-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"LaTeX"</span></span> +<span id="cb66-3"><a href="#cb66-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <p>Create also a text document named <code>code.tex</code> with the following content:</p> -<div class="sourceCode" id="cb68"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb68-1"><a href="#cb68-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> +<div class="sourceCode" id="cb67"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb67-1"><a href="#cb67-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> <p>Create also a text document named <code>part.md</code> with the following content:</p> -<div class="sourceCode" id="cb69"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb69-1"><a href="#cb69-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> +<div class="sourceCode" id="cb68"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb68-1"><a href="#cb68-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb70"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb70-1"><a href="#cb70-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb70-2"><a href="#cb70-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> -<span id="cb70-3"><a href="#cb70-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> -<span id="cb70-4"><a href="#cb70-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb70-5"><a href="#cb70-5" aria-hidden="true" tabindex="-1"></a> contentBlocksLanguageMap = {language-map.json},</span> -<span id="cb70-6"><a href="#cb70-6" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb70-7"><a href="#cb70-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb70-8"><a href="#cb70-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb70-9"><a href="#cb70-9" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> -<span id="cb70-10"><a href="#cb70-10" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> -<span id="cb70-11"><a href="#cb70-11" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> -<span id="cb70-12"><a href="#cb70-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb70-13"><a href="#cb70-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb69"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb69-1"><a href="#cb69-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb69-2"><a href="#cb69-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> +<span id="cb69-3"><a href="#cb69-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> +<span id="cb69-4"><a href="#cb69-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb69-5"><a href="#cb69-5" aria-hidden="true" tabindex="-1"></a> contentBlocksLanguageMap = {language-map.json},</span> +<span id="cb69-6"><a href="#cb69-6" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb69-7"><a href="#cb69-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb69-8"><a href="#cb69-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb69-9"><a href="#cb69-9" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> +<span id="cb69-10"><a href="#cb69-10" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> +<span id="cb69-11"><a href="#cb69-11" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> +<span id="cb69-12"><a href="#cb69-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb69-13"><a href="#cb69-13" aria-hidden="true" tabindex="-1"></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="cb71"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb71-1"><a href="#cb71-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb70"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb70-1"><a href="#cb70-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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> @@ -1195,8 +1281,8 @@ contain the following text:</p> </tbody> </table> <p>Table 1: An example table</p> -<div class="sourceCode" id="cb72"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb72-1"><a href="#cb72-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> +<div class="sourceCode" id="cb71"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb71-1"><a href="#cb71-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> <p>This is a <em>transcluded markdown document</em>.</p> </blockquote> <h5 class="unnumbered" id="context-example-1">Con<span @@ -1209,39 +1295,39 @@ Marie,Curie,1867 Thomas,Edison,1847</code></pre> <p>Create also a text document named <code>language-map.json</code> with the following content:</p> -<div class="sourceCode" id="cb74"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb74-1"><a href="#cb74-1" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb74-2"><a href="#cb74-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"ConTeXt"</span></span> -<span id="cb74-3"><a href="#cb74-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb73"><pre +class="sourceCode js"><code class="sourceCode javascript"><span id="cb73-1"><a href="#cb73-1" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb73-2"><a href="#cb73-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"ConTeXt"</span></span> +<span id="cb73-3"><a href="#cb73-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <p>Create also a text document named <code>code.tex</code> with the following content:</p> -<div class="sourceCode" id="cb75"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb75-1"><a href="#cb75-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> +<div class="sourceCode" id="cb74"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb74-1"><a href="#cb74-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> <p>Create also a text document named <code>part.md</code> with the following content:</p> -<div class="sourceCode" id="cb76"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb76-1"><a href="#cb76-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> +<div class="sourceCode" id="cb75"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb75-1"><a href="#cb75-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb77"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb77-1"><a href="#cb77-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb77-2"><a href="#cb77-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> -<span id="cb77-3"><a href="#cb77-3" aria-hidden="true" tabindex="-1"></a> [</span> -<span id="cb77-4"><a href="#cb77-4" aria-hidden="true" tabindex="-1"></a> contentBlocks = yes,</span> -<span id="cb77-5"><a href="#cb77-5" aria-hidden="true" tabindex="-1"></a> contentBlocksLanguageMap = language-map.json,</span> -<span id="cb77-6"><a href="#cb77-6" aria-hidden="true" tabindex="-1"></a> ]</span> -<span id="cb77-7"><a href="#cb77-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [ConTeXt]</span> -<span id="cb77-8"><a href="#cb77-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\setuptyping</span> [ConTeXt] [option=TEX]</span> -<span id="cb77-9"><a href="#cb77-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb77-10"><a href="#cb77-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb77-11"><a href="#cb77-11" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> -<span id="cb77-12"><a href="#cb77-12" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> -<span id="cb77-13"><a href="#cb77-13" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> -<span id="cb77-14"><a href="#cb77-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb77-15"><a href="#cb77-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb76"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb76-1"><a href="#cb76-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb76-2"><a href="#cb76-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> +<span id="cb76-3"><a href="#cb76-3" aria-hidden="true" tabindex="-1"></a> [</span> +<span id="cb76-4"><a href="#cb76-4" aria-hidden="true" tabindex="-1"></a> contentBlocks = yes,</span> +<span id="cb76-5"><a href="#cb76-5" aria-hidden="true" tabindex="-1"></a> contentBlocksLanguageMap = language-map.json,</span> +<span id="cb76-6"><a href="#cb76-6" aria-hidden="true" tabindex="-1"></a> ]</span> +<span id="cb76-7"><a href="#cb76-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [ConTeXt]</span> +<span id="cb76-8"><a href="#cb76-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\setuptyping</span> [ConTeXt] [option=TEX]</span> +<span id="cb76-9"><a href="#cb76-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb76-10"><a href="#cb76-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb76-11"><a href="#cb76-11" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> +<span id="cb76-12"><a href="#cb76-12" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> +<span id="cb76-13"><a href="#cb76-13" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> +<span id="cb76-14"><a href="#cb76-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb76-15"><a href="#cb76-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb78"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb78-1"><a href="#cb78-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb77"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb77-1"><a href="#cb77-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -1272,12 +1358,12 @@ contain the following text:</p> </tbody> </table> <p>Table 1: An example table</p> -<div class="sourceCode" id="cb79"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb79-1"><a href="#cb79-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> +<div class="sourceCode" id="cb78"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb78-1"><a href="#cb78-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> <p>This is a <em>transcluded markdown document</em>.</p> </blockquote> -<h4 data-number="2.2.1.5" id="option-debugextensionsfilename"><span -class="header-section-number">2.2.1.5</span> Option +<h4 data-number="2.2.1.7" id="option-debugextensionsfilename"><span +class="header-section-number">2.2.1.7</span> Option <code>debugExtensionsFileName</code></h4> <dl> <dt><code>debugExtensionsFileName</code> (default value: @@ -1294,8 +1380,8 @@ syntax extensions (see option <strong><code>extensions</code></strong>) have been applied.</p> </dd> </dl> -<h4 data-number="2.2.1.6" id="option-frozencachefilename"><span -class="header-section-number">2.2.1.6</span> Option +<h4 data-number="2.2.1.8" id="option-frozencachefilename"><span +class="header-section-number">2.2.1.8</span> Option <code>frozenCacheFileName</code></h4> <dl> <dt><code>frozenCacheFileName</code> (default value: @@ -1318,21 +1404,21 @@ not be reflected.</p> <h5 class="unnumbered" id="lua-module-example-2">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="cb80"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb80-1"><a href="#cb80-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb80-2"><a href="#cb80-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb80-3"><a href="#cb80-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb80-4"><a href="#cb80-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb80-5"><a href="#cb80-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb80-6"><a href="#cb80-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb80-7"><a href="#cb80-7" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({finalizeCache = true, frozenCacheFileName = "cache.tex"})</span> -<span id="cb80-8"><a href="#cb80-8" aria-hidden="true" tabindex="-1"></a> local input = "Hello *world*!"</span> -<span id="cb80-9"><a href="#cb80-9" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb80-10"><a href="#cb80-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb80-11"><a href="#cb80-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb79"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb79-1"><a href="#cb79-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb79-2"><a href="#cb79-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb79-3"><a href="#cb79-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb79-4"><a href="#cb79-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb79-5"><a href="#cb79-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb79-6"><a href="#cb79-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb79-7"><a href="#cb79-7" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({finalizeCache = true, frozenCacheFileName = "cache.tex"})</span> +<span id="cb79-8"><a href="#cb79-8" aria-hidden="true" tabindex="-1"></a> local input = "Hello *world*!"</span> +<span id="cb79-9"><a href="#cb79-9" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb79-10"><a href="#cb79-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb79-11"><a href="#cb79-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb81"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb81-1"><a href="#cb81-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb80"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb80-1"><a href="#cb80-1" aria-hidden="true" tabindex="-1"></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>!â A frozen cache will also be produced in the <code>cache.tex</code> output file as we requested using @@ -1341,22 +1427,22 @@ options.</p> <h5 class="unnumbered" id="lua-cli-example-2">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="cb82"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb82-1"><a href="#cb82-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb82-2"><a href="#cb82-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb82-3"><a href="#cb82-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb82-4"><a href="#cb82-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb82-5"><a href="#cb82-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> hello</span> -<span id="cb82-6"><a href="#cb82-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb82-7"><a href="#cb82-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb81"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb81-1"><a href="#cb81-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb81-2"><a href="#cb81-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb81-3"><a href="#cb81-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb81-4"><a href="#cb81-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb81-5"><a href="#cb81-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> hello</span> +<span id="cb81-6"><a href="#cb81-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb81-7"><a href="#cb81-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Using a text editor, create a text document named <code>hello.md</code> with the following content:</p> -<div class="sourceCode" id="cb83"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb83-1"><a href="#cb83-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> +<div class="sourceCode" id="cb82"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb82-1"><a href="#cb82-1" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb84"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb84-1"><a href="#cb84-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠finalizeCache=true frozenCacheFileName=cache.tex <span class="at">--</span> hello.md hello.tex</span> -<span id="cb84-2"><a href="#cb84-2" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb83"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb83-1"><a href="#cb83-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠finalizeCache=true frozenCacheFileName=cache.tex <span class="at">--</span> hello.md hello.tex</span> +<span id="cb83-2"><a href="#cb83-2" aria-hidden="true" tabindex="-1"></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 @@ -1375,17 +1461,17 @@ options.</p> 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="cb85"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb85-1"><a href="#cb85-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb85-2"><a href="#cb85-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFinalizeCache</span>{true}</span> -<span id="cb85-3"><a href="#cb85-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{cache.tex}</span> -<span id="cb85-4"><a href="#cb85-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb85-5"><a href="#cb85-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb85-6"><a href="#cb85-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb85-7"><a href="#cb85-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb84"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb84-1"><a href="#cb84-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb84-2"><a href="#cb84-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFinalizeCache</span>{true}</span> +<span id="cb84-3"><a href="#cb84-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{cache.tex}</span> +<span id="cb84-4"><a href="#cb84-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb84-5"><a href="#cb84-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb84-6"><a href="#cb84-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb84-7"><a href="#cb84-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb86"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb86-1"><a href="#cb86-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb85"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb85-1"><a href="#cb85-1" aria-hidden="true" tabindex="-1"></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>!â A frozen cache will also be produced in the <code>cache.tex</code> output file as we requested using @@ -1393,17 +1479,17 @@ the <code>finalizeCache</code> and <code>frozenCacheFileName</code> options.</p> <p>Next, create a new text document <code>frozen-document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb87"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb87-1"><a href="#cb87-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb87-2"><a href="#cb87-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCache</span>{true}</span> -<span id="cb87-3"><a href="#cb87-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{cache.tex}</span> -<span id="cb87-4"><a href="#cb87-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb87-5"><a href="#cb87-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> -<span id="cb87-6"><a href="#cb87-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb87-7"><a href="#cb87-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb86"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb86-1"><a href="#cb86-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb86-2"><a href="#cb86-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCache</span>{true}</span> +<span id="cb86-3"><a href="#cb86-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{cache.tex}</span> +<span id="cb86-4"><a href="#cb86-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb86-5"><a href="#cb86-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> +<span id="cb86-6"><a href="#cb86-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb86-7"><a href="#cb86-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Last, invoke pdfTeX without shell access from the terminal:</p> -<div class="sourceCode" id="cb88"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb88-1"><a href="#cb88-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">-no-shell-escape</span> frozen-document.tex</span></code></pre></div> +<div class="sourceCode" id="cb87"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb87-1"><a href="#cb87-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">-no-shell-escape</span> frozen-document.tex</span></code></pre></div> <p>A PDF document named <code>frozen-document.pdf</code> should be produced and contain the text âHello <em>world</em>!â Since we used the contents of the frozen cache using the @@ -1415,17 +1501,17 @@ in the content of the markdown document from âHello <em>world</em>!â to 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="cb89"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb89-1"><a href="#cb89-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[finalizecache]{<span class="ex">article</span>}</span> -<span id="cb89-2"><a href="#cb89-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[frozenCacheFileName=cache.tex]{<span class="ex">markdown</span>}</span> -<span id="cb89-3"><a href="#cb89-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb89-4"><a href="#cb89-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb89-5"><a href="#cb89-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb89-6"><a href="#cb89-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb89-7"><a href="#cb89-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb88"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb88-1"><a href="#cb88-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[finalizecache]{<span class="ex">article</span>}</span> +<span id="cb88-2"><a href="#cb88-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[frozenCacheFileName=cache.tex]{<span class="ex">markdown</span>}</span> +<span id="cb88-3"><a href="#cb88-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb88-4"><a href="#cb88-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb88-5"><a href="#cb88-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb88-6"><a href="#cb88-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb88-7"><a href="#cb88-7" aria-hidden="true" tabindex="-1"></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="cb90"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb90-1"><a href="#cb90-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb89"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb89-1"><a href="#cb89-1" aria-hidden="true" tabindex="-1"></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>!â A frozen cache will also be produced in the <code>cache.tex</code> output file as we requested using @@ -1433,17 +1519,17 @@ the <code>finalizecache</code> and <code>frozenCacheFileName</code> options.</p> <p>Next, create a new text document <code>frozen-document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb91"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb91-1"><a href="#cb91-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[frozencache]{<span class="ex">article</span>}</span> -<span id="cb91-2"><a href="#cb91-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[frozenCacheFileName=cache.tex]{<span class="ex">markdown</span>}</span> -<span id="cb91-3"><a href="#cb91-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb91-4"><a href="#cb91-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb91-5"><a href="#cb91-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> -<span id="cb91-6"><a href="#cb91-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb91-7"><a href="#cb91-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb90"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb90-1"><a href="#cb90-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[frozencache]{<span class="ex">article</span>}</span> +<span id="cb90-2"><a href="#cb90-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[frozenCacheFileName=cache.tex]{<span class="ex">markdown</span>}</span> +<span id="cb90-3"><a href="#cb90-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb90-4"><a href="#cb90-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb90-5"><a href="#cb90-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> +<span id="cb90-6"><a href="#cb90-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb90-7"><a href="#cb90-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> <p>Last, invoke pdfTeX without shell access from the terminal:</p> -<div class="sourceCode" id="cb92"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb92-1"><a href="#cb92-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">-no-shell-escape</span> frozen-document.tex</span></code></pre></div> +<div class="sourceCode" id="cb91"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb91-1"><a href="#cb91-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">-no-shell-escape</span> frozen-document.tex</span></code></pre></div> <p>A PDF document named <code>frozen-document.pdf</code> should be produced and contain the text âHello <em>world</em>!â Since we used the contents of the frozen cache using the <code>frozencache</code> option, @@ -1455,21 +1541,21 @@ reflected.</p> 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="cb93"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb93-1"><a href="#cb93-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb93-2"><a href="#cb93-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> -<span id="cb93-3"><a href="#cb93-3" aria-hidden="true" tabindex="-1"></a> [</span> -<span id="cb93-4"><a href="#cb93-4" aria-hidden="true" tabindex="-1"></a> finalizeCache = yes,</span> -<span id="cb93-5"><a href="#cb93-5" aria-hidden="true" tabindex="-1"></a> frozenCacheFileName = cache.tex,</span> -<span id="cb93-6"><a href="#cb93-6" aria-hidden="true" tabindex="-1"></a> ]</span> -<span id="cb93-7"><a href="#cb93-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb93-8"><a href="#cb93-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb93-9"><a href="#cb93-9" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb93-10"><a href="#cb93-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb93-11"><a href="#cb93-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb92"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb92-1"><a href="#cb92-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb92-2"><a href="#cb92-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> +<span id="cb92-3"><a href="#cb92-3" aria-hidden="true" tabindex="-1"></a> [</span> +<span id="cb92-4"><a href="#cb92-4" aria-hidden="true" tabindex="-1"></a> finalizeCache = yes,</span> +<span id="cb92-5"><a href="#cb92-5" aria-hidden="true" tabindex="-1"></a> frozenCacheFileName = cache.tex,</span> +<span id="cb92-6"><a href="#cb92-6" aria-hidden="true" tabindex="-1"></a> ]</span> +<span id="cb92-7"><a href="#cb92-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb92-8"><a href="#cb92-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb92-9"><a href="#cb92-9" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb92-10"><a href="#cb92-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb92-11"><a href="#cb92-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb94"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb94-1"><a href="#cb94-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb93"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb93-1"><a href="#cb93-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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>!â A frozen cache will also be produced in the <code>cache.tex</code> output file as we requested using @@ -1477,21 +1563,21 @@ the <code>finalizeCache</code> and <code>frozenCacheFileName</code> options.</p> <p>Next, create a new text document <code>frozen-document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb95"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb95-1"><a href="#cb95-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb95-2"><a href="#cb95-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> -<span id="cb95-3"><a href="#cb95-3" aria-hidden="true" tabindex="-1"></a> [</span> -<span id="cb95-4"><a href="#cb95-4" aria-hidden="true" tabindex="-1"></a> frozenCache = yes,</span> -<span id="cb95-5"><a href="#cb95-5" aria-hidden="true" tabindex="-1"></a> frozenCacheFileName = cache.tex,</span> -<span id="cb95-6"><a href="#cb95-6" aria-hidden="true" tabindex="-1"></a> ]</span> -<span id="cb95-7"><a href="#cb95-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb95-8"><a href="#cb95-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb95-9"><a href="#cb95-9" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> -<span id="cb95-10"><a href="#cb95-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb95-11"><a href="#cb95-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb94"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb94-1"><a href="#cb94-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb94-2"><a href="#cb94-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> +<span id="cb94-3"><a href="#cb94-3" aria-hidden="true" tabindex="-1"></a> [</span> +<span id="cb94-4"><a href="#cb94-4" aria-hidden="true" tabindex="-1"></a> frozenCache = yes,</span> +<span id="cb94-5"><a href="#cb94-5" aria-hidden="true" tabindex="-1"></a> frozenCacheFileName = cache.tex,</span> +<span id="cb94-6"><a href="#cb94-6" aria-hidden="true" tabindex="-1"></a> ]</span> +<span id="cb94-7"><a href="#cb94-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb94-8"><a href="#cb94-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb94-9"><a href="#cb94-9" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> +<span id="cb94-10"><a href="#cb94-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb94-11"><a href="#cb94-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Last, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb96"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb96-1"><a href="#cb96-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> frozen-document.tex</span></code></pre></div> +<div class="sourceCode" id="cb95"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb95-1"><a href="#cb95-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> frozen-document.tex</span></code></pre></div> <p>A PDF document named <code>frozen-document.pdf</code> should be produced and contain the text âHello <em>world</em>!â Since we used the contents of the frozen cache using the @@ -1499,8 +1585,8 @@ contents of the frozen cache using the the document without accessing the shell or invoking Lua, but the change in the content of the markdown document from âHello <em>world</em>!â to âHi <em>world</em>!â was not reflected.</p> -<h4 data-number="2.2.1.7" id="option-autoidentifiers"><span -class="header-section-number">2.2.1.7</span> Option +<h4 data-number="2.2.1.9" id="option-autoidentifiers"><span +class="header-section-number">2.2.1.9</span> Option <code>autoIdentifiers</code></h4> <dl> <dt><code>autoIdentifiers</code> (default value: @@ -1512,10 +1598,10 @@ class="header-section-number">2.2.1.7</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-auto_identifiers">auto identifiers syntax extension</a>:</p> -<div class="sourceCode" id="cb97"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb97-1"><a href="#cb97-1" aria-hidden="true" tabindex="-1"></a>The following heading received the identifier <span class="in">`sesame-street`</span>:</span> -<span id="cb97-2"><a href="#cb97-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb97-3"><a href="#cb97-3" aria-hidden="true" tabindex="-1"></a><span class="fu"># 123 Sesame Street</span></span></code></pre></div> +<div class="sourceCode" id="cb96"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb96-1"><a href="#cb96-1" aria-hidden="true" tabindex="-1"></a>The following heading received the identifier <span class="in">`sesame-street`</span>:</span> +<span id="cb96-2"><a href="#cb96-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb96-3"><a href="#cb96-3" aria-hidden="true" tabindex="-1"></a><span class="fu"># 123 Sesame Street</span></span></code></pre></div> </dd> <dt>false</dt> <dd> @@ -1526,8 +1612,8 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb97-1"><a hre </dl> <p>See also the option <strong><code>gfmAutoIdentifiers</code></strong>.</p> -<h4 data-number="2.2.1.8" id="option-blankbeforeblockquote"><span -class="header-section-number">2.2.1.8</span> Option +<h4 data-number="2.2.1.10" id="option-blankbeforeblockquote"><span +class="header-section-number">2.2.1.10</span> Option <code>blankBeforeBlockquote</code></h4> <dl> <dt><code>blankBeforeBlockquote</code> (default value: @@ -1550,31 +1636,31 @@ blockquote.</p> <h5 class="unnumbered" id="lua-module-example-3">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="cb98"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb98-1"><a href="#cb98-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb98-2"><a href="#cb98-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb98-3"><a href="#cb98-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb98-4"><a href="#cb98-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb98-5"><a href="#cb98-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb98-6"><a href="#cb98-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb98-7"><a href="#cb98-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb98-8"><a href="#cb98-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb98-9"><a href="#cb98-9" aria-hidden="true" tabindex="-1"></a> local convert, input</span> -<span id="cb98-10"><a href="#cb98-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb98-11"><a href="#cb98-11" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> -<span id="cb98-12"><a href="#cb98-12" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb98-13"><a href="#cb98-13" aria-hidden="true" tabindex="-1"></a> "> A quote." .. newline</span> -<span id="cb98-14"><a href="#cb98-14" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> -<span id="cb98-15"><a href="#cb98-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb98-16"><a href="#cb98-16" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({blankBeforeBlockquote = true})</span> -<span id="cb98-17"><a href="#cb98-17" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb98-18"><a href="#cb98-18" aria-hidden="true" tabindex="-1"></a> "> Not a quote." .. newline</span> -<span id="cb98-19"><a href="#cb98-19" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb98-20"><a href="#cb98-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb98-21"><a href="#cb98-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb97"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb97-1"><a href="#cb97-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb97-2"><a href="#cb97-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb97-3"><a href="#cb97-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb97-4"><a href="#cb97-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb97-5"><a href="#cb97-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb97-6"><a href="#cb97-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb97-7"><a href="#cb97-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb97-8"><a href="#cb97-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb97-9"><a href="#cb97-9" aria-hidden="true" tabindex="-1"></a> local convert, input</span> +<span id="cb97-10"><a href="#cb97-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb97-11"><a href="#cb97-11" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> +<span id="cb97-12"><a href="#cb97-12" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb97-13"><a href="#cb97-13" aria-hidden="true" tabindex="-1"></a> "> A quote." .. newline</span> +<span id="cb97-14"><a href="#cb97-14" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> +<span id="cb97-15"><a href="#cb97-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb97-16"><a href="#cb97-16" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({blankBeforeBlockquote = true})</span> +<span id="cb97-17"><a href="#cb97-17" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb97-18"><a href="#cb97-18" aria-hidden="true" tabindex="-1"></a> "> Not a quote." .. newline</span> +<span id="cb97-19"><a href="#cb97-19" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb97-20"><a href="#cb97-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb97-21"><a href="#cb97-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb99"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb99-1"><a href="#cb99-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb98"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb98-1"><a href="#cb98-1" aria-hidden="true" tabindex="-1"></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> @@ -1587,26 +1673,26 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-3">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="cb100"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb100-1"><a href="#cb100-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb100-2"><a href="#cb100-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb100-3"><a href="#cb100-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb100-4"><a href="#cb100-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb100-5"><a href="#cb100-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb100-6"><a href="#cb100-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb100-7"><a href="#cb100-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb100-8"><a href="#cb100-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb100-9"><a href="#cb100-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb99"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb99-1"><a href="#cb99-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb99-2"><a href="#cb99-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb99-3"><a href="#cb99-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb99-4"><a href="#cb99-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb99-5"><a href="#cb99-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb99-6"><a href="#cb99-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb99-7"><a href="#cb99-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb99-8"><a href="#cb99-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb99-9"><a href="#cb99-9" aria-hidden="true" tabindex="-1"></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="cb101"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb101-1"><a href="#cb101-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb101-2"><a href="#cb101-2" aria-hidden="true" tabindex="-1"></a><span class="at">> A quote?</span></span></code></pre></div> +<div class="sourceCode" id="cb100"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb100-1"><a href="#cb100-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb100-2"><a href="#cb100-2" aria-hidden="true" tabindex="-1"></a><span class="at">> A quote?</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb102"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb102-1"><a href="#cb102-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb102-2"><a href="#cb102-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠blankBeforeBlockquote=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb102-3"><a href="#cb102-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb101"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb101-1"><a href="#cb101-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb101-2"><a href="#cb101-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠blankBeforeBlockquote=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb101-3"><a href="#cb101-3" aria-hidden="true" tabindex="-1"></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 @@ -1629,24 +1715,24 @@ contain the following text:</p> 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="cb103"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb103-1"><a href="#cb103-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb103-2"><a href="#cb103-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb103-3"><a href="#cb103-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb103-4"><a href="#cb103-4" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb103-5"><a href="#cb103-5" aria-hidden="true" tabindex="-1"></a>> A quote.</span> -<span id="cb103-6"><a href="#cb103-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb103-7"><a href="#cb103-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb103-8"><a href="#cb103-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeBlockquote</span>{true}</span> -<span id="cb103-9"><a href="#cb103-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb103-10"><a href="#cb103-10" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb103-11"><a href="#cb103-11" aria-hidden="true" tabindex="-1"></a>> Not a quote.</span> -<span id="cb103-12"><a href="#cb103-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb103-13"><a href="#cb103-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb103-14"><a href="#cb103-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb102"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb102-1"><a href="#cb102-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb102-2"><a href="#cb102-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb102-3"><a href="#cb102-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb102-4"><a href="#cb102-4" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb102-5"><a href="#cb102-5" aria-hidden="true" tabindex="-1"></a>> A quote.</span> +<span id="cb102-6"><a href="#cb102-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb102-7"><a href="#cb102-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb102-8"><a href="#cb102-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeBlockquote</span>{true}</span> +<span id="cb102-9"><a href="#cb102-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb102-10"><a href="#cb102-10" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb102-11"><a href="#cb102-11" aria-hidden="true" tabindex="-1"></a>> Not a quote.</span> +<span id="cb102-12"><a href="#cb102-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb102-13"><a href="#cb102-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb102-14"><a href="#cb102-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb104"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb104-1"><a href="#cb104-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb103"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb103-1"><a href="#cb103-1" aria-hidden="true" tabindex="-1"></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> @@ -1660,25 +1746,25 @@ contain the following text:</p> 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="cb105"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb105-1"><a href="#cb105-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb105-2"><a href="#cb105-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb105-3"><a href="#cb105-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb105-4"><a href="#cb105-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb105-5"><a href="#cb105-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb105-6"><a href="#cb105-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb105-7"><a href="#cb105-7" aria-hidden="true" tabindex="-1"></a>> A quote.</span> -<span id="cb105-8"><a href="#cb105-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb105-9"><a href="#cb105-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb105-10"><a href="#cb105-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeBlockquote]</span> -<span id="cb105-11"><a href="#cb105-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb105-12"><a href="#cb105-12" aria-hidden="true" tabindex="-1"></a>> Not a quote.</span> -<span id="cb105-13"><a href="#cb105-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb105-14"><a href="#cb105-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb105-15"><a href="#cb105-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb104"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb104-1"><a href="#cb104-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb104-2"><a href="#cb104-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb104-3"><a href="#cb104-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb104-4"><a href="#cb104-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb104-5"><a href="#cb104-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb104-6"><a href="#cb104-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb104-7"><a href="#cb104-7" aria-hidden="true" tabindex="-1"></a>> A quote.</span> +<span id="cb104-8"><a href="#cb104-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb104-9"><a href="#cb104-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb104-10"><a href="#cb104-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeBlockquote]</span> +<span id="cb104-11"><a href="#cb104-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb104-12"><a href="#cb104-12" aria-hidden="true" tabindex="-1"></a>> Not a quote.</span> +<span id="cb104-13"><a href="#cb104-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb104-14"><a href="#cb104-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb104-15"><a href="#cb104-15" aria-hidden="true" tabindex="-1"></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="cb106"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb106-1"><a href="#cb106-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb105"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb105-1"><a href="#cb105-1" aria-hidden="true" tabindex="-1"></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> @@ -1692,25 +1778,25 @@ contain the following text:</p> 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="cb107"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb107-1"><a href="#cb107-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb107-2"><a href="#cb107-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb107-3"><a href="#cb107-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb107-4"><a href="#cb107-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb107-5"><a href="#cb107-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb107-6"><a href="#cb107-6" aria-hidden="true" tabindex="-1"></a>> A quote.</span> -<span id="cb107-7"><a href="#cb107-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb107-8"><a href="#cb107-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb107-9"><a href="#cb107-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeBlockquote = yes]</span> -<span id="cb107-10"><a href="#cb107-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb107-11"><a href="#cb107-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb107-12"><a href="#cb107-12" aria-hidden="true" tabindex="-1"></a>> Not a quote.</span> -<span id="cb107-13"><a href="#cb107-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb107-14"><a href="#cb107-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb107-15"><a href="#cb107-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb106"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb106-1"><a href="#cb106-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb106-2"><a href="#cb106-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb106-3"><a href="#cb106-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb106-4"><a href="#cb106-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb106-5"><a href="#cb106-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb106-6"><a href="#cb106-6" aria-hidden="true" tabindex="-1"></a>> A quote.</span> +<span id="cb106-7"><a href="#cb106-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb106-8"><a href="#cb106-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb106-9"><a href="#cb106-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeBlockquote = yes]</span> +<span id="cb106-10"><a href="#cb106-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb106-11"><a href="#cb106-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb106-12"><a href="#cb106-12" aria-hidden="true" tabindex="-1"></a>> Not a quote.</span> +<span id="cb106-13"><a href="#cb106-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb106-14"><a href="#cb106-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb106-15"><a href="#cb106-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb108"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb108-1"><a href="#cb108-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb107"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb107-1"><a href="#cb107-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -1720,8 +1806,8 @@ contain the following text:</p> </blockquote> <p>A paragraph > Not a quote.</p> </blockquote> -<h4 data-number="2.2.1.9" id="option-blankbeforecodefence"><span -class="header-section-number">2.2.1.9</span> Option +<h4 data-number="2.2.1.11" id="option-blankbeforecodefence"><span +class="header-section-number">2.2.1.11</span> Option <code>blankBeforeCodeFence</code></h4> <dl> <dt><code>blankBeforeCodeFence</code> (default value: @@ -1744,36 +1830,36 @@ fenced code block.</p> <h5 class="unnumbered" id="lua-module-example-4">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="cb109"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb109-1"><a href="#cb109-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb109-2"><a href="#cb109-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb109-3"><a href="#cb109-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb109-4"><a href="#cb109-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb109-5"><a href="#cb109-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb109-6"><a href="#cb109-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb109-7"><a href="#cb109-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb109-8"><a href="#cb109-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb109-9"><a href="#cb109-9" aria-hidden="true" tabindex="-1"></a> local convert, input</span> -<span id="cb109-10"><a href="#cb109-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb109-11"><a href="#cb109-11" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({fencedCode = true})</span> -<span id="cb109-12"><a href="#cb109-12" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb109-13"><a href="#cb109-13" aria-hidden="true" tabindex="-1"></a> "```" .. newline ..</span> -<span id="cb109-14"><a href="#cb109-14" aria-hidden="true" tabindex="-1"></a> "A fenced code." .. newline ..</span> -<span id="cb109-15"><a href="#cb109-15" aria-hidden="true" tabindex="-1"></a> "```" .. newline</span> -<span id="cb109-16"><a href="#cb109-16" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> -<span id="cb109-17"><a href="#cb109-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb109-18"><a href="#cb109-18" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({</span> -<span id="cb109-19"><a href="#cb109-19" aria-hidden="true" tabindex="-1"></a> fencedCode = true, blankBeforeCodeFence = true})</span> -<span id="cb109-20"><a href="#cb109-20" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb109-21"><a href="#cb109-21" aria-hidden="true" tabindex="-1"></a> "```" .. newline ..</span> -<span id="cb109-22"><a href="#cb109-22" aria-hidden="true" tabindex="-1"></a> "Not a fenced code." .. newline ..</span> -<span id="cb109-23"><a href="#cb109-23" aria-hidden="true" tabindex="-1"></a> "```" .. newline</span> -<span id="cb109-24"><a href="#cb109-24" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb109-25"><a href="#cb109-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb109-26"><a href="#cb109-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb108"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb108-1"><a href="#cb108-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb108-2"><a href="#cb108-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb108-3"><a href="#cb108-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb108-4"><a href="#cb108-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb108-5"><a href="#cb108-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb108-6"><a href="#cb108-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb108-7"><a href="#cb108-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb108-8"><a href="#cb108-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb108-9"><a href="#cb108-9" aria-hidden="true" tabindex="-1"></a> local convert, input</span> +<span id="cb108-10"><a href="#cb108-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb108-11"><a href="#cb108-11" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({fencedCode = true})</span> +<span id="cb108-12"><a href="#cb108-12" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb108-13"><a href="#cb108-13" aria-hidden="true" tabindex="-1"></a> "```" .. newline ..</span> +<span id="cb108-14"><a href="#cb108-14" aria-hidden="true" tabindex="-1"></a> "A fenced code." .. newline ..</span> +<span id="cb108-15"><a href="#cb108-15" aria-hidden="true" tabindex="-1"></a> "```" .. newline</span> +<span id="cb108-16"><a href="#cb108-16" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> +<span id="cb108-17"><a href="#cb108-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb108-18"><a href="#cb108-18" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({</span> +<span id="cb108-19"><a href="#cb108-19" aria-hidden="true" tabindex="-1"></a> fencedCode = true, blankBeforeCodeFence = true})</span> +<span id="cb108-20"><a href="#cb108-20" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb108-21"><a href="#cb108-21" aria-hidden="true" tabindex="-1"></a> "```" .. newline ..</span> +<span id="cb108-22"><a href="#cb108-22" aria-hidden="true" tabindex="-1"></a> "Not a fenced code." .. newline ..</span> +<span id="cb108-23"><a href="#cb108-23" aria-hidden="true" tabindex="-1"></a> "```" .. newline</span> +<span id="cb108-24"><a href="#cb108-24" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb108-25"><a href="#cb108-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb108-26"><a href="#cb108-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb110"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb110-1"><a href="#cb110-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb109"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb109-1"><a href="#cb109-1" aria-hidden="true" tabindex="-1"></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> @@ -1784,28 +1870,28 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-4">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="cb112"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb112-1"><a href="#cb112-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb112-2"><a href="#cb112-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb112-3"><a href="#cb112-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb112-4"><a href="#cb112-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb112-5"><a href="#cb112-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb112-6"><a href="#cb112-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb112-7"><a href="#cb112-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb112-8"><a href="#cb112-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb112-9"><a href="#cb112-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb111"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb111-1"><a href="#cb111-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb111-2"><a href="#cb111-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb111-3"><a href="#cb111-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb111-4"><a href="#cb111-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb111-5"><a href="#cb111-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb111-6"><a href="#cb111-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb111-7"><a href="#cb111-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb111-8"><a href="#cb111-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb111-9"><a href="#cb111-9" aria-hidden="true" tabindex="-1"></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="cb112"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb112-1"><a href="#cb112-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb112-2"><a href="#cb112-2" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span> +<span id="cb112-3"><a href="#cb112-3" aria-hidden="true" tabindex="-1"></a><span class="in">A code fence?</span></span> +<span id="cb112-4"><a href="#cb112-4" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb113"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb113-1"><a href="#cb113-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb113-2"><a href="#cb113-2" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span> -<span id="cb113-3"><a href="#cb113-3" aria-hidden="true" tabindex="-1"></a><span class="in">A code fence?</span></span> -<span id="cb113-4"><a href="#cb113-4" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb114"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb114-1"><a href="#cb114-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠fencedCode=true <span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb114-2"><a href="#cb114-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠fencedCode=true blankBeforeCodeFence=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb114-3"><a href="#cb114-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb113-1"><a href="#cb113-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠fencedCode=true <span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb113-2"><a href="#cb113-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠fencedCode=true blankBeforeCodeFence=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb113-3"><a href="#cb113-3" aria-hidden="true" tabindex="-1"></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 @@ -1826,29 +1912,29 @@ contain the following text:</p> 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="cb115"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb115-1"><a href="#cb115-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb115-2"><a href="#cb115-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFencedCode</span>{true}</span> +<span id="cb115-3"><a href="#cb115-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb115-4"><a href="#cb115-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb115-5"><a href="#cb115-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb115-6"><a href="#cb115-6" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb115-7"><a href="#cb115-7" aria-hidden="true" tabindex="-1"></a>A fenced code.</span> +<span id="cb115-8"><a href="#cb115-8" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb115-9"><a href="#cb115-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb115-10"><a href="#cb115-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb115-11"><a href="#cb115-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeCodeFence</span>{true}</span> +<span id="cb115-12"><a href="#cb115-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb115-13"><a href="#cb115-13" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb115-14"><a href="#cb115-14" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb115-15"><a href="#cb115-15" aria-hidden="true" tabindex="-1"></a>Not a fenced code.</span> +<span id="cb115-16"><a href="#cb115-16" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb115-17"><a href="#cb115-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb115-18"><a href="#cb115-18" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb115-19"><a href="#cb115-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb116"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb116-1"><a href="#cb116-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb116-2"><a href="#cb116-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFencedCode</span>{true}</span> -<span id="cb116-3"><a href="#cb116-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb116-4"><a href="#cb116-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb116-5"><a href="#cb116-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb116-6"><a href="#cb116-6" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb116-7"><a href="#cb116-7" aria-hidden="true" tabindex="-1"></a>A fenced code.</span> -<span id="cb116-8"><a href="#cb116-8" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb116-9"><a href="#cb116-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb116-10"><a href="#cb116-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb116-11"><a href="#cb116-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeCodeFence</span>{true}</span> -<span id="cb116-12"><a href="#cb116-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb116-13"><a href="#cb116-13" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb116-14"><a href="#cb116-14" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb116-15"><a href="#cb116-15" aria-hidden="true" tabindex="-1"></a>Not a fenced code.</span> -<span id="cb116-16"><a href="#cb116-16" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb116-17"><a href="#cb116-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb116-18"><a href="#cb116-18" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb116-19"><a href="#cb116-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb117"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb117-1"><a href="#cb117-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb116-1"><a href="#cb116-1" aria-hidden="true" tabindex="-1"></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> @@ -1860,29 +1946,29 @@ contain the following text:</p> 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="cb118"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb118-1"><a href="#cb118-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb118-2"><a href="#cb118-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</span> +<span id="cb118-3"><a href="#cb118-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb118-4"><a href="#cb118-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb118-5"><a href="#cb118-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb118-6"><a href="#cb118-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb118-7"><a href="#cb118-7" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb118-8"><a href="#cb118-8" aria-hidden="true" tabindex="-1"></a>A fenced code.</span> +<span id="cb118-9"><a href="#cb118-9" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb118-10"><a href="#cb118-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb118-11"><a href="#cb118-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb118-12"><a href="#cb118-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeCodeFence]</span> +<span id="cb118-13"><a href="#cb118-13" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb118-14"><a href="#cb118-14" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb118-15"><a href="#cb118-15" aria-hidden="true" tabindex="-1"></a>Not a fenced code.</span> +<span id="cb118-16"><a href="#cb118-16" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb118-17"><a href="#cb118-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb118-18"><a href="#cb118-18" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb118-19"><a href="#cb118-19" aria-hidden="true" tabindex="-1"></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="cb119"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb119-1"><a href="#cb119-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb119-2"><a href="#cb119-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</span> -<span id="cb119-3"><a href="#cb119-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb119-4"><a href="#cb119-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb119-5"><a href="#cb119-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb119-6"><a href="#cb119-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb119-7"><a href="#cb119-7" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb119-8"><a href="#cb119-8" aria-hidden="true" tabindex="-1"></a>A fenced code.</span> -<span id="cb119-9"><a href="#cb119-9" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb119-10"><a href="#cb119-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb119-11"><a href="#cb119-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb119-12"><a href="#cb119-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeCodeFence]</span> -<span id="cb119-13"><a href="#cb119-13" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb119-14"><a href="#cb119-14" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb119-15"><a href="#cb119-15" aria-hidden="true" tabindex="-1"></a>Not a fenced code.</span> -<span id="cb119-16"><a href="#cb119-16" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb119-17"><a href="#cb119-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb119-18"><a href="#cb119-18" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb119-19"><a href="#cb119-19" aria-hidden="true" tabindex="-1"></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="cb120"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb120-1"><a href="#cb120-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb119-1"><a href="#cb119-1" aria-hidden="true" tabindex="-1"></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> @@ -1894,30 +1980,30 @@ contain the following text:</p> 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="cb121"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb121-1"><a href="#cb121-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb121-2"><a href="#cb121-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[fencedCode = yes]</span> +<span id="cb121-3"><a href="#cb121-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb121-4"><a href="#cb121-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb121-5"><a href="#cb121-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb121-6"><a href="#cb121-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb121-7"><a href="#cb121-7" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb121-8"><a href="#cb121-8" aria-hidden="true" tabindex="-1"></a>A fenced code.</span> +<span id="cb121-9"><a href="#cb121-9" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb121-10"><a href="#cb121-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb121-11"><a href="#cb121-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb121-12"><a href="#cb121-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeCodeFence = yes]</span> +<span id="cb121-13"><a href="#cb121-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb121-14"><a href="#cb121-14" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb121-15"><a href="#cb121-15" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb121-16"><a href="#cb121-16" aria-hidden="true" tabindex="-1"></a>Not a fenced code.</span> +<span id="cb121-17"><a href="#cb121-17" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb121-18"><a href="#cb121-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb121-19"><a href="#cb121-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb121-20"><a href="#cb121-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb122"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb122-1"><a href="#cb122-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb122-2"><a href="#cb122-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[fencedCode = yes]</span> -<span id="cb122-3"><a href="#cb122-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb122-4"><a href="#cb122-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb122-5"><a href="#cb122-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb122-6"><a href="#cb122-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb122-7"><a href="#cb122-7" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb122-8"><a href="#cb122-8" aria-hidden="true" tabindex="-1"></a>A fenced code.</span> -<span id="cb122-9"><a href="#cb122-9" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb122-10"><a href="#cb122-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb122-11"><a href="#cb122-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb122-12"><a href="#cb122-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeCodeFence = yes]</span> -<span id="cb122-13"><a href="#cb122-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb122-14"><a href="#cb122-14" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb122-15"><a href="#cb122-15" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb122-16"><a href="#cb122-16" aria-hidden="true" tabindex="-1"></a>Not a fenced code.</span> -<span id="cb122-17"><a href="#cb122-17" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb122-18"><a href="#cb122-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb122-19"><a href="#cb122-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb122-20"><a href="#cb122-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb123"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb123-1"><a href="#cb123-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb122-1"><a href="#cb122-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -1925,8 +2011,8 @@ contain the following text:</p> <pre><code>A fenced code.</code></pre> <p>A paragraph. <code>Not a fenced code.</code></p> </blockquote> -<h4 data-number="2.2.1.10" id="option-blankbeforedivfence"><span -class="header-section-number">2.2.1.10</span> Option +<h4 data-number="2.2.1.12" id="option-blankbeforedivfence"><span +class="header-section-number">2.2.1.12</span> Option <code>blankBeforeDivFence</code></h4> <dl> <dt><code>blankBeforeDivFence</code> (default value: @@ -1949,31 +2035,31 @@ div.</p> 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="cb125"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb125-1"><a href="#cb125-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb125-2"><a href="#cb125-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedDivs]{<span class="ex">markdown</span>}</span> -<span id="cb125-3"><a href="#cb125-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb125-4"><a href="#cb125-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb125-5"><a href="#cb125-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb125-6"><a href="#cb125-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb125-7"><a href="#cb125-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb125-8"><a href="#cb125-8" aria-hidden="true" tabindex="-1"></a>::: {.identifier}</span> -<span id="cb125-9"><a href="#cb125-9" aria-hidden="true" tabindex="-1"></a>A fenced div.</span> -<span id="cb125-10"><a href="#cb125-10" aria-hidden="true" tabindex="-1"></a>:::</span> -<span id="cb125-11"><a href="#cb125-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb125-12"><a href="#cb125-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb125-13"><a href="#cb125-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeDivFence]</span> -<span id="cb125-14"><a href="#cb125-14" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb125-15"><a href="#cb125-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb125-16"><a href="#cb125-16" aria-hidden="true" tabindex="-1"></a>::: {.identifier}</span> -<span id="cb125-17"><a href="#cb125-17" aria-hidden="true" tabindex="-1"></a>Not a fenced div.</span> -<span id="cb125-18"><a href="#cb125-18" aria-hidden="true" tabindex="-1"></a>:::</span> -<span id="cb125-19"><a href="#cb125-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb125-20"><a href="#cb125-20" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb125-21"><a href="#cb125-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb124"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb124-1"><a href="#cb124-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb124-2"><a href="#cb124-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedDivs]{<span class="ex">markdown</span>}</span> +<span id="cb124-3"><a href="#cb124-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb124-4"><a href="#cb124-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb124-5"><a href="#cb124-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb124-6"><a href="#cb124-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb124-7"><a href="#cb124-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb124-8"><a href="#cb124-8" aria-hidden="true" tabindex="-1"></a>::: {.identifier}</span> +<span id="cb124-9"><a href="#cb124-9" aria-hidden="true" tabindex="-1"></a>A fenced div.</span> +<span id="cb124-10"><a href="#cb124-10" aria-hidden="true" tabindex="-1"></a>:::</span> +<span id="cb124-11"><a href="#cb124-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb124-12"><a href="#cb124-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb124-13"><a href="#cb124-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeDivFence]</span> +<span id="cb124-14"><a href="#cb124-14" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb124-15"><a href="#cb124-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb124-16"><a href="#cb124-16" aria-hidden="true" tabindex="-1"></a>::: {.identifier}</span> +<span id="cb124-17"><a href="#cb124-17" aria-hidden="true" tabindex="-1"></a>Not a fenced div.</span> +<span id="cb124-18"><a href="#cb124-18" aria-hidden="true" tabindex="-1"></a>:::</span> +<span id="cb124-19"><a href="#cb124-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb124-20"><a href="#cb124-20" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb124-21"><a href="#cb124-21" aria-hidden="true" tabindex="-1"></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="cb126"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb126-1"><a href="#cb126-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb125"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb125-1"><a href="#cb125-1" aria-hidden="true" tabindex="-1"></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> @@ -1982,8 +2068,8 @@ contain the following text:</p> <p>A paragraph.</p> <p>::: {.identifier} Not a fenced div. :::</p> </blockquote> -<h4 data-number="2.2.1.11" id="option-blankbeforeheading"><span -class="header-section-number">2.2.1.11</span> Option +<h4 data-number="2.2.1.13" id="option-blankbeforeheading"><span +class="header-section-number">2.2.1.13</span> Option <code>blankBeforeHeading</code></h4> <dl> <dt><code>blankBeforeHeading</code> (default value: @@ -2006,34 +2092,34 @@ header.</p> <h5 class="unnumbered" id="lua-module-example-5">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="cb127"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb127-1"><a href="#cb127-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb127-2"><a href="#cb127-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb127-3"><a href="#cb127-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bf</span> #1}<span class="fu">\par</span>}</span> -<span id="cb127-4"><a href="#cb127-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb127-5"><a href="#cb127-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb127-6"><a href="#cb127-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb127-7"><a href="#cb127-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb127-8"><a href="#cb127-8" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb127-9"><a href="#cb127-9" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb127-10"><a href="#cb127-10" aria-hidden="true" tabindex="-1"></a> local convert, input</span> -<span id="cb127-11"><a href="#cb127-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb127-12"><a href="#cb127-12" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> -<span id="cb127-13"><a href="#cb127-13" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb127-14"><a href="#cb127-14" aria-hidden="true" tabindex="-1"></a> "A heading." .. newline ..</span> -<span id="cb127-15"><a href="#cb127-15" aria-hidden="true" tabindex="-1"></a> "==========" .. newline</span> -<span id="cb127-16"><a href="#cb127-16" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> -<span id="cb127-17"><a href="#cb127-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb127-18"><a href="#cb127-18" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({blankBeforeHeading = true})</span> -<span id="cb127-19"><a href="#cb127-19" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb127-20"><a href="#cb127-20" aria-hidden="true" tabindex="-1"></a> "Not a heading." .. newline ..</span> -<span id="cb127-21"><a href="#cb127-21" aria-hidden="true" tabindex="-1"></a> "==============" .. newline</span> -<span id="cb127-22"><a href="#cb127-22" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb127-23"><a href="#cb127-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb127-24"><a href="#cb127-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb126"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb126-1"><a href="#cb126-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb126-2"><a href="#cb126-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb126-3"><a href="#cb126-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bf</span> #1}<span class="fu">\par</span>}</span> +<span id="cb126-4"><a href="#cb126-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb126-5"><a href="#cb126-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb126-6"><a href="#cb126-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb126-7"><a href="#cb126-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb126-8"><a href="#cb126-8" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb126-9"><a href="#cb126-9" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb126-10"><a href="#cb126-10" aria-hidden="true" tabindex="-1"></a> local convert, input</span> +<span id="cb126-11"><a href="#cb126-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb126-12"><a href="#cb126-12" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> +<span id="cb126-13"><a href="#cb126-13" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb126-14"><a href="#cb126-14" aria-hidden="true" tabindex="-1"></a> "A heading." .. newline ..</span> +<span id="cb126-15"><a href="#cb126-15" aria-hidden="true" tabindex="-1"></a> "==========" .. newline</span> +<span id="cb126-16"><a href="#cb126-16" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> +<span id="cb126-17"><a href="#cb126-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb126-18"><a href="#cb126-18" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({blankBeforeHeading = true})</span> +<span id="cb126-19"><a href="#cb126-19" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb126-20"><a href="#cb126-20" aria-hidden="true" tabindex="-1"></a> "Not a heading." .. newline ..</span> +<span id="cb126-21"><a href="#cb126-21" aria-hidden="true" tabindex="-1"></a> "==============" .. newline</span> +<span id="cb126-22"><a href="#cb126-22" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb126-23"><a href="#cb126-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb126-24"><a href="#cb126-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb128"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb128-1"><a href="#cb128-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb127"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb127-1"><a href="#cb127-1" aria-hidden="true" tabindex="-1"></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> @@ -2044,27 +2130,27 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-5">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="cb129"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb129-1"><a href="#cb129-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb129-2"><a href="#cb129-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb129-3"><a href="#cb129-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb129-4"><a href="#cb129-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb129-5"><a href="#cb129-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb129-6"><a href="#cb129-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb129-7"><a href="#cb129-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb129-8"><a href="#cb129-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb129-9"><a href="#cb129-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb128"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb128-1"><a href="#cb128-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb128-2"><a href="#cb128-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb128-3"><a href="#cb128-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb128-4"><a href="#cb128-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb128-5"><a href="#cb128-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb128-6"><a href="#cb128-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb128-7"><a href="#cb128-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb128-8"><a href="#cb128-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb128-9"><a href="#cb128-9" aria-hidden="true" tabindex="-1"></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="cb130"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb130-1"><a href="#cb130-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb130-2"><a href="#cb130-2" aria-hidden="true" tabindex="-1"></a>A heading?</span> -<span id="cb130-3"><a href="#cb130-3" aria-hidden="true" tabindex="-1"></a><span class="fu">==========</span></span></code></pre></div> +<div class="sourceCode" id="cb129"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb129-1"><a href="#cb129-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb129-2"><a href="#cb129-2" aria-hidden="true" tabindex="-1"></a>A heading?</span> +<span id="cb129-3"><a href="#cb129-3" aria-hidden="true" tabindex="-1"></a><span class="fu">==========</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb131"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb131-1"><a href="#cb131-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb131-2"><a href="#cb131-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠blankBeforeHeading=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb131-3"><a href="#cb131-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb130"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb130-1"><a href="#cb130-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb130-2"><a href="#cb130-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠blankBeforeHeading=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb130-3"><a href="#cb130-3" aria-hidden="true" tabindex="-1"></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 @@ -2085,26 +2171,26 @@ contain the following text:</p> 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="cb132"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb132-1"><a href="#cb132-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb132-2"><a href="#cb132-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb132-3"><a href="#cb132-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb132-4"><a href="#cb132-4" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb132-5"><a href="#cb132-5" aria-hidden="true" tabindex="-1"></a>A heading.</span> -<span id="cb132-6"><a href="#cb132-6" aria-hidden="true" tabindex="-1"></a>==========</span> -<span id="cb132-7"><a href="#cb132-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb132-8"><a href="#cb132-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb132-9"><a href="#cb132-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeHeading</span>{true}</span> -<span id="cb132-10"><a href="#cb132-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb132-11"><a href="#cb132-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb132-12"><a href="#cb132-12" aria-hidden="true" tabindex="-1"></a>Not a heading.</span> -<span id="cb132-13"><a href="#cb132-13" aria-hidden="true" tabindex="-1"></a>==============</span> -<span id="cb132-14"><a href="#cb132-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb132-15"><a href="#cb132-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb132-16"><a href="#cb132-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb131"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb131-1"><a href="#cb131-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb131-2"><a href="#cb131-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb131-3"><a href="#cb131-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb131-4"><a href="#cb131-4" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb131-5"><a href="#cb131-5" aria-hidden="true" tabindex="-1"></a>A heading.</span> +<span id="cb131-6"><a href="#cb131-6" aria-hidden="true" tabindex="-1"></a>==========</span> +<span id="cb131-7"><a href="#cb131-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb131-8"><a href="#cb131-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb131-9"><a href="#cb131-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeHeading</span>{true}</span> +<span id="cb131-10"><a href="#cb131-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb131-11"><a href="#cb131-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb131-12"><a href="#cb131-12" aria-hidden="true" tabindex="-1"></a>Not a heading.</span> +<span id="cb131-13"><a href="#cb131-13" aria-hidden="true" tabindex="-1"></a>==============</span> +<span id="cb131-14"><a href="#cb131-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb131-15"><a href="#cb131-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb131-16"><a href="#cb131-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb133"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb133-1"><a href="#cb133-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb132"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb132-1"><a href="#cb132-1" aria-hidden="true" tabindex="-1"></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> @@ -2116,27 +2202,27 @@ contain the following text:</p> 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="cb134"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb134-1"><a href="#cb134-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb134-2"><a href="#cb134-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb134-3"><a href="#cb134-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb134-4"><a href="#cb134-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb134-5"><a href="#cb134-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb134-6"><a href="#cb134-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb134-7"><a href="#cb134-7" aria-hidden="true" tabindex="-1"></a>A heading.</span> -<span id="cb134-8"><a href="#cb134-8" aria-hidden="true" tabindex="-1"></a>==========</span> -<span id="cb134-9"><a href="#cb134-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb134-10"><a href="#cb134-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb134-11"><a href="#cb134-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeHeading]</span> -<span id="cb134-12"><a href="#cb134-12" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb134-13"><a href="#cb134-13" aria-hidden="true" tabindex="-1"></a>Not a heading.</span> -<span id="cb134-14"><a href="#cb134-14" aria-hidden="true" tabindex="-1"></a>==============</span> -<span id="cb134-15"><a href="#cb134-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb134-16"><a href="#cb134-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb134-17"><a href="#cb134-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb133"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb133-1"><a href="#cb133-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb133-2"><a href="#cb133-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb133-3"><a href="#cb133-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb133-4"><a href="#cb133-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb133-5"><a href="#cb133-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb133-6"><a href="#cb133-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb133-7"><a href="#cb133-7" aria-hidden="true" tabindex="-1"></a>A heading.</span> +<span id="cb133-8"><a href="#cb133-8" aria-hidden="true" tabindex="-1"></a>==========</span> +<span id="cb133-9"><a href="#cb133-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb133-10"><a href="#cb133-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb133-11"><a href="#cb133-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeHeading]</span> +<span id="cb133-12"><a href="#cb133-12" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb133-13"><a href="#cb133-13" aria-hidden="true" tabindex="-1"></a>Not a heading.</span> +<span id="cb133-14"><a href="#cb133-14" aria-hidden="true" tabindex="-1"></a>==============</span> +<span id="cb133-15"><a href="#cb133-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb133-16"><a href="#cb133-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb133-17"><a href="#cb133-17" aria-hidden="true" tabindex="-1"></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="cb135"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb135-1"><a href="#cb135-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb134"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb134-1"><a href="#cb134-1" aria-hidden="true" tabindex="-1"></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> @@ -2148,27 +2234,27 @@ contain the following text:</p> 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="cb136"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb136-1"><a href="#cb136-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb136-2"><a href="#cb136-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb136-3"><a href="#cb136-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb136-4"><a href="#cb136-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb136-5"><a href="#cb136-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb136-6"><a href="#cb136-6" aria-hidden="true" tabindex="-1"></a>A heading.</span> -<span id="cb136-7"><a href="#cb136-7" aria-hidden="true" tabindex="-1"></a>==========</span> -<span id="cb136-8"><a href="#cb136-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb136-9"><a href="#cb136-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb136-10"><a href="#cb136-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeHeading = yes]</span> -<span id="cb136-11"><a href="#cb136-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb136-12"><a href="#cb136-12" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb136-13"><a href="#cb136-13" aria-hidden="true" tabindex="-1"></a>Not a heading.</span> -<span id="cb136-14"><a href="#cb136-14" aria-hidden="true" tabindex="-1"></a>==============</span> -<span id="cb136-15"><a href="#cb136-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb136-16"><a href="#cb136-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb136-17"><a href="#cb136-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb135"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb135-1"><a href="#cb135-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb135-2"><a href="#cb135-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb135-3"><a href="#cb135-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb135-4"><a href="#cb135-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb135-5"><a href="#cb135-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb135-6"><a href="#cb135-6" aria-hidden="true" tabindex="-1"></a>A heading.</span> +<span id="cb135-7"><a href="#cb135-7" aria-hidden="true" tabindex="-1"></a>==========</span> +<span id="cb135-8"><a href="#cb135-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb135-9"><a href="#cb135-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb135-10"><a href="#cb135-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeHeading = yes]</span> +<span id="cb135-11"><a href="#cb135-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb135-12"><a href="#cb135-12" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb135-13"><a href="#cb135-13" aria-hidden="true" tabindex="-1"></a>Not a heading.</span> +<span id="cb135-14"><a href="#cb135-14" aria-hidden="true" tabindex="-1"></a>==============</span> +<span id="cb135-15"><a href="#cb135-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb135-16"><a href="#cb135-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb135-17"><a href="#cb135-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb137"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb137-1"><a href="#cb137-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb136"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb136-1"><a href="#cb136-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -2176,8 +2262,8 @@ contain the following text:</p> <h1 id="a-heading.-3">A heading.</h1> <p>A paragraph. Not a heading. ==============</p> </blockquote> -<h4 data-number="2.2.1.12" id="option-blankbeforelist"><span -class="header-section-number">2.2.1.12</span> Option +<h4 data-number="2.2.1.14" id="option-blankbeforelist"><span +class="header-section-number">2.2.1.14</span> Option <code>blankBeforeList</code></h4> <dl> <dt><code>blankBeforeList</code> (default value: @@ -2199,32 +2285,32 @@ list.</p> <h5 class="unnumbered" id="lua-module-example-6">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="cb138"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb138-1"><a href="#cb138-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb138-2"><a href="#cb138-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb138-3"><a href="#cb138-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb138-4"><a href="#cb138-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb138-5"><a href="#cb138-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb138-6"><a href="#cb138-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb138-7"><a href="#cb138-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb138-8"><a href="#cb138-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb138-9"><a href="#cb138-9" aria-hidden="true" tabindex="-1"></a> local convert, input</span> -<span id="cb138-10"><a href="#cb138-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb138-11"><a href="#cb138-11" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> -<span id="cb138-12"><a href="#cb138-12" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb138-13"><a href="#cb138-13" aria-hidden="true" tabindex="-1"></a> "- a list" .. newline</span> -<span id="cb138-14"><a href="#cb138-14" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> -<span id="cb138-15"><a href="#cb138-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb138-16"><a href="#cb138-16" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({</span> -<span id="cb138-17"><a href="#cb138-17" aria-hidden="true" tabindex="-1"></a> blankBeforeList = true})</span> -<span id="cb138-18"><a href="#cb138-18" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> -<span id="cb138-19"><a href="#cb138-19" aria-hidden="true" tabindex="-1"></a> "- not a list" .. newline</span> -<span id="cb138-20"><a href="#cb138-20" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb138-21"><a href="#cb138-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb138-22"><a href="#cb138-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb137"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb137-1"><a href="#cb137-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb137-2"><a href="#cb137-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb137-3"><a href="#cb137-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb137-4"><a href="#cb137-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb137-5"><a href="#cb137-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb137-6"><a href="#cb137-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb137-7"><a href="#cb137-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb137-8"><a href="#cb137-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb137-9"><a href="#cb137-9" aria-hidden="true" tabindex="-1"></a> local convert, input</span> +<span id="cb137-10"><a href="#cb137-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb137-11"><a href="#cb137-11" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> +<span id="cb137-12"><a href="#cb137-12" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb137-13"><a href="#cb137-13" aria-hidden="true" tabindex="-1"></a> "- a list" .. newline</span> +<span id="cb137-14"><a href="#cb137-14" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> +<span id="cb137-15"><a href="#cb137-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb137-16"><a href="#cb137-16" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({</span> +<span id="cb137-17"><a href="#cb137-17" aria-hidden="true" tabindex="-1"></a> blankBeforeList = true})</span> +<span id="cb137-18"><a href="#cb137-18" aria-hidden="true" tabindex="-1"></a> input = "A paragraph." .. newline ..</span> +<span id="cb137-19"><a href="#cb137-19" aria-hidden="true" tabindex="-1"></a> "- not a list" .. newline</span> +<span id="cb137-20"><a href="#cb137-20" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb137-21"><a href="#cb137-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb137-22"><a href="#cb137-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb139"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb139-1"><a href="#cb139-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb138"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb138-1"><a href="#cb138-1" aria-hidden="true" tabindex="-1"></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> @@ -2237,26 +2323,26 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-6">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="cb140"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb140-1"><a href="#cb140-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb140-2"><a href="#cb140-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb140-3"><a href="#cb140-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb140-4"><a href="#cb140-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb140-5"><a href="#cb140-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb140-6"><a href="#cb140-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb140-7"><a href="#cb140-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb140-8"><a href="#cb140-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb140-9"><a href="#cb140-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb139"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb139-1"><a href="#cb139-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb139-2"><a href="#cb139-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb139-3"><a href="#cb139-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb139-4"><a href="#cb139-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb139-5"><a href="#cb139-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb139-6"><a href="#cb139-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb139-7"><a href="#cb139-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb139-8"><a href="#cb139-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb139-9"><a href="#cb139-9" aria-hidden="true" tabindex="-1"></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="cb141"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb141-1"><a href="#cb141-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb141-2"><a href="#cb141-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>a list?</span></code></pre></div> +<div class="sourceCode" id="cb140"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb140-1"><a href="#cb140-1" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb140-2"><a href="#cb140-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>a list?</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb142"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb142-1"><a href="#cb142-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb142-2"><a href="#cb142-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠blankBeforeList=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb142-3"><a href="#cb142-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb141"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb141-1"><a href="#cb141-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb141-2"><a href="#cb141-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠blankBeforeList=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb141-3"><a href="#cb141-3" aria-hidden="true" tabindex="-1"></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 @@ -2279,24 +2365,24 @@ contain the following text:</p> 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="cb143"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb143-1"><a href="#cb143-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb143-2"><a href="#cb143-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb143-3"><a href="#cb143-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb143-4"><a href="#cb143-4" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb143-5"><a href="#cb143-5" aria-hidden="true" tabindex="-1"></a>- a list</span> -<span id="cb143-6"><a href="#cb143-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb143-7"><a href="#cb143-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb143-8"><a href="#cb143-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeList</span>{true}</span> -<span id="cb143-9"><a href="#cb143-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb143-10"><a href="#cb143-10" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb143-11"><a href="#cb143-11" aria-hidden="true" tabindex="-1"></a>- not a list</span> -<span id="cb143-12"><a href="#cb143-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb143-13"><a href="#cb143-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb143-14"><a href="#cb143-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb142"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb142-1"><a href="#cb142-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb142-2"><a href="#cb142-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb142-3"><a href="#cb142-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb142-4"><a href="#cb142-4" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb142-5"><a href="#cb142-5" aria-hidden="true" tabindex="-1"></a>- a list</span> +<span id="cb142-6"><a href="#cb142-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb142-7"><a href="#cb142-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb142-8"><a href="#cb142-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBlankBeforeList</span>{true}</span> +<span id="cb142-9"><a href="#cb142-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb142-10"><a href="#cb142-10" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb142-11"><a href="#cb142-11" aria-hidden="true" tabindex="-1"></a>- not a list</span> +<span id="cb142-12"><a href="#cb142-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb142-13"><a href="#cb142-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb142-14"><a href="#cb142-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb144"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb144-1"><a href="#cb144-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb143"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb143-1"><a href="#cb143-1" aria-hidden="true" tabindex="-1"></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> @@ -2310,25 +2396,25 @@ contain the following text:</p> 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="cb145"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb145-1"><a href="#cb145-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb145-2"><a href="#cb145-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb145-3"><a href="#cb145-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb145-4"><a href="#cb145-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb145-5"><a href="#cb145-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb145-6"><a href="#cb145-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb145-7"><a href="#cb145-7" aria-hidden="true" tabindex="-1"></a>- a list</span> -<span id="cb145-8"><a href="#cb145-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb145-9"><a href="#cb145-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb145-10"><a href="#cb145-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeList]</span> -<span id="cb145-11"><a href="#cb145-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb145-12"><a href="#cb145-12" aria-hidden="true" tabindex="-1"></a>- not a list</span> -<span id="cb145-13"><a href="#cb145-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb145-14"><a href="#cb145-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb145-15"><a href="#cb145-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb144"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb144-1"><a href="#cb144-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb144-2"><a href="#cb144-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb144-3"><a href="#cb144-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb144-4"><a href="#cb144-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb144-5"><a href="#cb144-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb144-6"><a href="#cb144-6" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb144-7"><a href="#cb144-7" aria-hidden="true" tabindex="-1"></a>- a list</span> +<span id="cb144-8"><a href="#cb144-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb144-9"><a href="#cb144-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb144-10"><a href="#cb144-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[blankBeforeList]</span> +<span id="cb144-11"><a href="#cb144-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb144-12"><a href="#cb144-12" aria-hidden="true" tabindex="-1"></a>- not a list</span> +<span id="cb144-13"><a href="#cb144-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb144-14"><a href="#cb144-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb144-15"><a href="#cb144-15" aria-hidden="true" tabindex="-1"></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="cb146"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb146-1"><a href="#cb146-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb145"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb145-1"><a href="#cb145-1" aria-hidden="true" tabindex="-1"></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> @@ -2342,25 +2428,25 @@ contain the following text:</p> 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="cb147"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb147-1"><a href="#cb147-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb147-2"><a href="#cb147-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb147-3"><a href="#cb147-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb147-4"><a href="#cb147-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb147-5"><a href="#cb147-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb147-6"><a href="#cb147-6" aria-hidden="true" tabindex="-1"></a>- a list</span> -<span id="cb147-7"><a href="#cb147-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb147-8"><a href="#cb147-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb147-9"><a href="#cb147-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeList = yes]</span> -<span id="cb147-10"><a href="#cb147-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb147-11"><a href="#cb147-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> -<span id="cb147-12"><a href="#cb147-12" aria-hidden="true" tabindex="-1"></a>- not a list</span> -<span id="cb147-13"><a href="#cb147-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb147-14"><a href="#cb147-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb147-15"><a href="#cb147-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb146"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb146-1"><a href="#cb146-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb146-2"><a href="#cb146-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb146-3"><a href="#cb146-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb146-4"><a href="#cb146-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb146-5"><a href="#cb146-5" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb146-6"><a href="#cb146-6" aria-hidden="true" tabindex="-1"></a>- a list</span> +<span id="cb146-7"><a href="#cb146-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb146-8"><a href="#cb146-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb146-9"><a href="#cb146-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[blankBeforeList = yes]</span> +<span id="cb146-10"><a href="#cb146-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb146-11"><a href="#cb146-11" aria-hidden="true" tabindex="-1"></a>A paragraph.</span> +<span id="cb146-12"><a href="#cb146-12" aria-hidden="true" tabindex="-1"></a>- not a list</span> +<span id="cb146-13"><a href="#cb146-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb146-14"><a href="#cb146-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb146-15"><a href="#cb146-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb148"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb148-1"><a href="#cb148-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb147"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb147-1"><a href="#cb147-1" aria-hidden="true" tabindex="-1"></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> @@ -2370,8 +2456,8 @@ contain the following text:</p> </ul> <p>A paragraph. - not a list</p> </blockquote> -<h4 data-number="2.2.1.13" id="option-bracketedspans"><span -class="header-section-number">2.2.1.13</span> Option +<h4 data-number="2.2.1.15" id="option-bracketedspans"><span +class="header-section-number">2.2.1.15</span> Option <code>bracketedSpans</code></h4> <dl> <dt><code>bracketedSpans</code> (default value: <code>false</code>)</dt> @@ -2382,8 +2468,8 @@ class="header-section-number">2.2.1.13</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-bracketed_spans">bracketed span syntax extension</a>:</p> -<div class="sourceCode" id="cb149"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb149-1"><a href="#cb149-1" aria-hidden="true" tabindex="-1"></a><span class="co">[</span><span class="ot">This is *some text*</span><span class="co">]</span>{.class key=val}</span></code></pre></div> +<div class="sourceCode" id="cb148"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb148-1"><a href="#cb148-1" aria-hidden="true" tabindex="-1"></a><span class="co">[</span><span class="ot">This is *some text*</span><span class="co">]</span>{.class key=val}</span></code></pre></div> </dd> </dl> </dd> @@ -2400,51 +2486,51 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb149-1"><a hr 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="cb150"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb150-1"><a href="#cb150-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb150-2"><a href="#cb150-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[bracketedSpans]{<span class="ex">markdown</span>}</span> -<span id="cb150-3"><a href="#cb150-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> -<span id="cb150-4"><a href="#cb150-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb150-5"><a href="#cb150-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb150-6"><a href="#cb150-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb150-7"><a href="#cb150-7" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextBegin = {</span> -<span id="cb150-8"><a href="#cb150-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> -<span id="cb150-9"><a href="#cb150-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_begin:</span> -<span id="cb150-10"><a href="#cb150-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb150-11"><a href="#cb150-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb150-12"><a href="#cb150-12" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {</span> -<span id="cb150-13"><a href="#cb150-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\str</span>_if_eq:nnT</span> -<span id="cb150-14"><a href="#cb150-14" aria-hidden="true" tabindex="-1"></a> { ##1 }</span> -<span id="cb150-15"><a href="#cb150-15" aria-hidden="true" tabindex="-1"></a> { color }</span> -<span id="cb150-16"><a href="#cb150-16" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb150-17"><a href="#cb150-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_select:n { ##2 }</span> -<span id="cb150-18"><a href="#cb150-18" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb150-19"><a href="#cb150-19" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb150-20"><a href="#cb150-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb150-21"><a href="#cb150-21" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb150-22"><a href="#cb150-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb150-23"><a href="#cb150-23" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextEnd = {</span> -<span id="cb150-24"><a href="#cb150-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_end:</span> -<span id="cb150-25"><a href="#cb150-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb150-26"><a href="#cb150-26" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb150-27"><a href="#cb150-27" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb150-28"><a href="#cb150-28" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb150-29"><a href="#cb150-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb150-30"><a href="#cb150-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb150-31"><a href="#cb150-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb150-32"><a href="#cb150-32" aria-hidden="true" tabindex="-1"></a>Here is some [colored text]{color=red}.</span> -<span id="cb150-33"><a href="#cb150-33" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb150-34"><a href="#cb150-34" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb149"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb149-1"><a href="#cb149-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb149-2"><a href="#cb149-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[bracketedSpans]{<span class="ex">markdown</span>}</span> +<span id="cb149-3"><a href="#cb149-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> +<span id="cb149-4"><a href="#cb149-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb149-5"><a href="#cb149-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb149-6"><a href="#cb149-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb149-7"><a href="#cb149-7" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextBegin = {</span> +<span id="cb149-8"><a href="#cb149-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> +<span id="cb149-9"><a href="#cb149-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_begin:</span> +<span id="cb149-10"><a href="#cb149-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb149-11"><a href="#cb149-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb149-12"><a href="#cb149-12" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {</span> +<span id="cb149-13"><a href="#cb149-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\str</span>_if_eq:nnT</span> +<span id="cb149-14"><a href="#cb149-14" aria-hidden="true" tabindex="-1"></a> { ##1 }</span> +<span id="cb149-15"><a href="#cb149-15" aria-hidden="true" tabindex="-1"></a> { color }</span> +<span id="cb149-16"><a href="#cb149-16" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb149-17"><a href="#cb149-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_select:n { ##2 }</span> +<span id="cb149-18"><a href="#cb149-18" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb149-19"><a href="#cb149-19" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb149-20"><a href="#cb149-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb149-21"><a href="#cb149-21" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb149-22"><a href="#cb149-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb149-23"><a href="#cb149-23" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextEnd = {</span> +<span id="cb149-24"><a href="#cb149-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_end:</span> +<span id="cb149-25"><a href="#cb149-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb149-26"><a href="#cb149-26" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb149-27"><a href="#cb149-27" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb149-28"><a href="#cb149-28" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb149-29"><a href="#cb149-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb149-30"><a href="#cb149-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb149-31"><a href="#cb149-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb149-32"><a href="#cb149-32" aria-hidden="true" tabindex="-1"></a>Here is some [colored text]{color=red}.</span> +<span id="cb149-33"><a href="#cb149-33" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb149-34"><a href="#cb149-34" aria-hidden="true" tabindex="-1"></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="cb151"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb151-1"><a href="#cb151-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb150"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb150-1"><a href="#cb150-1" aria-hidden="true" tabindex="-1"></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>Here is some <span style="color: red">colored text</span>.</p> </blockquote> -<h4 data-number="2.2.1.14" id="option-breakableblockquotes"><span -class="header-section-number">2.2.1.14</span> Option +<h4 data-number="2.2.1.16" id="option-breakableblockquotes"><span +class="header-section-number">2.2.1.16</span> Option <code>breakableBlockquotes</code></h4> <dl> <dt><code>breakableBlockquotes</code> (default value: @@ -2465,32 +2551,32 @@ class="header-section-number">2.2.1.14</span> Option <h5 class="unnumbered" id="lua-module-example-7">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="cb152"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb152-1"><a href="#cb152-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb152-2"><a href="#cb152-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb152-3"><a href="#cb152-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bf</span> #1}<span class="fu">\par</span>}</span> -<span id="cb152-4"><a href="#cb152-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb152-5"><a href="#cb152-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb152-6"><a href="#cb152-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb152-7"><a href="#cb152-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb152-8"><a href="#cb152-8" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb152-9"><a href="#cb152-9" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb152-10"><a href="#cb152-10" aria-hidden="true" tabindex="-1"></a> local convert, input</span> -<span id="cb152-11"><a href="#cb152-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb152-12"><a href="#cb152-12" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({breakableBlockquotes = false})</span> -<span id="cb152-13"><a href="#cb152-13" aria-hidden="true" tabindex="-1"></a> input = "> A single" .. newline .. newline ..</span> -<span id="cb152-14"><a href="#cb152-14" aria-hidden="true" tabindex="-1"></a> "> block quote." .. newline</span> -<span id="cb152-15"><a href="#cb152-15" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> -<span id="cb152-16"><a href="#cb152-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb152-17"><a href="#cb152-17" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> -<span id="cb152-18"><a href="#cb152-18" aria-hidden="true" tabindex="-1"></a> input = "> A block quote." .. newline .. newline ..</span> -<span id="cb152-19"><a href="#cb152-19" aria-hidden="true" tabindex="-1"></a> "> Another block quote." .. newline</span> -<span id="cb152-20"><a href="#cb152-20" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb152-21"><a href="#cb152-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb152-22"><a href="#cb152-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb151"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb151-1"><a href="#cb151-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb151-2"><a href="#cb151-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb151-3"><a href="#cb151-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bf</span> #1}<span class="fu">\par</span>}</span> +<span id="cb151-4"><a href="#cb151-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb151-5"><a href="#cb151-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb151-6"><a href="#cb151-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb151-7"><a href="#cb151-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb151-8"><a href="#cb151-8" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb151-9"><a href="#cb151-9" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb151-10"><a href="#cb151-10" aria-hidden="true" tabindex="-1"></a> local convert, input</span> +<span id="cb151-11"><a href="#cb151-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb151-12"><a href="#cb151-12" aria-hidden="true" tabindex="-1"></a> convert = markdown.new({breakableBlockquotes = false})</span> +<span id="cb151-13"><a href="#cb151-13" aria-hidden="true" tabindex="-1"></a> input = "> A single" .. newline .. newline ..</span> +<span id="cb151-14"><a href="#cb151-14" aria-hidden="true" tabindex="-1"></a> "> block quote." .. newline</span> +<span id="cb151-15"><a href="#cb151-15" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input))</span> +<span id="cb151-16"><a href="#cb151-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb151-17"><a href="#cb151-17" aria-hidden="true" tabindex="-1"></a> convert = markdown.new()</span> +<span id="cb151-18"><a href="#cb151-18" aria-hidden="true" tabindex="-1"></a> input = "> A block quote." .. newline .. newline ..</span> +<span id="cb151-19"><a href="#cb151-19" aria-hidden="true" tabindex="-1"></a> "> Another block quote." .. newline</span> +<span id="cb151-20"><a href="#cb151-20" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb151-21"><a href="#cb151-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb151-22"><a href="#cb151-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb153"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb153-1"><a href="#cb153-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb152"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb152-1"><a href="#cb152-1" aria-hidden="true" tabindex="-1"></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> @@ -2507,27 +2593,27 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-7">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="cb154"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb154-1"><a href="#cb154-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb154-2"><a href="#cb154-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb154-3"><a href="#cb154-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb154-4"><a href="#cb154-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb154-5"><a href="#cb154-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb154-6"><a href="#cb154-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb154-7"><a href="#cb154-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb154-8"><a href="#cb154-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb154-9"><a href="#cb154-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb153"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb153-1"><a href="#cb153-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb153-2"><a href="#cb153-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb153-3"><a href="#cb153-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb153-4"><a href="#cb153-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb153-5"><a href="#cb153-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb153-6"><a href="#cb153-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb153-7"><a href="#cb153-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb153-8"><a href="#cb153-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb153-9"><a href="#cb153-9" aria-hidden="true" tabindex="-1"></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="cb155"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb155-1"><a href="#cb155-1" aria-hidden="true" tabindex="-1"></a><span class="at">> A single block quote</span></span> -<span id="cb155-2"><a href="#cb155-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb155-3"><a href="#cb155-3" aria-hidden="true" tabindex="-1"></a><span class="at">> or two block quotes?</span></span></code></pre></div> +<div class="sourceCode" id="cb154"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb154-1"><a href="#cb154-1" aria-hidden="true" tabindex="-1"></a><span class="at">> A single block quote</span></span> +<span id="cb154-2"><a href="#cb154-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb154-3"><a href="#cb154-3" aria-hidden="true" tabindex="-1"></a><span class="at">> or two block quotes?</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb156"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb156-1"><a href="#cb156-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠breakableBlockquotes=false <span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb156-2"><a href="#cb156-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb156-3"><a href="#cb156-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb155"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb155-1"><a href="#cb155-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠breakableBlockquotes=false <span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb155-2"><a href="#cb155-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb155-3"><a href="#cb155-3" aria-hidden="true" tabindex="-1"></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 @@ -2554,27 +2640,27 @@ contain the following text:</p> 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="cb157"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb157-1"><a href="#cb157-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb157-2"><a href="#cb157-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb157-3"><a href="#cb157-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBreakableBlockquotes</span>{false}</span> -<span id="cb157-4"><a href="#cb157-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb157-5"><a href="#cb157-5" aria-hidden="true" tabindex="-1"></a>> A single</span> -<span id="cb157-6"><a href="#cb157-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb157-7"><a href="#cb157-7" aria-hidden="true" tabindex="-1"></a>> block quote.</span> -<span id="cb157-8"><a href="#cb157-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb157-9"><a href="#cb157-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb157-10"><a href="#cb157-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBreakableBlockquotes</span>{true}</span> -<span id="cb157-11"><a href="#cb157-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb157-12"><a href="#cb157-12" aria-hidden="true" tabindex="-1"></a>> A block quote.</span> -<span id="cb157-13"><a href="#cb157-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb157-14"><a href="#cb157-14" aria-hidden="true" tabindex="-1"></a>> Another block quote.</span> -<span id="cb157-15"><a href="#cb157-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb157-16"><a href="#cb157-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb157-17"><a href="#cb157-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb156"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb156-1"><a href="#cb156-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb156-2"><a href="#cb156-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb156-3"><a href="#cb156-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBreakableBlockquotes</span>{false}</span> +<span id="cb156-4"><a href="#cb156-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb156-5"><a href="#cb156-5" aria-hidden="true" tabindex="-1"></a>> A single</span> +<span id="cb156-6"><a href="#cb156-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb156-7"><a href="#cb156-7" aria-hidden="true" tabindex="-1"></a>> block quote.</span> +<span id="cb156-8"><a href="#cb156-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb156-9"><a href="#cb156-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb156-10"><a href="#cb156-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionBreakableBlockquotes</span>{true}</span> +<span id="cb156-11"><a href="#cb156-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb156-12"><a href="#cb156-12" aria-hidden="true" tabindex="-1"></a>> A block quote.</span> +<span id="cb156-13"><a href="#cb156-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb156-14"><a href="#cb156-14" aria-hidden="true" tabindex="-1"></a>> Another block quote.</span> +<span id="cb156-15"><a href="#cb156-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb156-16"><a href="#cb156-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb156-17"><a href="#cb156-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb158"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb158-1"><a href="#cb158-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb157"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb157-1"><a href="#cb157-1" aria-hidden="true" tabindex="-1"></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> @@ -2592,27 +2678,27 @@ contain the following text:</p> 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="cb159"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb159-1"><a href="#cb159-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb159-2"><a href="#cb159-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb159-3"><a href="#cb159-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb159-4"><a href="#cb159-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb159-5"><a href="#cb159-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[breakableBlockquotes = false]</span> -<span id="cb159-6"><a href="#cb159-6" aria-hidden="true" tabindex="-1"></a>> A single</span> -<span id="cb159-7"><a href="#cb159-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb159-8"><a href="#cb159-8" aria-hidden="true" tabindex="-1"></a>> block quote.</span> -<span id="cb159-9"><a href="#cb159-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb159-10"><a href="#cb159-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb159-11"><a href="#cb159-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb159-12"><a href="#cb159-12" aria-hidden="true" tabindex="-1"></a>> A block quote.</span> -<span id="cb159-13"><a href="#cb159-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb159-14"><a href="#cb159-14" aria-hidden="true" tabindex="-1"></a>> Another block quote.</span> -<span id="cb159-15"><a href="#cb159-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb159-16"><a href="#cb159-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb159-17"><a href="#cb159-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb158"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb158-1"><a href="#cb158-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb158-2"><a href="#cb158-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb158-3"><a href="#cb158-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb158-4"><a href="#cb158-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb158-5"><a href="#cb158-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[breakableBlockquotes = false]</span> +<span id="cb158-6"><a href="#cb158-6" aria-hidden="true" tabindex="-1"></a>> A single</span> +<span id="cb158-7"><a href="#cb158-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb158-8"><a href="#cb158-8" aria-hidden="true" tabindex="-1"></a>> block quote.</span> +<span id="cb158-9"><a href="#cb158-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb158-10"><a href="#cb158-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb158-11"><a href="#cb158-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb158-12"><a href="#cb158-12" aria-hidden="true" tabindex="-1"></a>> A block quote.</span> +<span id="cb158-13"><a href="#cb158-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb158-14"><a href="#cb158-14" aria-hidden="true" tabindex="-1"></a>> Another block quote.</span> +<span id="cb158-15"><a href="#cb158-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb158-16"><a href="#cb158-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb158-17"><a href="#cb158-17" aria-hidden="true" tabindex="-1"></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="cb160"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb160-1"><a href="#cb160-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb159"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb159-1"><a href="#cb159-1" aria-hidden="true" tabindex="-1"></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> @@ -2630,28 +2716,28 @@ contain the following text:</p> 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="cb161"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb161-1"><a href="#cb161-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb161-2"><a href="#cb161-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb161-3"><a href="#cb161-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb161-4"><a href="#cb161-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[breakableBlockquotes = no]</span> -<span id="cb161-5"><a href="#cb161-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb161-6"><a href="#cb161-6" aria-hidden="true" tabindex="-1"></a>> A single</span> -<span id="cb161-7"><a href="#cb161-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb161-8"><a href="#cb161-8" aria-hidden="true" tabindex="-1"></a>> block quote.</span> -<span id="cb161-9"><a href="#cb161-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb161-10"><a href="#cb161-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb161-11"><a href="#cb161-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[breakableBlockquotes = yes]</span> -<span id="cb161-12"><a href="#cb161-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb161-13"><a href="#cb161-13" aria-hidden="true" tabindex="-1"></a>> A block quote.</span> -<span id="cb161-14"><a href="#cb161-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb161-15"><a href="#cb161-15" aria-hidden="true" tabindex="-1"></a>> Another block quote.</span> -<span id="cb161-16"><a href="#cb161-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb161-17"><a href="#cb161-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb161-18"><a href="#cb161-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb160"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb160-1"><a href="#cb160-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb160-2"><a href="#cb160-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb160-3"><a href="#cb160-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb160-4"><a href="#cb160-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[breakableBlockquotes = no]</span> +<span id="cb160-5"><a href="#cb160-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb160-6"><a href="#cb160-6" aria-hidden="true" tabindex="-1"></a>> A single</span> +<span id="cb160-7"><a href="#cb160-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb160-8"><a href="#cb160-8" aria-hidden="true" tabindex="-1"></a>> block quote.</span> +<span id="cb160-9"><a href="#cb160-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb160-10"><a href="#cb160-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb160-11"><a href="#cb160-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[breakableBlockquotes = yes]</span> +<span id="cb160-12"><a href="#cb160-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb160-13"><a href="#cb160-13" aria-hidden="true" tabindex="-1"></a>> A block quote.</span> +<span id="cb160-14"><a href="#cb160-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb160-15"><a href="#cb160-15" aria-hidden="true" tabindex="-1"></a>> Another block quote.</span> +<span id="cb160-16"><a href="#cb160-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb160-17"><a href="#cb160-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb160-18"><a href="#cb160-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb162"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb162-1"><a href="#cb162-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb161"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb161-1"><a href="#cb161-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -2665,8 +2751,8 @@ contain the following text:</p> <p>Another block quote.</p> </blockquote> </blockquote> -<h4 data-number="2.2.1.15" id="option-citationnbsps"><span -class="header-section-number">2.2.1.15</span> Option +<h4 data-number="2.2.1.17" id="option-citationnbsps"><span +class="header-section-number">2.2.1.17</span> Option <code>citationNbsps</code></h4> <dl> <dt><code>citationNbsps</code> (default value: <code>true</code>)</dt> @@ -2691,37 +2777,37 @@ syntax extension.</p> 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="cb163"><pre -class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb163-1"><a href="#cb163-1" aria-hidden="true" tabindex="-1"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span> -<span id="cb163-2"><a href="#cb163-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">author</span> = "<span class="st">Knuth, Donald Ervin</span>",</span> -<span id="cb163-3"><a href="#cb163-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">title</span> = "<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>",</span> -<span id="cb163-4"><a href="#cb163-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">publisher</span> = "<span class="st">Addison-Wesley</span>",</span> -<span id="cb163-5"><a href="#cb163-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">year</span> = "<span class="st">1984</span>"</span> -<span id="cb163-6"><a href="#cb163-6" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb162"><pre +class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb162-1"><a href="#cb162-1" aria-hidden="true" tabindex="-1"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span> +<span id="cb162-2"><a href="#cb162-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">author</span> = "<span class="st">Knuth, Donald Ervin</span>",</span> +<span id="cb162-3"><a href="#cb162-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">title</span> = "<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>",</span> +<span id="cb162-4"><a href="#cb162-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">publisher</span> = "<span class="st">Addison-Wesley</span>",</span> +<span id="cb162-5"><a href="#cb162-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">year</span> = "<span class="st">1984</span>"</span> +<span id="cb162-6"><a href="#cb162-6" aria-hidden="true" tabindex="-1"></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="cb164"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb164-1"><a href="#cb164-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb164-2"><a href="#cb164-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> -<span id="cb164-3"><a href="#cb164-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb164-4"><a href="#cb164-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb164-5"><a href="#cb164-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb164-6"><a href="#cb164-6" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span> -<span id="cb164-7"><a href="#cb164-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb164-8"><a href="#cb164-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb164-9"><a href="#cb164-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[citationNbsps = false]</span> -<span id="cb164-10"><a href="#cb164-10" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span> -<span id="cb164-11"><a href="#cb164-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb164-12"><a href="#cb164-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb164-13"><a href="#cb164-13" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliographystyle</span>{<span class="ex">plain</span>}</span> -<span id="cb164-14"><a href="#cb164-14" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliography</span>{<span class="ex">document.bib</span>}</span> -<span id="cb164-15"><a href="#cb164-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb163"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb163-1"><a href="#cb163-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb163-2"><a href="#cb163-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> +<span id="cb163-3"><a href="#cb163-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb163-4"><a href="#cb163-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb163-5"><a href="#cb163-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb163-6"><a href="#cb163-6" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span> +<span id="cb163-7"><a href="#cb163-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb163-8"><a href="#cb163-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb163-9"><a href="#cb163-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[citationNbsps = false]</span> +<span id="cb163-10"><a href="#cb163-10" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span> +<span id="cb163-11"><a href="#cb163-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb163-12"><a href="#cb163-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb163-13"><a href="#cb163-13" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliographystyle</span>{<span class="ex">plain</span>}</span> +<span id="cb163-14"><a href="#cb163-14" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliography</span>{<span class="ex">document.bib</span>}</span> +<span id="cb163-15"><a href="#cb163-15" aria-hidden="true" tabindex="-1"></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="cb165"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb165-1"><a href="#cb165-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb165-2"><a href="#cb165-2" aria-hidden="true" tabindex="-1"></a><span class="ex">bibtex</span> document.aux</span> -<span id="cb165-3"><a href="#cb165-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb165-4"><a href="#cb165-4" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb164"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb164-1"><a href="#cb164-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb164-2"><a href="#cb164-2" aria-hidden="true" tabindex="-1"></a><span class="ex">bibtex</span> document.aux</span> +<span id="cb164-3"><a href="#cb164-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb164-4"><a href="#cb164-4" aria-hidden="true" tabindex="-1"></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> @@ -2729,13 +2815,11 @@ non-breaking space:</p> <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><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 +<p>[1] Donald¡Ervin Knuth. <em>The TeXbook, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p> </blockquote> -<h4 data-number="2.2.1.16" id="option-citations"><span -class="header-section-number">2.2.1.16</span> Option +<h4 data-number="2.2.1.18" id="option-citations"><span +class="header-section-number">2.2.1.18</span> Option <code>citations</code></h4> <dl> <dt><code>citations</code> (default value: <code>false</code>)</dt> @@ -2746,20 +2830,20 @@ class="header-section-number">2.2.1.16</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-citations">citation syntax extension</a>:</p> -<div class="sourceCode" id="cb166"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb166-1"><a href="#cb166-1" aria-hidden="true" tabindex="-1"></a>Here is a simple parenthetical citation <span class="co">[</span><span class="ot">@doe99</span><span class="co">]</span> and here</span> -<span id="cb166-2"><a href="#cb166-2" aria-hidden="true" tabindex="-1"></a>is a string of several [see @doe99, pp. 33-35; also</span> -<span id="cb166-3"><a href="#cb166-3" aria-hidden="true" tabindex="-1"></a>@smith04, chap. 1].</span> -<span id="cb166-4"><a href="#cb166-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb166-5"><a href="#cb166-5" aria-hidden="true" tabindex="-1"></a>A parenthetical citation can have a <span class="co">[</span><span class="ot">prenote @doe99</span><span class="co">]</span> and</span> -<span id="cb166-6"><a href="#cb166-6" aria-hidden="true" tabindex="-1"></a>a <span class="co">[</span><span class="ot">@smith04 postnote</span><span class="co">]</span>. The name of the author can be</span> -<span id="cb166-7"><a href="#cb166-7" aria-hidden="true" tabindex="-1"></a>suppressed by inserting a dash before the name of an</span> -<span id="cb166-8"><a href="#cb166-8" aria-hidden="true" tabindex="-1"></a>author as follows <span class="co">[</span><span class="ot">-@smith04</span><span class="co">]</span>.</span> -<span id="cb166-9"><a href="#cb166-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb166-10"><a href="#cb166-10" aria-hidden="true" tabindex="-1"></a>Here is a simple text citation @doe99 and here is</span> -<span id="cb166-11"><a href="#cb166-11" aria-hidden="true" tabindex="-1"></a>a string of several @doe99 [pp. 33-35; also @smith04,</span> -<span id="cb166-12"><a href="#cb166-12" aria-hidden="true" tabindex="-1"></a>chap. 1]. Here is one with the name of the author</span> -<span id="cb166-13"><a href="#cb166-13" aria-hidden="true" tabindex="-1"></a>suppressed -@doe99.</span></code></pre></div> +<div class="sourceCode" id="cb165"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb165-1"><a href="#cb165-1" aria-hidden="true" tabindex="-1"></a>Here is a simple parenthetical citation <span class="co">[</span><span class="ot">@doe99</span><span class="co">]</span> and here</span> +<span id="cb165-2"><a href="#cb165-2" aria-hidden="true" tabindex="-1"></a>is a string of several [see @doe99, pp. 33-35; also</span> +<span id="cb165-3"><a href="#cb165-3" aria-hidden="true" tabindex="-1"></a>@smith04, chap. 1].</span> +<span id="cb165-4"><a href="#cb165-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb165-5"><a href="#cb165-5" aria-hidden="true" tabindex="-1"></a>A parenthetical citation can have a <span class="co">[</span><span class="ot">prenote @doe99</span><span class="co">]</span> and</span> +<span id="cb165-6"><a href="#cb165-6" aria-hidden="true" tabindex="-1"></a>a <span class="co">[</span><span class="ot">@smith04 postnote</span><span class="co">]</span>. The name of the author can be</span> +<span id="cb165-7"><a href="#cb165-7" aria-hidden="true" tabindex="-1"></a>suppressed by inserting a dash before the name of an</span> +<span id="cb165-8"><a href="#cb165-8" aria-hidden="true" tabindex="-1"></a>author as follows <span class="co">[</span><span class="ot">-@smith04</span><span class="co">]</span>.</span> +<span id="cb165-9"><a href="#cb165-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb165-10"><a href="#cb165-10" aria-hidden="true" tabindex="-1"></a>Here is a simple text citation @doe99 and here is</span> +<span id="cb165-11"><a href="#cb165-11" aria-hidden="true" tabindex="-1"></a>a string of several @doe99 [pp. 33-35; also @smith04,</span> +<span id="cb165-12"><a href="#cb165-12" aria-hidden="true" tabindex="-1"></a>chap. 1]. Here is one with the name of the author</span> +<span id="cb165-13"><a href="#cb165-13" aria-hidden="true" tabindex="-1"></a>suppressed -@doe99.</span></code></pre></div> </dd> </dl> </dd> @@ -2776,47 +2860,45 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb166-1"><a hr 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="cb167"><pre -class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb167-1"><a href="#cb167-1" aria-hidden="true" tabindex="-1"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span> -<span id="cb167-2"><a href="#cb167-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">author</span> = "<span class="st">Knuth, Donald Ervin</span>",</span> -<span id="cb167-3"><a href="#cb167-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">title</span> = "<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>",</span> -<span id="cb167-4"><a href="#cb167-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">publisher</span> = "<span class="st">Addison-Wesley</span>",</span> -<span id="cb167-5"><a href="#cb167-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">year</span> = "<span class="st">1984</span>"</span> -<span id="cb167-6"><a href="#cb167-6" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb166"><pre +class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb166-1"><a href="#cb166-1" aria-hidden="true" tabindex="-1"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span> +<span id="cb166-2"><a href="#cb166-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">author</span> = "<span class="st">Knuth, Donald Ervin</span>",</span> +<span id="cb166-3"><a href="#cb166-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">title</span> = "<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>",</span> +<span id="cb166-4"><a href="#cb166-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">publisher</span> = "<span class="st">Addison-Wesley</span>",</span> +<span id="cb166-5"><a href="#cb166-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">year</span> = "<span class="st">1984</span>"</span> +<span id="cb166-6"><a href="#cb166-6" aria-hidden="true" tabindex="-1"></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="cb168"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb168-1"><a href="#cb168-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb168-2"><a href="#cb168-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[backend=biber]{<span class="ex">biblatex</span>}</span> -<span id="cb168-3"><a href="#cb168-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\addbibresource</span>{document.bib}</span> -<span id="cb168-4"><a href="#cb168-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> -<span id="cb168-5"><a href="#cb168-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb168-6"><a href="#cb168-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb168-7"><a href="#cb168-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb168-8"><a href="#cb168-8" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] was written by @knuth:tex.</span> -<span id="cb168-9"><a href="#cb168-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb168-10"><a href="#cb168-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb168-11"><a href="#cb168-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\printbibliography</span></span> -<span id="cb168-12"><a href="#cb168-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb167"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb167-1"><a href="#cb167-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb167-2"><a href="#cb167-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[backend=biber]{<span class="ex">biblatex</span>}</span> +<span id="cb167-3"><a href="#cb167-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\addbibresource</span>{document.bib}</span> +<span id="cb167-4"><a href="#cb167-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> +<span id="cb167-5"><a href="#cb167-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb167-6"><a href="#cb167-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb167-7"><a href="#cb167-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb167-8"><a href="#cb167-8" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] was written by @knuth:tex.</span> +<span id="cb167-9"><a href="#cb167-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb167-10"><a href="#cb167-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb167-11"><a href="#cb167-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\printbibliography</span></span> +<span id="cb167-12"><a href="#cb167-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> <p>Next, invoke LuaTeX and Biber from the terminal:</p> -<div class="sourceCode" id="cb169"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb169-1"><a href="#cb169-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb169-2"><a href="#cb169-2" aria-hidden="true" tabindex="-1"></a><span class="ex">biber</span> document.bcf</span> -<span id="cb169-3"><a href="#cb169-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb169-4"><a href="#cb169-4" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb168"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb168-1"><a href="#cb168-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb168-2"><a href="#cb168-2" aria-hidden="true" tabindex="-1"></a><span class="ex">biber</span> document.bcf</span> +<span id="cb168-3"><a href="#cb168-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb168-4"><a href="#cb168-4" aria-hidden="true" tabindex="-1"></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 <a -href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">1</a>.</p> +<p>The TeXbook [1, p.¡123 and 130] was written by Knuth [1].</p> <h3 id="references-1">References</h3> -<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> +<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> </blockquote> -<h4 data-number="2.2.1.17" id="option-codespans"><span -class="header-section-number">2.2.1.17</span> Option +<h4 data-number="2.2.1.19" id="option-codespans"><span +class="header-section-number">2.2.1.19</span> Option <code>codeSpans</code></h4> <dl> <dt><code>codeSpans</code> (default value: <code>true</code>)</dt> @@ -2825,9 +2907,9 @@ class="header-section-number">2.2.1.17</span> Option <dt>true</dt> <dd> <p>Enable the code span syntax:</p> -<div class="sourceCode" id="cb170"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb170-1"><a href="#cb170-1" aria-hidden="true" tabindex="-1"></a>Use the <span class="in">`printf()`</span> function.</span> -<span id="cb170-2"><a href="#cb170-2" aria-hidden="true" tabindex="-1"></a>`<span class="in">`There is a literal backtick (`</span>) here.``</span></code></pre></div> +<div class="sourceCode" id="cb169"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb169-1"><a href="#cb169-1" aria-hidden="true" tabindex="-1"></a>Use the <span class="in">`printf()`</span> function.</span> +<span id="cb169-2"><a href="#cb169-2" aria-hidden="true" tabindex="-1"></a>`<span class="in">`There is a literal backtick (`</span>) here.``</span></code></pre></div> </dd> </dl> </dd> @@ -2845,32 +2927,32 @@ quotation mark ligatures in texts that do not contain code spans:</p> <h5 class="unnumbered" id="lua-module-example-8">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="cb172"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb172-1"><a href="#cb172-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb172-2"><a href="#cb172-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb172-3"><a href="#cb172-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb172-4"><a href="#cb172-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb172-5"><a href="#cb172-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb172-6"><a href="#cb172-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb172-7"><a href="#cb172-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb172-8"><a href="#cb172-8" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new()</span> -<span id="cb172-9"><a href="#cb172-9" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb172-10"><a href="#cb172-10" aria-hidden="true" tabindex="-1"></a> "``This is a code span.'' " ..</span> -<span id="cb172-11"><a href="#cb172-11" aria-hidden="true" tabindex="-1"></a> "``This is no longer a code span.''"</span> -<span id="cb172-12"><a href="#cb172-12" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb172-13"><a href="#cb172-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb172-14"><a href="#cb172-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb172-15"><a href="#cb172-15" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb172-16"><a href="#cb172-16" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({codeSpans = false})</span> -<span id="cb172-17"><a href="#cb172-17" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb172-18"><a href="#cb172-18" aria-hidden="true" tabindex="-1"></a> "``This is a quote.'' " ..</span> -<span id="cb172-19"><a href="#cb172-19" aria-hidden="true" tabindex="-1"></a> "``This is another quote.''"</span> -<span id="cb172-20"><a href="#cb172-20" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb172-21"><a href="#cb172-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb172-22"><a href="#cb172-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb171"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb171-1"><a href="#cb171-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb171-2"><a href="#cb171-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb171-3"><a href="#cb171-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb171-4"><a href="#cb171-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb171-5"><a href="#cb171-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb171-6"><a href="#cb171-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb171-7"><a href="#cb171-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb171-8"><a href="#cb171-8" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new()</span> +<span id="cb171-9"><a href="#cb171-9" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb171-10"><a href="#cb171-10" aria-hidden="true" tabindex="-1"></a> "``This is a code span.'' " ..</span> +<span id="cb171-11"><a href="#cb171-11" aria-hidden="true" tabindex="-1"></a> "``This is no longer a code span.''"</span> +<span id="cb171-12"><a href="#cb171-12" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb171-13"><a href="#cb171-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb171-14"><a href="#cb171-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb171-15"><a href="#cb171-15" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb171-16"><a href="#cb171-16" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({codeSpans = false})</span> +<span id="cb171-17"><a href="#cb171-17" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb171-18"><a href="#cb171-18" aria-hidden="true" tabindex="-1"></a> "``This is a quote.'' " ..</span> +<span id="cb171-19"><a href="#cb171-19" aria-hidden="true" tabindex="-1"></a> "``This is another quote.''"</span> +<span id="cb171-20"><a href="#cb171-20" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb171-21"><a href="#cb171-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb171-22"><a href="#cb171-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb173"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb173-1"><a href="#cb173-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb172"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb172-1"><a href="#cb172-1" aria-hidden="true" tabindex="-1"></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> @@ -2881,26 +2963,26 @@ span.ââ</p> <h5 class="unnumbered" id="lua-cli-example-8">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="cb174"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb174-1"><a href="#cb174-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb174-2"><a href="#cb174-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb174-3"><a href="#cb174-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb174-4"><a href="#cb174-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb174-5"><a href="#cb174-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb174-6"><a href="#cb174-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb174-7"><a href="#cb174-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb174-8"><a href="#cb174-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb174-9"><a href="#cb174-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb174-10"><a href="#cb174-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb173"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb173-1"><a href="#cb173-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb173-2"><a href="#cb173-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb173-3"><a href="#cb173-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb173-4"><a href="#cb173-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb173-5"><a href="#cb173-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb173-6"><a href="#cb173-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb173-7"><a href="#cb173-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb173-8"><a href="#cb173-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb173-9"><a href="#cb173-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb173-10"><a href="#cb173-10" aria-hidden="true" tabindex="-1"></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="cb175"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb175-1"><a href="#cb175-1" aria-hidden="true" tabindex="-1"></a>``Is this a code span?'' ``Or a quote?''</span></code></pre></div> +<div class="sourceCode" id="cb174"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb174-1"><a href="#cb174-1" aria-hidden="true" tabindex="-1"></a>``Is this a code span?'' ``Or a quote?''</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb176"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb176-1"><a href="#cb176-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠codeSpans=false <span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb176-2"><a href="#cb176-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb176-3"><a href="#cb176-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb175"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb175-1"><a href="#cb175-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠codeSpans=false <span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb175-2"><a href="#cb175-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb175-3"><a href="#cb175-3" aria-hidden="true" tabindex="-1"></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 @@ -2920,24 +3002,24 @@ contain the following text:</p> 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="cb177"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb177-1"><a href="#cb177-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb177-2"><a href="#cb177-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb177-3"><a href="#cb177-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb177-4"><a href="#cb177-4" aria-hidden="true" tabindex="-1"></a>``This is a code span.''</span> -<span id="cb177-5"><a href="#cb177-5" aria-hidden="true" tabindex="-1"></a>``This is no longer a code span.''</span> -<span id="cb177-6"><a href="#cb177-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb177-7"><a href="#cb177-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb177-8"><a href="#cb177-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionCodeSpans</span>{false}</span> -<span id="cb177-9"><a href="#cb177-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb177-10"><a href="#cb177-10" aria-hidden="true" tabindex="-1"></a>``This is a quote.''</span> -<span id="cb177-11"><a href="#cb177-11" aria-hidden="true" tabindex="-1"></a>``This is another quote.''</span> -<span id="cb177-12"><a href="#cb177-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb177-13"><a href="#cb177-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb177-14"><a href="#cb177-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb176"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb176-1"><a href="#cb176-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb176-2"><a href="#cb176-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb176-3"><a href="#cb176-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb176-4"><a href="#cb176-4" aria-hidden="true" tabindex="-1"></a>``This is a code span.''</span> +<span id="cb176-5"><a href="#cb176-5" aria-hidden="true" tabindex="-1"></a>``This is no longer a code span.''</span> +<span id="cb176-6"><a href="#cb176-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb176-7"><a href="#cb176-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb176-8"><a href="#cb176-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionCodeSpans</span>{false}</span> +<span id="cb176-9"><a href="#cb176-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb176-10"><a href="#cb176-10" aria-hidden="true" tabindex="-1"></a>``This is a quote.''</span> +<span id="cb176-11"><a href="#cb176-11" aria-hidden="true" tabindex="-1"></a>``This is another quote.''</span> +<span id="cb176-12"><a href="#cb176-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb176-13"><a href="#cb176-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb176-14"><a href="#cb176-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb178"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb178-1"><a href="#cb178-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb177"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb177-1"><a href="#cb177-1" aria-hidden="true" tabindex="-1"></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> @@ -2949,25 +3031,25 @@ span.ââ</p> 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="cb179"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb179-1"><a href="#cb179-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb179-2"><a href="#cb179-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb179-3"><a href="#cb179-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb179-4"><a href="#cb179-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb179-5"><a href="#cb179-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb179-6"><a href="#cb179-6" aria-hidden="true" tabindex="-1"></a>``This is a code span.''</span> -<span id="cb179-7"><a href="#cb179-7" aria-hidden="true" tabindex="-1"></a>``This is no longer a code span.''</span> -<span id="cb179-8"><a href="#cb179-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb179-9"><a href="#cb179-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb179-10"><a href="#cb179-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[codeSpans=false]</span> -<span id="cb179-11"><a href="#cb179-11" aria-hidden="true" tabindex="-1"></a>``This is a quote.''</span> -<span id="cb179-12"><a href="#cb179-12" aria-hidden="true" tabindex="-1"></a>``This is another quote.''</span> -<span id="cb179-13"><a href="#cb179-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb179-14"><a href="#cb179-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb179-15"><a href="#cb179-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb178"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb178-1"><a href="#cb178-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb178-2"><a href="#cb178-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb178-3"><a href="#cb178-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb178-4"><a href="#cb178-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb178-5"><a href="#cb178-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb178-6"><a href="#cb178-6" aria-hidden="true" tabindex="-1"></a>``This is a code span.''</span> +<span id="cb178-7"><a href="#cb178-7" aria-hidden="true" tabindex="-1"></a>``This is no longer a code span.''</span> +<span id="cb178-8"><a href="#cb178-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb178-9"><a href="#cb178-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb178-10"><a href="#cb178-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[codeSpans=false]</span> +<span id="cb178-11"><a href="#cb178-11" aria-hidden="true" tabindex="-1"></a>``This is a quote.''</span> +<span id="cb178-12"><a href="#cb178-12" aria-hidden="true" tabindex="-1"></a>``This is another quote.''</span> +<span id="cb178-13"><a href="#cb178-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb178-14"><a href="#cb178-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb178-15"><a href="#cb178-15" aria-hidden="true" tabindex="-1"></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="cb180"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb180-1"><a href="#cb180-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb179"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb179-1"><a href="#cb179-1" aria-hidden="true" tabindex="-1"></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> @@ -2979,25 +3061,25 @@ span.ââ</p> 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="cb181"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb181-1"><a href="#cb181-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb181-2"><a href="#cb181-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb181-3"><a href="#cb181-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb181-4"><a href="#cb181-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb181-5"><a href="#cb181-5" aria-hidden="true" tabindex="-1"></a>``This is a code span.''</span> -<span id="cb181-6"><a href="#cb181-6" aria-hidden="true" tabindex="-1"></a>``This is no longer a code span.''</span> -<span id="cb181-7"><a href="#cb181-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb181-8"><a href="#cb181-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb181-9"><a href="#cb181-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[codeSpans = no]</span> -<span id="cb181-10"><a href="#cb181-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb181-11"><a href="#cb181-11" aria-hidden="true" tabindex="-1"></a>``This is a quote.''</span> -<span id="cb181-12"><a href="#cb181-12" aria-hidden="true" tabindex="-1"></a>``This is another quote.''</span> -<span id="cb181-13"><a href="#cb181-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb181-14"><a href="#cb181-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb181-15"><a href="#cb181-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb180"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb180-1"><a href="#cb180-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb180-2"><a href="#cb180-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb180-3"><a href="#cb180-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb180-4"><a href="#cb180-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb180-5"><a href="#cb180-5" aria-hidden="true" tabindex="-1"></a>``This is a code span.''</span> +<span id="cb180-6"><a href="#cb180-6" aria-hidden="true" tabindex="-1"></a>``This is no longer a code span.''</span> +<span id="cb180-7"><a href="#cb180-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb180-8"><a href="#cb180-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb180-9"><a href="#cb180-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[codeSpans = no]</span> +<span id="cb180-10"><a href="#cb180-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb180-11"><a href="#cb180-11" aria-hidden="true" tabindex="-1"></a>``This is a quote.''</span> +<span id="cb180-12"><a href="#cb180-12" aria-hidden="true" tabindex="-1"></a>``This is another quote.''</span> +<span id="cb180-13"><a href="#cb180-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb180-14"><a href="#cb180-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb180-15"><a href="#cb180-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb182"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb182-1"><a href="#cb182-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb181"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb181-1"><a href="#cb181-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -3005,8 +3087,8 @@ contain the following text:</p> span.ââ</p> <p>âThis is a quote.â âThis is another quote.â</p> </blockquote> -<h4 data-number="2.2.1.18" id="option-contentblocks"><span -class="header-section-number">2.2.1.18</span> Option +<h4 data-number="2.2.1.20" id="option-contentblocks"><span +class="header-section-number">2.2.1.20</span> Option <code>contentBlocks</code></h4> <dl> <dt><code>contentBlocks</code> (default value: <code>false</code>)</dt> @@ -3015,13 +3097,13 @@ class="header-section-number">2.2.1.18</span> Option <dt>true</dt> <dd> <p>Enable the iA Writer content blocks syntax extension:</p> -<div class="sourceCode" id="cb183"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb183-1"><a href="#cb183-1" aria-hidden="true" tabindex="-1"></a>http://example.com/minard.jpg (Napoleon's</span> -<span id="cb183-2"><a href="#cb183-2" aria-hidden="true" tabindex="-1"></a> disastrous Russian campaign of 1812)</span> -<span id="cb183-3"><a href="#cb183-3" aria-hidden="true" tabindex="-1"></a>/Flowchart.png "Engineering Flowchart"</span> -<span id="cb183-4"><a href="#cb183-4" aria-hidden="true" tabindex="-1"></a>/Savings Account.csv 'Recent Transactions'</span> -<span id="cb183-5"><a href="#cb183-5" aria-hidden="true" tabindex="-1"></a>/Example.swift</span> -<span id="cb183-6"><a href="#cb183-6" aria-hidden="true" tabindex="-1"></a>/Lorem Ipsum.txt</span></code></pre></div> +<div class="sourceCode" id="cb182"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb182-1"><a href="#cb182-1" aria-hidden="true" tabindex="-1"></a>http://example.com/minard.jpg (Napoleon's</span> +<span id="cb182-2"><a href="#cb182-2" aria-hidden="true" tabindex="-1"></a> disastrous Russian campaign of 1812)</span> +<span id="cb182-3"><a href="#cb182-3" aria-hidden="true" tabindex="-1"></a>/Flowchart.png "Engineering Flowchart"</span> +<span id="cb182-4"><a href="#cb182-4" aria-hidden="true" tabindex="-1"></a>/Savings Account.csv 'Recent Transactions'</span> +<span id="cb182-5"><a href="#cb182-5" aria-hidden="true" tabindex="-1"></a>/Example.swift</span> +<span id="cb182-6"><a href="#cb182-6" aria-hidden="true" tabindex="-1"></a>/Lorem Ipsum.txt</span></code></pre></div> </dd> </dl> </dd> @@ -3044,34 +3126,34 @@ Marie,Curie,1867 Thomas,Edison,1847</code></pre> <p>Create also a text document named <code>markdown-languages.json</code> with the following content:</p> -<div class="sourceCode" id="cb185"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb185-1"><a href="#cb185-1" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb185-2"><a href="#cb185-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"LaTeX"</span></span> -<span id="cb185-3"><a href="#cb185-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb184"><pre +class="sourceCode js"><code class="sourceCode javascript"><span id="cb184-1"><a href="#cb184-1" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb184-2"><a href="#cb184-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"LaTeX"</span></span> +<span id="cb184-3"><a href="#cb184-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <p>Create also a text document named <code>code.tex</code> with the following content:</p> -<div class="sourceCode" id="cb186"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb186-1"><a href="#cb186-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> +<div class="sourceCode" id="cb185"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb185-1"><a href="#cb185-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> <p>Create also a text document named <code>part.md</code> with the following content:</p> -<div class="sourceCode" id="cb187"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb187-1"><a href="#cb187-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> +<div class="sourceCode" id="cb186"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb186-1"><a href="#cb186-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb188"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb188-1"><a href="#cb188-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb188-2"><a href="#cb188-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> -<span id="cb188-3"><a href="#cb188-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> -<span id="cb188-4"><a href="#cb188-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb188-5"><a href="#cb188-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb188-6"><a href="#cb188-6" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> -<span id="cb188-7"><a href="#cb188-7" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> -<span id="cb188-8"><a href="#cb188-8" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> -<span id="cb188-9"><a href="#cb188-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb188-10"><a href="#cb188-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb187"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb187-1"><a href="#cb187-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb187-2"><a href="#cb187-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> +<span id="cb187-3"><a href="#cb187-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> +<span id="cb187-4"><a href="#cb187-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb187-5"><a href="#cb187-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb187-6"><a href="#cb187-6" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> +<span id="cb187-7"><a href="#cb187-7" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> +<span id="cb187-8"><a href="#cb187-8" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> +<span id="cb187-9"><a href="#cb187-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb187-10"><a href="#cb187-10" aria-hidden="true" tabindex="-1"></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="cb189"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb189-1"><a href="#cb189-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb188"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb188-1"><a href="#cb188-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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> @@ -3102,8 +3184,8 @@ contain the following text:</p> </tbody> </table> <p>Table 1: An example table</p> -<div class="sourceCode" id="cb190"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb190-1"><a href="#cb190-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> +<div class="sourceCode" id="cb189"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb189-1"><a href="#cb189-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\LaTeX</span>.</span></code></pre></div> <p>This is a <em>transcluded markdown document</em>.</p> </blockquote> <h5 class="unnumbered" id="context-example-9">Con<span @@ -3116,35 +3198,35 @@ Marie,Curie,1867 Thomas,Edison,1847</code></pre> <p>Create also a text document named <code>markdown-languages.json</code> with the following content:</p> -<div class="sourceCode" id="cb192"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb192-1"><a href="#cb192-1" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb192-2"><a href="#cb192-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"ConTeXt"</span></span> -<span id="cb192-3"><a href="#cb192-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb191"><pre +class="sourceCode js"><code class="sourceCode javascript"><span id="cb191-1"><a href="#cb191-1" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb191-2"><a href="#cb191-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"tex"</span><span class="op">:</span> <span class="st">"ConTeXt"</span></span> +<span id="cb191-3"><a href="#cb191-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <p>Create also a text document named <code>code.tex</code> with the following content:</p> -<div class="sourceCode" id="cb193"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb193-1"><a href="#cb193-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> +<div class="sourceCode" id="cb192"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb192-1"><a href="#cb192-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> <p>Create also a text document named <code>part.md</code> with the following content:</p> -<div class="sourceCode" id="cb194"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb194-1"><a href="#cb194-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> +<div class="sourceCode" id="cb193"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb193-1"><a href="#cb193-1" aria-hidden="true" tabindex="-1"></a>This is a *transcluded markdown document*.</span></code></pre></div> <p>Create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb195"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb195-1"><a href="#cb195-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb195-2"><a href="#cb195-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[contentBlocks = yes]</span> -<span id="cb195-3"><a href="#cb195-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [ConTeXt]</span> -<span id="cb195-4"><a href="#cb195-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setuptyping</span> [ConTeXt] [option=TEX]</span> -<span id="cb195-5"><a href="#cb195-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb195-6"><a href="#cb195-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb195-7"><a href="#cb195-7" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> -<span id="cb195-8"><a href="#cb195-8" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> -<span id="cb195-9"><a href="#cb195-9" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> -<span id="cb195-10"><a href="#cb195-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb195-11"><a href="#cb195-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb194"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb194-1"><a href="#cb194-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb194-2"><a href="#cb194-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[contentBlocks = yes]</span> +<span id="cb194-3"><a href="#cb194-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [ConTeXt]</span> +<span id="cb194-4"><a href="#cb194-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setuptyping</span> [ConTeXt] [option=TEX]</span> +<span id="cb194-5"><a href="#cb194-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb194-6"><a href="#cb194-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb194-7"><a href="#cb194-7" aria-hidden="true" tabindex="-1"></a>/table.csv (An example table)</span> +<span id="cb194-8"><a href="#cb194-8" aria-hidden="true" tabindex="-1"></a>/code.tex (An example code listing)</span> +<span id="cb194-9"><a href="#cb194-9" aria-hidden="true" tabindex="-1"></a>/part.md (A file transclusion example)</span> +<span id="cb194-10"><a href="#cb194-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb194-11"><a href="#cb194-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb196"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb196-1"><a href="#cb196-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb195"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb195-1"><a href="#cb195-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -3175,12 +3257,12 @@ contain the following text:</p> </tbody> </table> <p>Table 1: An example table</p> -<div class="sourceCode" id="cb197"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb197-1"><a href="#cb197-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> +<div class="sourceCode" id="cb196"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb196-1"><a href="#cb196-1" aria-hidden="true" tabindex="-1"></a>This is an example code listing in <span class="fu">\ConTeXt</span>.</span></code></pre></div> <p>This is a <em>transcluded markdown document</em>.</p> </blockquote> -<h4 data-number="2.2.1.19" id="option-contentlevel"><span -class="header-section-number">2.2.1.19</span> Option +<h4 data-number="2.2.1.21" id="option-contentlevel"><span +class="header-section-number">2.2.1.21</span> Option <code>contentLevel</code></h4> <dl> <dt><code>contentLevel</code> (default value: <code>block</code>)</dt> @@ -3189,9 +3271,9 @@ class="header-section-number">2.2.1.19</span> Option <dt>block</dt> <dd> <p>Treat content as a sequence of blocks.</p> -<div class="sourceCode" id="cb198"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb198-1"><a href="#cb198-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>this is a list</span> -<span id="cb198-2"><a href="#cb198-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>it contains two items</span></code></pre></div> +<div class="sourceCode" id="cb197"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb197-1"><a href="#cb197-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>this is a list</span> +<span id="cb197-2"><a href="#cb197-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>it contains two items</span></code></pre></div> </dd> </dl> </dd> @@ -3200,9 +3282,9 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb198-1"><a hr <dt>inline</dt> <dd> <p>Treat all content as inline content.</p> -<div class="sourceCode" id="cb199"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb199-1"><a href="#cb199-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>this is a text</span> -<span id="cb199-2"><a href="#cb199-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>not a list</span></code></pre></div> +<div class="sourceCode" id="cb198"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb198-1"><a href="#cb198-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>this is a text</span> +<span id="cb198-2"><a href="#cb198-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>not a list</span></code></pre></div> </dd> </dl> </dd> @@ -3211,17 +3293,17 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb199-1"><a hr 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="cb200"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb200-1"><a href="#cb200-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb200-2"><a href="#cb200-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionContentLevel</span>{inline}</span> -<span id="cb200-3"><a href="#cb200-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb200-4"><a href="#cb200-4" aria-hidden="true" tabindex="-1"></a>- this is</span> -<span id="cb200-5"><a href="#cb200-5" aria-hidden="true" tabindex="-1"></a>- a text</span> -<span id="cb200-6"><a href="#cb200-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb200-7"><a href="#cb200-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb199"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb199-1"><a href="#cb199-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb199-2"><a href="#cb199-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionContentLevel</span>{inline}</span> +<span id="cb199-3"><a href="#cb199-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb199-4"><a href="#cb199-4" aria-hidden="true" tabindex="-1"></a>- this is</span> +<span id="cb199-5"><a href="#cb199-5" aria-hidden="true" tabindex="-1"></a>- a text</span> +<span id="cb199-6"><a href="#cb199-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb199-7"><a href="#cb199-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb201"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb201-1"><a href="#cb201-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb200"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb200-1"><a href="#cb200-1" aria-hidden="true" tabindex="-1"></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> @@ -3231,25 +3313,25 @@ contain the following text:</p> 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="cb202"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb202-1"><a href="#cb202-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb202-2"><a href="#cb202-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb202-3"><a href="#cb202-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb202-4"><a href="#cb202-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb202-5"><a href="#cb202-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb202-6"><a href="#cb202-6" aria-hidden="true" tabindex="-1"></a>- this is</span> -<span id="cb202-7"><a href="#cb202-7" aria-hidden="true" tabindex="-1"></a>- a list</span> -<span id="cb202-8"><a href="#cb202-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb202-9"><a href="#cb202-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb202-10"><a href="#cb202-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[contentLevel=inline]</span> -<span id="cb202-11"><a href="#cb202-11" aria-hidden="true" tabindex="-1"></a>- this is</span> -<span id="cb202-12"><a href="#cb202-12" aria-hidden="true" tabindex="-1"></a>- a text</span> -<span id="cb202-13"><a href="#cb202-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb202-14"><a href="#cb202-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb202-15"><a href="#cb202-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb201"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb201-1"><a href="#cb201-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb201-2"><a href="#cb201-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb201-3"><a href="#cb201-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb201-4"><a href="#cb201-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb201-5"><a href="#cb201-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb201-6"><a href="#cb201-6" aria-hidden="true" tabindex="-1"></a>- this is</span> +<span id="cb201-7"><a href="#cb201-7" aria-hidden="true" tabindex="-1"></a>- a list</span> +<span id="cb201-8"><a href="#cb201-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb201-9"><a href="#cb201-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb201-10"><a href="#cb201-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[contentLevel=inline]</span> +<span id="cb201-11"><a href="#cb201-11" aria-hidden="true" tabindex="-1"></a>- this is</span> +<span id="cb201-12"><a href="#cb201-12" aria-hidden="true" tabindex="-1"></a>- a text</span> +<span id="cb201-13"><a href="#cb201-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb201-14"><a href="#cb201-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb201-15"><a href="#cb201-15" aria-hidden="true" tabindex="-1"></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="cb203"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb203-1"><a href="#cb203-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb202"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb202-1"><a href="#cb202-1" aria-hidden="true" tabindex="-1"></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> @@ -3263,25 +3345,25 @@ contain the following text:</p> 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="cb204"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb204-1"><a href="#cb204-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb204-2"><a href="#cb204-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb204-3"><a href="#cb204-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb204-4"><a href="#cb204-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb204-5"><a href="#cb204-5" aria-hidden="true" tabindex="-1"></a>- this is</span> -<span id="cb204-6"><a href="#cb204-6" aria-hidden="true" tabindex="-1"></a>- a list</span> -<span id="cb204-7"><a href="#cb204-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb204-8"><a href="#cb204-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb204-9"><a href="#cb204-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[contentLevel = inline]</span> -<span id="cb204-10"><a href="#cb204-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb204-11"><a href="#cb204-11" aria-hidden="true" tabindex="-1"></a>- this is</span> -<span id="cb204-12"><a href="#cb204-12" aria-hidden="true" tabindex="-1"></a>- a text</span> -<span id="cb204-13"><a href="#cb204-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb204-14"><a href="#cb204-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb204-15"><a href="#cb204-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb203"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb203-1"><a href="#cb203-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb203-2"><a href="#cb203-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb203-3"><a href="#cb203-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb203-4"><a href="#cb203-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb203-5"><a href="#cb203-5" aria-hidden="true" tabindex="-1"></a>- this is</span> +<span id="cb203-6"><a href="#cb203-6" aria-hidden="true" tabindex="-1"></a>- a list</span> +<span id="cb203-7"><a href="#cb203-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb203-8"><a href="#cb203-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb203-9"><a href="#cb203-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[contentLevel = inline]</span> +<span id="cb203-10"><a href="#cb203-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb203-11"><a href="#cb203-11" aria-hidden="true" tabindex="-1"></a>- this is</span> +<span id="cb203-12"><a href="#cb203-12" aria-hidden="true" tabindex="-1"></a>- a text</span> +<span id="cb203-13"><a href="#cb203-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb203-14"><a href="#cb203-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb203-15"><a href="#cb203-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb205"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb205-1"><a href="#cb205-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb204"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb204-1"><a href="#cb204-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -3291,8 +3373,8 @@ contain the following text:</p> </ul> <p>- this is - a text</p> </blockquote> -<h4 data-number="2.2.1.20" id="option-debugextensions"><span -class="header-section-number">2.2.1.20</span> Option +<h4 data-number="2.2.1.22" id="option-debugextensions"><span +class="header-section-number">2.2.1.22</span> Option <code>debugExtensions</code></h4> <dl> <dt><code>debugExtensions</code> (default value: @@ -3327,45 +3409,45 @@ grammar of markdown.</p> 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>strike-through.lua</code> with the following content:</p> -<div class="sourceCode" id="cb206"><pre -class="sourceCode lua"><code class="sourceCode lua"><span id="cb206-1"><a href="#cb206-1" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">strike_through</span> <span class="op">=</span> <span class="op">{</span></span> -<span id="cb206-2"><a href="#cb206-2" aria-hidden="true" tabindex="-1"></a> <span class="va">api_version</span> <span class="op">=</span> <span class="dv">2</span><span class="op">,</span></span> -<span id="cb206-3"><a href="#cb206-3" aria-hidden="true" tabindex="-1"></a> <span class="va">grammar_version</span> <span class="op">=</span> <span class="dv">4</span><span class="op">,</span></span> -<span id="cb206-4"><a href="#cb206-4" aria-hidden="true" tabindex="-1"></a> <span class="va">finalize_grammar</span> <span class="op">=</span> <span class="kw">function</span><span class="op">(</span><span class="va">reader</span><span class="op">)</span></span> -<span id="cb206-5"><a href="#cb206-5" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">nonspacechar</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="dv">1</span><span class="op">)</span> <span class="op">-</span> <span class="va">lpeg</span><span class="op">.</span>S<span class="op">(</span><span class="st">"</span><span class="sc">\t</span><span class="st"> "</span><span class="op">)</span></span> -<span id="cb206-6"><a href="#cb206-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">doubleslashes</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="st">"//"</span><span class="op">)</span></span> -<span id="cb206-7"><a href="#cb206-7" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="kw">function</span> between<span class="op">(</span><span class="va">p</span><span class="op">,</span> <span class="va">starter</span><span class="op">,</span> <span class="va">ender</span><span class="op">)</span></span> -<span id="cb206-8"><a href="#cb206-8" aria-hidden="true" tabindex="-1"></a> <span class="va">ender</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>B<span class="op">(</span><span class="va">nonspacechar</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span></span> -<span id="cb206-9"><a href="#cb206-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="op">(</span><span class="va">starter</span> <span class="op">*</span> <span class="op">#</span><span class="va">nonspacechar</span></span> -<span id="cb206-10"><a href="#cb206-10" aria-hidden="true" tabindex="-1"></a> <span class="op">*</span> <span class="va">lpeg</span><span class="op">.</span>Ct<span class="op">(</span><span class="va">p</span> <span class="op">*</span> <span class="op">(</span><span class="va">p</span> <span class="op">-</span> <span class="va">ender</span><span class="op">)^</span><span class="dv">0</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span><span class="op">)</span></span> -<span id="cb206-11"><a href="#cb206-11" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> -<span id="cb206-12"><a href="#cb206-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb206-13"><a href="#cb206-13" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">read_strike_through</span> <span class="op">=</span> between<span class="op">(</span></span> -<span id="cb206-14"><a href="#cb206-14" aria-hidden="true" tabindex="-1"></a> <span class="va">lpeg</span><span class="op">.</span>V<span class="op">(</span><span class="st">"Inline"</span><span class="op">),</span> <span class="va">doubleslashes</span><span class="op">,</span> <span class="va">doubleslashes</span></span> -<span id="cb206-15"><a href="#cb206-15" aria-hidden="true" tabindex="-1"></a> <span class="op">)</span> <span class="op">/</span> <span class="kw">function</span><span class="op">(</span><span class="va">s</span><span class="op">)</span> <span class="cf">return</span> <span class="op">{</span><span class="st">"</span><span class="sc">\\</span><span class="st">st{"</span><span class="op">,</span> <span class="va">s</span><span class="op">,</span> <span class="st">"}"</span><span class="op">}</span> <span class="kw">end</span></span> -<span id="cb206-16"><a href="#cb206-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb206-17"><a href="#cb206-17" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>insert_pattern<span class="op">(</span><span class="st">"Inline after LinkAndEmph"</span><span class="op">,</span> <span class="va">read_strike_through</span><span class="op">,</span></span> -<span id="cb206-18"><a href="#cb206-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"StrikeThrough"</span><span class="op">)</span></span> -<span id="cb206-19"><a href="#cb206-19" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>add_special_character<span class="op">(</span><span class="st">"/"</span><span class="op">)</span></span> -<span id="cb206-20"><a href="#cb206-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> -<span id="cb206-21"><a href="#cb206-21" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span> -<span id="cb206-22"><a href="#cb206-22" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb206-23"><a href="#cb206-23" aria-hidden="true" tabindex="-1"></a><span class="cf">return</span> <span class="va">strike_through</span></span></code></pre></div> +<div class="sourceCode" id="cb205"><pre +class="sourceCode lua"><code class="sourceCode lua"><span id="cb205-1"><a href="#cb205-1" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">strike_through</span> <span class="op">=</span> <span class="op">{</span></span> +<span id="cb205-2"><a href="#cb205-2" aria-hidden="true" tabindex="-1"></a> <span class="va">api_version</span> <span class="op">=</span> <span class="dv">2</span><span class="op">,</span></span> +<span id="cb205-3"><a href="#cb205-3" aria-hidden="true" tabindex="-1"></a> <span class="va">grammar_version</span> <span class="op">=</span> <span class="dv">4</span><span class="op">,</span></span> +<span id="cb205-4"><a href="#cb205-4" aria-hidden="true" tabindex="-1"></a> <span class="va">finalize_grammar</span> <span class="op">=</span> <span class="kw">function</span><span class="op">(</span><span class="va">reader</span><span class="op">)</span></span> +<span id="cb205-5"><a href="#cb205-5" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">nonspacechar</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="dv">1</span><span class="op">)</span> <span class="op">-</span> <span class="va">lpeg</span><span class="op">.</span>S<span class="op">(</span><span class="st">"</span><span class="sc">\t</span><span class="st"> "</span><span class="op">)</span></span> +<span id="cb205-6"><a href="#cb205-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">doubleslashes</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="st">"//"</span><span class="op">)</span></span> +<span id="cb205-7"><a href="#cb205-7" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="kw">function</span> between<span class="op">(</span><span class="va">p</span><span class="op">,</span> <span class="va">starter</span><span class="op">,</span> <span class="va">ender</span><span class="op">)</span></span> +<span id="cb205-8"><a href="#cb205-8" aria-hidden="true" tabindex="-1"></a> <span class="va">ender</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>B<span class="op">(</span><span class="va">nonspacechar</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span></span> +<span id="cb205-9"><a href="#cb205-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="op">(</span><span class="va">starter</span> <span class="op">*</span> <span class="op">#</span><span class="va">nonspacechar</span></span> +<span id="cb205-10"><a href="#cb205-10" aria-hidden="true" tabindex="-1"></a> <span class="op">*</span> <span class="va">lpeg</span><span class="op">.</span>Ct<span class="op">(</span><span class="va">p</span> <span class="op">*</span> <span class="op">(</span><span class="va">p</span> <span class="op">-</span> <span class="va">ender</span><span class="op">)^</span><span class="dv">0</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span><span class="op">)</span></span> +<span id="cb205-11"><a href="#cb205-11" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> +<span id="cb205-12"><a href="#cb205-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb205-13"><a href="#cb205-13" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">read_strike_through</span> <span class="op">=</span> between<span class="op">(</span></span> +<span id="cb205-14"><a href="#cb205-14" aria-hidden="true" tabindex="-1"></a> <span class="va">lpeg</span><span class="op">.</span>V<span class="op">(</span><span class="st">"Inline"</span><span class="op">),</span> <span class="va">doubleslashes</span><span class="op">,</span> <span class="va">doubleslashes</span></span> +<span id="cb205-15"><a href="#cb205-15" aria-hidden="true" tabindex="-1"></a> <span class="op">)</span> <span class="op">/</span> <span class="kw">function</span><span class="op">(</span><span class="va">s</span><span class="op">)</span> <span class="cf">return</span> <span class="op">{</span><span class="st">"</span><span class="sc">\\</span><span class="st">st{"</span><span class="op">,</span> <span class="va">s</span><span class="op">,</span> <span class="st">"}"</span><span class="op">}</span> <span class="kw">end</span></span> +<span id="cb205-16"><a href="#cb205-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb205-17"><a href="#cb205-17" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>insert_pattern<span class="op">(</span><span class="st">"Inline after LinkAndEmph"</span><span class="op">,</span> <span class="va">read_strike_through</span><span class="op">,</span></span> +<span id="cb205-18"><a href="#cb205-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"StrikeThrough"</span><span class="op">)</span></span> +<span id="cb205-19"><a href="#cb205-19" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>add_special_character<span class="op">(</span><span class="st">"/"</span><span class="op">)</span></span> +<span id="cb205-20"><a href="#cb205-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> +<span id="cb205-21"><a href="#cb205-21" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span> +<span id="cb205-22"><a href="#cb205-22" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb205-23"><a href="#cb205-23" aria-hidden="true" tabindex="-1"></a><span class="cf">return</span> <span class="va">strike_through</span></span></code></pre></div> <p>Using a text editor, create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb207"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb207-1"><a href="#cb207-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb207-2"><a href="#cb207-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soul</span>}</span> -<span id="cb207-3"><a href="#cb207-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[extension = strike-through.lua,</span> -<span id="cb207-4"><a href="#cb207-4" aria-hidden="true" tabindex="-1"></a> debugExtensions]{<span class="ex">markdown</span>}</span> -<span id="cb207-5"><a href="#cb207-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb207-6"><a href="#cb207-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb207-7"><a href="#cb207-7" aria-hidden="true" tabindex="-1"></a>This is //a lunar roving vehicle// strike-through text.</span> -<span id="cb207-8"><a href="#cb207-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb207-9"><a href="#cb207-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb206"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb206-1"><a href="#cb206-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb206-2"><a href="#cb206-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soul</span>}</span> +<span id="cb206-3"><a href="#cb206-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[extension = strike-through.lua,</span> +<span id="cb206-4"><a href="#cb206-4" aria-hidden="true" tabindex="-1"></a> debugExtensions]{<span class="ex">markdown</span>}</span> +<span id="cb206-5"><a href="#cb206-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb206-6"><a href="#cb206-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb206-7"><a href="#cb206-7" aria-hidden="true" tabindex="-1"></a>This is //a lunar roving vehicle// strike-through text.</span> +<span id="cb206-8"><a href="#cb206-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb206-9"><a href="#cb206-9" aria-hidden="true" tabindex="-1"></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="cb208"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb208-1"><a href="#cb208-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb207"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb207-1"><a href="#cb207-1" aria-hidden="true" tabindex="-1"></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> @@ -3374,48 +3456,48 @@ contain the following text:</p> <p>Furthermore, a JSON document named <code>document.debug-extensions.json</code> should also be produced and contain the following text:</p> -<div class="sourceCode" id="cb209"><pre -class="sourceCode json"><code class="sourceCode json"><span id="cb209-1"><a href="#cb209-1" aria-hidden="true" tabindex="-1"></a><span class="fu">{</span></span> -<span id="cb209-2"><a href="#cb209-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">"Block"</span><span class="fu">:</span> <span class="ot">[</span></span> -<span id="cb209-3"><a href="#cb209-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"Blockquote"</span><span class="ot">,</span></span> -<span id="cb209-4"><a href="#cb209-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"Verbatim"</span><span class="ot">,</span></span> -<span id="cb209-5"><a href="#cb209-5" aria-hidden="true" tabindex="-1"></a> <span class="st">"FencedCode (built-in fenced_code syntax extension)"</span><span class="ot">,</span></span> -<span id="cb209-6"><a href="#cb209-6" aria-hidden="true" tabindex="-1"></a> <span class="st">"ThematicBreak"</span><span class="ot">,</span></span> -<span id="cb209-7"><a href="#cb209-7" aria-hidden="true" tabindex="-1"></a> <span class="st">"BulletList"</span><span class="ot">,</span></span> -<span id="cb209-8"><a href="#cb209-8" aria-hidden="true" tabindex="-1"></a> <span class="st">"OrderedList"</span><span class="ot">,</span></span> -<span id="cb209-9"><a href="#cb209-9" aria-hidden="true" tabindex="-1"></a> <span class="st">"DisplayHtml"</span><span class="ot">,</span></span> -<span id="cb209-10"><a href="#cb209-10" aria-hidden="true" tabindex="-1"></a> <span class="st">"Heading"</span></span> -<span id="cb209-11"><a href="#cb209-11" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span><span class="fu">,</span></span> -<span id="cb209-12"><a href="#cb209-12" aria-hidden="true" tabindex="-1"></a> <span class="dt">"BlockOrParagraph"</span><span class="fu">:</span> <span class="ot">[</span></span> -<span id="cb209-13"><a href="#cb209-13" aria-hidden="true" tabindex="-1"></a> <span class="st">"Block"</span><span class="ot">,</span></span> -<span id="cb209-14"><a href="#cb209-14" aria-hidden="true" tabindex="-1"></a> <span class="st">"Paragraph"</span><span class="ot">,</span></span> -<span id="cb209-15"><a href="#cb209-15" aria-hidden="true" tabindex="-1"></a> <span class="st">"Plain"</span></span> -<span id="cb209-16"><a href="#cb209-16" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span><span class="fu">,</span></span> -<span id="cb209-17"><a href="#cb209-17" aria-hidden="true" tabindex="-1"></a> <span class="dt">"EndlineExceptions"</span><span class="fu">:</span> <span class="ot">[</span></span> -<span id="cb209-18"><a href="#cb209-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"EndlineExceptions (built-in fenced_code syntax extension)"</span></span> -<span id="cb209-19"><a href="#cb209-19" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span><span class="fu">,</span></span> -<span id="cb209-20"><a href="#cb209-20" aria-hidden="true" tabindex="-1"></a> <span class="dt">"Inline"</span><span class="fu">:</span> <span class="ot">[</span></span> -<span id="cb209-21"><a href="#cb209-21" aria-hidden="true" tabindex="-1"></a> <span class="st">"Str"</span><span class="ot">,</span></span> -<span id="cb209-22"><a href="#cb209-22" aria-hidden="true" tabindex="-1"></a> <span class="st">"Space"</span><span class="ot">,</span></span> -<span id="cb209-23"><a href="#cb209-23" aria-hidden="true" tabindex="-1"></a> <span class="st">"Endline"</span><span class="ot">,</span></span> -<span id="cb209-24"><a href="#cb209-24" aria-hidden="true" tabindex="-1"></a> <span class="st">"EndlineBreak"</span><span class="ot">,</span></span> -<span id="cb209-25"><a href="#cb209-25" aria-hidden="true" tabindex="-1"></a> <span class="st">"LinkAndEmph"</span><span class="ot">,</span></span> -<span id="cb209-26"><a href="#cb209-26" aria-hidden="true" tabindex="-1"></a> <span class="st">"StrikeThrough (user-defined </span><span class="ch">\"</span><span class="st">./strike-through.lua</span><span class="ch">\"</span><span class="st"> syntax extension)"</span><span class="ot">,</span></span> -<span id="cb209-27"><a href="#cb209-27" aria-hidden="true" tabindex="-1"></a> <span class="st">"Code"</span><span class="ot">,</span></span> -<span id="cb209-28"><a href="#cb209-28" aria-hidden="true" tabindex="-1"></a> <span class="st">"AutoLinkUrl"</span><span class="ot">,</span></span> -<span id="cb209-29"><a href="#cb209-29" aria-hidden="true" tabindex="-1"></a> <span class="st">"AutoLinkEmail"</span><span class="ot">,</span></span> -<span id="cb209-30"><a href="#cb209-30" aria-hidden="true" tabindex="-1"></a> <span class="st">"AutoLinkRelativeReference"</span><span class="ot">,</span></span> -<span id="cb209-31"><a href="#cb209-31" aria-hidden="true" tabindex="-1"></a> <span class="st">"InlineHtml"</span><span class="ot">,</span></span> -<span id="cb209-32"><a href="#cb209-32" aria-hidden="true" tabindex="-1"></a> <span class="st">"HtmlEntity"</span><span class="ot">,</span></span> -<span id="cb209-33"><a href="#cb209-33" aria-hidden="true" tabindex="-1"></a> <span class="st">"EscapedChar"</span><span class="ot">,</span></span> -<span id="cb209-34"><a href="#cb209-34" aria-hidden="true" tabindex="-1"></a> <span class="st">"Smart"</span><span class="ot">,</span></span> -<span id="cb209-35"><a href="#cb209-35" aria-hidden="true" tabindex="-1"></a> <span class="st">"Symbol"</span></span> -<span id="cb209-36"><a href="#cb209-36" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span></span> -<span id="cb209-37"><a href="#cb209-37" aria-hidden="true" tabindex="-1"></a><span class="fu">}</span></span></code></pre></div> +<div class="sourceCode" id="cb208"><pre +class="sourceCode json"><code class="sourceCode json"><span id="cb208-1"><a href="#cb208-1" aria-hidden="true" tabindex="-1"></a><span class="fu">{</span></span> +<span id="cb208-2"><a href="#cb208-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">"Block"</span><span class="fu">:</span> <span class="ot">[</span></span> +<span id="cb208-3"><a href="#cb208-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"Blockquote"</span><span class="ot">,</span></span> +<span id="cb208-4"><a href="#cb208-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"Verbatim"</span><span class="ot">,</span></span> +<span id="cb208-5"><a href="#cb208-5" aria-hidden="true" tabindex="-1"></a> <span class="st">"FencedCode (built-in fenced_code syntax extension)"</span><span class="ot">,</span></span> +<span id="cb208-6"><a href="#cb208-6" aria-hidden="true" tabindex="-1"></a> <span class="st">"ThematicBreak"</span><span class="ot">,</span></span> +<span id="cb208-7"><a href="#cb208-7" aria-hidden="true" tabindex="-1"></a> <span class="st">"BulletList"</span><span class="ot">,</span></span> +<span id="cb208-8"><a href="#cb208-8" aria-hidden="true" tabindex="-1"></a> <span class="st">"OrderedList"</span><span class="ot">,</span></span> +<span id="cb208-9"><a href="#cb208-9" aria-hidden="true" tabindex="-1"></a> <span class="st">"DisplayHtml"</span><span class="ot">,</span></span> +<span id="cb208-10"><a href="#cb208-10" aria-hidden="true" tabindex="-1"></a> <span class="st">"Heading"</span></span> +<span id="cb208-11"><a href="#cb208-11" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span><span class="fu">,</span></span> +<span id="cb208-12"><a href="#cb208-12" aria-hidden="true" tabindex="-1"></a> <span class="dt">"BlockOrParagraph"</span><span class="fu">:</span> <span class="ot">[</span></span> +<span id="cb208-13"><a href="#cb208-13" aria-hidden="true" tabindex="-1"></a> <span class="st">"Block"</span><span class="ot">,</span></span> +<span id="cb208-14"><a href="#cb208-14" aria-hidden="true" tabindex="-1"></a> <span class="st">"Paragraph"</span><span class="ot">,</span></span> +<span id="cb208-15"><a href="#cb208-15" aria-hidden="true" tabindex="-1"></a> <span class="st">"Plain"</span></span> +<span id="cb208-16"><a href="#cb208-16" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span><span class="fu">,</span></span> +<span id="cb208-17"><a href="#cb208-17" aria-hidden="true" tabindex="-1"></a> <span class="dt">"EndlineExceptions"</span><span class="fu">:</span> <span class="ot">[</span></span> +<span id="cb208-18"><a href="#cb208-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"EndlineExceptions (built-in fenced_code syntax extension)"</span></span> +<span id="cb208-19"><a href="#cb208-19" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span><span class="fu">,</span></span> +<span id="cb208-20"><a href="#cb208-20" aria-hidden="true" tabindex="-1"></a> <span class="dt">"Inline"</span><span class="fu">:</span> <span class="ot">[</span></span> +<span id="cb208-21"><a href="#cb208-21" aria-hidden="true" tabindex="-1"></a> <span class="st">"Str"</span><span class="ot">,</span></span> +<span id="cb208-22"><a href="#cb208-22" aria-hidden="true" tabindex="-1"></a> <span class="st">"Space"</span><span class="ot">,</span></span> +<span id="cb208-23"><a href="#cb208-23" aria-hidden="true" tabindex="-1"></a> <span class="st">"Endline"</span><span class="ot">,</span></span> +<span id="cb208-24"><a href="#cb208-24" aria-hidden="true" tabindex="-1"></a> <span class="st">"EndlineBreak"</span><span class="ot">,</span></span> +<span id="cb208-25"><a href="#cb208-25" aria-hidden="true" tabindex="-1"></a> <span class="st">"LinkAndEmph"</span><span class="ot">,</span></span> +<span id="cb208-26"><a href="#cb208-26" aria-hidden="true" tabindex="-1"></a> <span class="st">"StrikeThrough (user-defined </span><span class="ch">\"</span><span class="st">./strike-through.lua</span><span class="ch">\"</span><span class="st"> syntax extension)"</span><span class="ot">,</span></span> +<span id="cb208-27"><a href="#cb208-27" aria-hidden="true" tabindex="-1"></a> <span class="st">"Code"</span><span class="ot">,</span></span> +<span id="cb208-28"><a href="#cb208-28" aria-hidden="true" tabindex="-1"></a> <span class="st">"AutoLinkUrl"</span><span class="ot">,</span></span> +<span id="cb208-29"><a href="#cb208-29" aria-hidden="true" tabindex="-1"></a> <span class="st">"AutoLinkEmail"</span><span class="ot">,</span></span> +<span id="cb208-30"><a href="#cb208-30" aria-hidden="true" tabindex="-1"></a> <span class="st">"AutoLinkRelativeReference"</span><span class="ot">,</span></span> +<span id="cb208-31"><a href="#cb208-31" aria-hidden="true" tabindex="-1"></a> <span class="st">"InlineHtml"</span><span class="ot">,</span></span> +<span id="cb208-32"><a href="#cb208-32" aria-hidden="true" tabindex="-1"></a> <span class="st">"HtmlEntity"</span><span class="ot">,</span></span> +<span id="cb208-33"><a href="#cb208-33" aria-hidden="true" tabindex="-1"></a> <span class="st">"EscapedChar"</span><span class="ot">,</span></span> +<span id="cb208-34"><a href="#cb208-34" aria-hidden="true" tabindex="-1"></a> <span class="st">"Smart"</span><span class="ot">,</span></span> +<span id="cb208-35"><a href="#cb208-35" aria-hidden="true" tabindex="-1"></a> <span class="st">"Symbol"</span></span> +<span id="cb208-36"><a href="#cb208-36" aria-hidden="true" tabindex="-1"></a> <span class="ot">]</span></span> +<span id="cb208-37"><a href="#cb208-37" aria-hidden="true" tabindex="-1"></a><span class="fu">}</span></span></code></pre></div> <p>This output shows us that our user-defined syntax extension has been correctly inserted to the grammar of markdown.</p> -<h4 data-number="2.2.1.21" id="option-definitionlists"><span -class="header-section-number">2.2.1.21</span> Option +<h4 data-number="2.2.1.23" id="option-definitionlists"><span +class="header-section-number">2.2.1.23</span> Option <code>definitionLists</code></h4> <dl> <dt><code>definitionLists</code> (default value: @@ -3425,18 +3507,18 @@ class="header-section-number">2.2.1.21</span> Option <dt>true</dt> <dd> <p>Enable the pandoc definition list syntax extension:</p> -<div class="sourceCode" id="cb210"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb210-1"><a href="#cb210-1" aria-hidden="true" tabindex="-1"></a>Term 1</span> -<span id="cb210-2"><a href="#cb210-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb210-3"><a href="#cb210-3" aria-hidden="true" tabindex="-1"></a>: Definition 1</span> -<span id="cb210-4"><a href="#cb210-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb210-5"><a href="#cb210-5" aria-hidden="true" tabindex="-1"></a>Term 2 with *inline markup*</span> -<span id="cb210-6"><a href="#cb210-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb210-7"><a href="#cb210-7" aria-hidden="true" tabindex="-1"></a>: Definition 2</span> -<span id="cb210-8"><a href="#cb210-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb210-9"><a href="#cb210-9" aria-hidden="true" tabindex="-1"></a><span class="in"> { some code, part of Definition 2 }</span></span> -<span id="cb210-10"><a href="#cb210-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb210-11"><a href="#cb210-11" aria-hidden="true" tabindex="-1"></a><span class="in"> Third paragraph of definition 2.</span></span></code></pre></div> +<div class="sourceCode" id="cb209"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb209-1"><a href="#cb209-1" aria-hidden="true" tabindex="-1"></a>Term 1</span> +<span id="cb209-2"><a href="#cb209-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb209-3"><a href="#cb209-3" aria-hidden="true" tabindex="-1"></a>: Definition 1</span> +<span id="cb209-4"><a href="#cb209-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb209-5"><a href="#cb209-5" aria-hidden="true" tabindex="-1"></a>Term 2 with *inline markup*</span> +<span id="cb209-6"><a href="#cb209-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb209-7"><a href="#cb209-7" aria-hidden="true" tabindex="-1"></a>: Definition 2</span> +<span id="cb209-8"><a href="#cb209-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb209-9"><a href="#cb209-9" aria-hidden="true" tabindex="-1"></a><span class="in"> { some code, part of Definition 2 }</span></span> +<span id="cb209-10"><a href="#cb209-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb209-11"><a href="#cb209-11" aria-hidden="true" tabindex="-1"></a><span class="in"> Third paragraph of definition 2.</span></span></code></pre></div> </dd> </dl> </dd> @@ -3453,27 +3535,27 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb210-1"><a hr 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="cb210"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb210-1"><a href="#cb210-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb210-2"><a href="#cb210-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[definitionLists]{<span class="ex">markdown</span>}</span> +<span id="cb210-3"><a href="#cb210-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb210-4"><a href="#cb210-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb210-5"><a href="#cb210-5" aria-hidden="true" tabindex="-1"></a>Term 1</span> +<span id="cb210-6"><a href="#cb210-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb210-7"><a href="#cb210-7" aria-hidden="true" tabindex="-1"></a>: Definition 1</span> +<span id="cb210-8"><a href="#cb210-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb210-9"><a href="#cb210-9" aria-hidden="true" tabindex="-1"></a>Term 2 with *inline markup*</span> +<span id="cb210-10"><a href="#cb210-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb210-11"><a href="#cb210-11" aria-hidden="true" tabindex="-1"></a>: Definition 2</span> +<span id="cb210-12"><a href="#cb210-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb210-13"><a href="#cb210-13" aria-hidden="true" tabindex="-1"></a> { some code, part of Definition 2 }</span> +<span id="cb210-14"><a href="#cb210-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb210-15"><a href="#cb210-15" aria-hidden="true" tabindex="-1"></a> Third paragraph of definition 2.</span> +<span id="cb210-16"><a href="#cb210-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb210-17"><a href="#cb210-17" aria-hidden="true" tabindex="-1"></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="cb211"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb211-1"><a href="#cb211-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb211-2"><a href="#cb211-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[definitionLists]{<span class="ex">markdown</span>}</span> -<span id="cb211-3"><a href="#cb211-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb211-4"><a href="#cb211-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb211-5"><a href="#cb211-5" aria-hidden="true" tabindex="-1"></a>Term 1</span> -<span id="cb211-6"><a href="#cb211-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb211-7"><a href="#cb211-7" aria-hidden="true" tabindex="-1"></a>: Definition 1</span> -<span id="cb211-8"><a href="#cb211-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb211-9"><a href="#cb211-9" aria-hidden="true" tabindex="-1"></a>Term 2 with *inline markup*</span> -<span id="cb211-10"><a href="#cb211-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb211-11"><a href="#cb211-11" aria-hidden="true" tabindex="-1"></a>: Definition 2</span> -<span id="cb211-12"><a href="#cb211-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb211-13"><a href="#cb211-13" aria-hidden="true" tabindex="-1"></a> { some code, part of Definition 2 }</span> -<span id="cb211-14"><a href="#cb211-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb211-15"><a href="#cb211-15" aria-hidden="true" tabindex="-1"></a> Third paragraph of definition 2.</span> -<span id="cb211-16"><a href="#cb211-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb211-17"><a href="#cb211-17" aria-hidden="true" tabindex="-1"></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="cb212"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb212-1"><a href="#cb212-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb211-1"><a href="#cb211-1" aria-hidden="true" tabindex="-1"></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> @@ -3494,27 +3576,27 @@ contain the following text:</p> 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="cb213"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb213-1"><a href="#cb213-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb213-2"><a href="#cb213-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[definitionLists = yes]</span> +<span id="cb213-3"><a href="#cb213-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb213-4"><a href="#cb213-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb213-5"><a href="#cb213-5" aria-hidden="true" tabindex="-1"></a>Term 1</span> +<span id="cb213-6"><a href="#cb213-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb213-7"><a href="#cb213-7" aria-hidden="true" tabindex="-1"></a>: Definition 1</span> +<span id="cb213-8"><a href="#cb213-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb213-9"><a href="#cb213-9" aria-hidden="true" tabindex="-1"></a>Term 2 with *inline markup*</span> +<span id="cb213-10"><a href="#cb213-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb213-11"><a href="#cb213-11" aria-hidden="true" tabindex="-1"></a>: Definition 2</span> +<span id="cb213-12"><a href="#cb213-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb213-13"><a href="#cb213-13" aria-hidden="true" tabindex="-1"></a> { some code, part of Definition 2 }</span> +<span id="cb213-14"><a href="#cb213-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb213-15"><a href="#cb213-15" aria-hidden="true" tabindex="-1"></a> Third paragraph of definition 2.</span> +<span id="cb213-16"><a href="#cb213-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb213-17"><a href="#cb213-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb214"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb214-1"><a href="#cb214-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb214-2"><a href="#cb214-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[definitionLists = yes]</span> -<span id="cb214-3"><a href="#cb214-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb214-4"><a href="#cb214-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb214-5"><a href="#cb214-5" aria-hidden="true" tabindex="-1"></a>Term 1</span> -<span id="cb214-6"><a href="#cb214-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb214-7"><a href="#cb214-7" aria-hidden="true" tabindex="-1"></a>: Definition 1</span> -<span id="cb214-8"><a href="#cb214-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb214-9"><a href="#cb214-9" aria-hidden="true" tabindex="-1"></a>Term 2 with *inline markup*</span> -<span id="cb214-10"><a href="#cb214-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb214-11"><a href="#cb214-11" aria-hidden="true" tabindex="-1"></a>: Definition 2</span> -<span id="cb214-12"><a href="#cb214-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb214-13"><a href="#cb214-13" aria-hidden="true" tabindex="-1"></a> { some code, part of Definition 2 }</span> -<span id="cb214-14"><a href="#cb214-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb214-15"><a href="#cb214-15" aria-hidden="true" tabindex="-1"></a> Third paragraph of definition 2.</span> -<span id="cb214-16"><a href="#cb214-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb214-17"><a href="#cb214-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb215"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb215-1"><a href="#cb215-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb214-1"><a href="#cb214-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -3531,8 +3613,8 @@ contain the following text:</p> </dd> </dl> </blockquote> -<h4 data-number="2.2.1.22" id="option-expectjekylldata"><span -class="header-section-number">2.2.1.22</span> Option +<h4 data-number="2.2.1.24" id="option-expectjekylldata"><span +class="header-section-number">2.2.1.24</span> Option <code>expectJekyllData</code></h4> <dl> <dt><code>expectJekyllData</code> (default value: @@ -3546,26 +3628,26 @@ then a markdown document may begin with <abbr>yaml</abbr> metadata if and only if the metadata begin with the end-of-directives marker (<code>---</code>) and they end with either the end-of-directives or the end-of-document marker (<code>...</code>):</p> -<div class="sourceCode" id="cb217"><pre -class="sourceCode latex"><code class="sourceCode latex"><span id="cb217-1"><a href="#cb217-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb217-2"><a href="#cb217-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> -<span id="cb217-3"><a href="#cb217-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb217-4"><a href="#cb217-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb217-5"><a href="#cb217-5" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb217-6"><a href="#cb217-6" aria-hidden="true" tabindex="-1"></a>- this</span> -<span id="cb217-7"><a href="#cb217-7" aria-hidden="true" tabindex="-1"></a>- is</span> -<span id="cb217-8"><a href="#cb217-8" aria-hidden="true" tabindex="-1"></a>- YAML</span> -<span id="cb217-9"><a href="#cb217-9" aria-hidden="true" tabindex="-1"></a>...</span> -<span id="cb217-10"><a href="#cb217-10" aria-hidden="true" tabindex="-1"></a>- followed</span> -<span id="cb217-11"><a href="#cb217-11" aria-hidden="true" tabindex="-1"></a>- by</span> -<span id="cb217-12"><a href="#cb217-12" aria-hidden="true" tabindex="-1"></a>- Markdown</span> -<span id="cb217-13"><a href="#cb217-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb217-14"><a href="#cb217-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb217-15"><a href="#cb217-15" aria-hidden="true" tabindex="-1"></a>- this</span> -<span id="cb217-16"><a href="#cb217-16" aria-hidden="true" tabindex="-1"></a>- is</span> -<span id="cb217-17"><a href="#cb217-17" aria-hidden="true" tabindex="-1"></a>- Markdown</span> -<span id="cb217-18"><a href="#cb217-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb217-19"><a href="#cb217-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb216"><pre +class="sourceCode latex"><code class="sourceCode latex"><span id="cb216-1"><a href="#cb216-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb216-2"><a href="#cb216-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> +<span id="cb216-3"><a href="#cb216-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb216-4"><a href="#cb216-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb216-5"><a href="#cb216-5" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb216-6"><a href="#cb216-6" aria-hidden="true" tabindex="-1"></a>- this</span> +<span id="cb216-7"><a href="#cb216-7" aria-hidden="true" tabindex="-1"></a>- is</span> +<span id="cb216-8"><a href="#cb216-8" aria-hidden="true" tabindex="-1"></a>- YAML</span> +<span id="cb216-9"><a href="#cb216-9" aria-hidden="true" tabindex="-1"></a>...</span> +<span id="cb216-10"><a href="#cb216-10" aria-hidden="true" tabindex="-1"></a>- followed</span> +<span id="cb216-11"><a href="#cb216-11" aria-hidden="true" tabindex="-1"></a>- by</span> +<span id="cb216-12"><a href="#cb216-12" aria-hidden="true" tabindex="-1"></a>- Markdown</span> +<span id="cb216-13"><a href="#cb216-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb216-14"><a href="#cb216-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb216-15"><a href="#cb216-15" aria-hidden="true" tabindex="-1"></a>- this</span> +<span id="cb216-16"><a href="#cb216-16" aria-hidden="true" tabindex="-1"></a>- is</span> +<span id="cb216-17"><a href="#cb216-17" aria-hidden="true" tabindex="-1"></a>- Markdown</span> +<span id="cb216-18"><a href="#cb216-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb216-19"><a href="#cb216-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> </dd> </dl> </dd> @@ -3576,25 +3658,25 @@ class="sourceCode latex"><code class="sourceCode latex"><span id="cb217-1"><a hr <p>When the <strong><code>jekyllData</code></strong> option is enabled, then a markdown document may begin directly with <abbr>yaml</abbr> metadata and may contain nothing but <abbr>yaml</abbr> metadata.</p> -<div class="sourceCode" id="cb218"><pre -class="sourceCode latex"><code class="sourceCode latex"><span id="cb218-1"><a href="#cb218-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb218-2"><a href="#cb218-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData, expectJekyllData]{<span class="ex">markdown</span>}</span> -<span id="cb218-3"><a href="#cb218-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb218-4"><a href="#cb218-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb218-5"><a href="#cb218-5" aria-hidden="true" tabindex="-1"></a>- this</span> -<span id="cb218-6"><a href="#cb218-6" aria-hidden="true" tabindex="-1"></a>- is</span> -<span id="cb218-7"><a href="#cb218-7" aria-hidden="true" tabindex="-1"></a>- YAML</span> -<span id="cb218-8"><a href="#cb218-8" aria-hidden="true" tabindex="-1"></a>...</span> -<span id="cb218-9"><a href="#cb218-9" aria-hidden="true" tabindex="-1"></a>- followed</span> -<span id="cb218-10"><a href="#cb218-10" aria-hidden="true" tabindex="-1"></a>- by</span> -<span id="cb218-11"><a href="#cb218-11" aria-hidden="true" tabindex="-1"></a>- Markdown</span> -<span id="cb218-12"><a href="#cb218-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb218-13"><a href="#cb218-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb218-14"><a href="#cb218-14" aria-hidden="true" tabindex="-1"></a>- this</span> -<span id="cb218-15"><a href="#cb218-15" aria-hidden="true" tabindex="-1"></a>- is</span> -<span id="cb218-16"><a href="#cb218-16" aria-hidden="true" tabindex="-1"></a>- YAML</span> -<span id="cb218-17"><a href="#cb218-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb218-18"><a href="#cb218-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb217"><pre +class="sourceCode latex"><code class="sourceCode latex"><span id="cb217-1"><a href="#cb217-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb217-2"><a href="#cb217-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData, expectJekyllData]{<span class="ex">markdown</span>}</span> +<span id="cb217-3"><a href="#cb217-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb217-4"><a href="#cb217-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb217-5"><a href="#cb217-5" aria-hidden="true" tabindex="-1"></a>- this</span> +<span id="cb217-6"><a href="#cb217-6" aria-hidden="true" tabindex="-1"></a>- is</span> +<span id="cb217-7"><a href="#cb217-7" aria-hidden="true" tabindex="-1"></a>- YAML</span> +<span id="cb217-8"><a href="#cb217-8" aria-hidden="true" tabindex="-1"></a>...</span> +<span id="cb217-9"><a href="#cb217-9" aria-hidden="true" tabindex="-1"></a>- followed</span> +<span id="cb217-10"><a href="#cb217-10" aria-hidden="true" tabindex="-1"></a>- by</span> +<span id="cb217-11"><a href="#cb217-11" aria-hidden="true" tabindex="-1"></a>- Markdown</span> +<span id="cb217-12"><a href="#cb217-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb217-13"><a href="#cb217-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb217-14"><a href="#cb217-14" aria-hidden="true" tabindex="-1"></a>- this</span> +<span id="cb217-15"><a href="#cb217-15" aria-hidden="true" tabindex="-1"></a>- is</span> +<span id="cb217-16"><a href="#cb217-16" aria-hidden="true" tabindex="-1"></a>- YAML</span> +<span id="cb217-17"><a href="#cb217-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb217-18"><a href="#cb217-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> </dd> </dl> </dd> @@ -3603,36 +3685,36 @@ class="sourceCode latex"><code class="sourceCode latex"><span id="cb218-1"><a hr 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>jane-doe.yml</code> with the following content:</p> -<div class="sourceCode" id="cb219"><pre -class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb219-1"><a href="#cb219-1" aria-hidden="true" tabindex="-1"></a><span class="fu">name</span><span class="kw">:</span><span class="at"> Jane Doe</span></span> -<span id="cb219-2"><a href="#cb219-2" aria-hidden="true" tabindex="-1"></a><span class="fu">age</span><span class="kw">:</span><span class="at"> </span><span class="dv">99</span></span></code></pre></div> +<div class="sourceCode" id="cb218"><pre +class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb218-1"><a href="#cb218-1" aria-hidden="true" tabindex="-1"></a><span class="fu">name</span><span class="kw">:</span><span class="at"> Jane Doe</span></span> +<span id="cb218-2"><a href="#cb218-2" aria-hidden="true" tabindex="-1"></a><span class="fu">age</span><span class="kw">:</span><span class="at"> </span><span class="dv">99</span></span></code></pre></div> <p>Using a text editor, create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb220"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb220-1"><a href="#cb220-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb220-2"><a href="#cb220-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> -<span id="cb220-3"><a href="#cb220-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb220-4"><a href="#cb220-4" aria-hidden="true" tabindex="-1"></a> jekyllDataRenderers = {</span> -<span id="cb220-5"><a href="#cb220-5" aria-hidden="true" tabindex="-1"></a> name = {<span class="fu">\gdef\name</span>{#1}},</span> -<span id="cb220-6"><a href="#cb220-6" aria-hidden="true" tabindex="-1"></a> code = {<span class="fu">\gdef\age</span>{#1}},</span> -<span id="cb220-7"><a href="#cb220-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb220-8"><a href="#cb220-8" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb220-9"><a href="#cb220-9" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> -<span id="cb220-10"><a href="#cb220-10" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb220-11"><a href="#cb220-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb220-12"><a href="#cb220-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb220-13"><a href="#cb220-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[expectJekyllData]{jane-doe.yml}</span> -<span id="cb220-14"><a href="#cb220-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb219"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb219-1"><a href="#cb219-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb219-2"><a href="#cb219-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> +<span id="cb219-3"><a href="#cb219-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb219-4"><a href="#cb219-4" aria-hidden="true" tabindex="-1"></a> jekyllDataRenderers = {</span> +<span id="cb219-5"><a href="#cb219-5" aria-hidden="true" tabindex="-1"></a> name = {<span class="fu">\gdef\name</span>{#1}},</span> +<span id="cb219-6"><a href="#cb219-6" aria-hidden="true" tabindex="-1"></a> code = {<span class="fu">\gdef\age</span>{#1}},</span> +<span id="cb219-7"><a href="#cb219-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb219-8"><a href="#cb219-8" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb219-9"><a href="#cb219-9" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> +<span id="cb219-10"><a href="#cb219-10" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb219-11"><a href="#cb219-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb219-12"><a href="#cb219-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb219-13"><a href="#cb219-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[expectJekyllData]{jane-doe.yml}</span> +<span id="cb219-14"><a href="#cb219-14" aria-hidden="true" tabindex="-1"></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="cb221"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb221-1"><a href="#cb221-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb220"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb220-1"><a href="#cb220-1" aria-hidden="true" tabindex="-1"></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> -<h4 data-number="2.2.1.23" id="option-extensions"><span -class="header-section-number">2.2.1.23</span> Option +<h4 data-number="2.2.1.25" id="option-extensions"><span +class="header-section-number">2.2.1.25</span> Option <code>extensions</code></h4> <dl> <dt><code>extensions</code> (default value: <code>{}</code>)</dt> @@ -3648,51 +3730,51 @@ class="tex">T<sub>e</sub>X</span> directory structure.</p> 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>strike-through.lua</code> with the following content:</p> -<div class="sourceCode" id="cb222"><pre -class="sourceCode lua"><code class="sourceCode lua"><span id="cb222-1"><a href="#cb222-1" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">strike_through</span> <span class="op">=</span> <span class="op">{</span></span> -<span id="cb222-2"><a href="#cb222-2" aria-hidden="true" tabindex="-1"></a> <span class="va">api_version</span> <span class="op">=</span> <span class="dv">2</span><span class="op">,</span></span> -<span id="cb222-3"><a href="#cb222-3" aria-hidden="true" tabindex="-1"></a> <span class="va">grammar_version</span> <span class="op">=</span> <span class="dv">4</span><span class="op">,</span></span> -<span id="cb222-4"><a href="#cb222-4" aria-hidden="true" tabindex="-1"></a> <span class="va">finalize_grammar</span> <span class="op">=</span> <span class="kw">function</span><span class="op">(</span><span class="va">reader</span><span class="op">)</span></span> -<span id="cb222-5"><a href="#cb222-5" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">nonspacechar</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="dv">1</span><span class="op">)</span> <span class="op">-</span> <span class="va">lpeg</span><span class="op">.</span>S<span class="op">(</span><span class="st">"</span><span class="sc">\t</span><span class="st"> "</span><span class="op">)</span></span> -<span id="cb222-6"><a href="#cb222-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">doubleslashes</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="st">"//"</span><span class="op">)</span></span> -<span id="cb222-7"><a href="#cb222-7" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="kw">function</span> between<span class="op">(</span><span class="va">p</span><span class="op">,</span> <span class="va">starter</span><span class="op">,</span> <span class="va">ender</span><span class="op">)</span></span> -<span id="cb222-8"><a href="#cb222-8" aria-hidden="true" tabindex="-1"></a> <span class="va">ender</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>B<span class="op">(</span><span class="va">nonspacechar</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span></span> -<span id="cb222-9"><a href="#cb222-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="op">(</span><span class="va">starter</span> <span class="op">*</span> <span class="op">#</span><span class="va">nonspacechar</span></span> -<span id="cb222-10"><a href="#cb222-10" aria-hidden="true" tabindex="-1"></a> <span class="op">*</span> <span class="va">lpeg</span><span class="op">.</span>Ct<span class="op">(</span><span class="va">p</span> <span class="op">*</span> <span class="op">(</span><span class="va">p</span> <span class="op">-</span> <span class="va">ender</span><span class="op">)^</span><span class="dv">0</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span><span class="op">)</span></span> -<span id="cb222-11"><a href="#cb222-11" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> -<span id="cb222-12"><a href="#cb222-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb222-13"><a href="#cb222-13" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">read_strike_through</span> <span class="op">=</span> between<span class="op">(</span></span> -<span id="cb222-14"><a href="#cb222-14" aria-hidden="true" tabindex="-1"></a> <span class="va">lpeg</span><span class="op">.</span>V<span class="op">(</span><span class="st">"Inline"</span><span class="op">),</span> <span class="va">doubleslashes</span><span class="op">,</span> <span class="va">doubleslashes</span></span> -<span id="cb222-15"><a href="#cb222-15" aria-hidden="true" tabindex="-1"></a> <span class="op">)</span> <span class="op">/</span> <span class="kw">function</span><span class="op">(</span><span class="va">s</span><span class="op">)</span> <span class="cf">return</span> <span class="op">{</span><span class="st">"</span><span class="sc">\\</span><span class="st">st{"</span><span class="op">,</span> <span class="va">s</span><span class="op">,</span> <span class="st">"}"</span><span class="op">}</span> <span class="kw">end</span></span> -<span id="cb222-16"><a href="#cb222-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb222-17"><a href="#cb222-17" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>insert_pattern<span class="op">(</span><span class="st">"Inline after LinkAndEmph"</span><span class="op">,</span> <span class="va">read_strike_through</span><span class="op">,</span></span> -<span id="cb222-18"><a href="#cb222-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"StrikeThrough"</span><span class="op">)</span></span> -<span id="cb222-19"><a href="#cb222-19" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>add_special_character<span class="op">(</span><span class="st">"/"</span><span class="op">)</span></span> -<span id="cb222-20"><a href="#cb222-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> -<span id="cb222-21"><a href="#cb222-21" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span> -<span id="cb222-22"><a href="#cb222-22" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb222-23"><a href="#cb222-23" aria-hidden="true" tabindex="-1"></a><span class="cf">return</span> <span class="va">strike_through</span></span></code></pre></div> +<div class="sourceCode" id="cb221"><pre +class="sourceCode lua"><code class="sourceCode lua"><span id="cb221-1"><a href="#cb221-1" aria-hidden="true" tabindex="-1"></a><span class="kw">local</span> <span class="va">strike_through</span> <span class="op">=</span> <span class="op">{</span></span> +<span id="cb221-2"><a href="#cb221-2" aria-hidden="true" tabindex="-1"></a> <span class="va">api_version</span> <span class="op">=</span> <span class="dv">2</span><span class="op">,</span></span> +<span id="cb221-3"><a href="#cb221-3" aria-hidden="true" tabindex="-1"></a> <span class="va">grammar_version</span> <span class="op">=</span> <span class="dv">4</span><span class="op">,</span></span> +<span id="cb221-4"><a href="#cb221-4" aria-hidden="true" tabindex="-1"></a> <span class="va">finalize_grammar</span> <span class="op">=</span> <span class="kw">function</span><span class="op">(</span><span class="va">reader</span><span class="op">)</span></span> +<span id="cb221-5"><a href="#cb221-5" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">nonspacechar</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="dv">1</span><span class="op">)</span> <span class="op">-</span> <span class="va">lpeg</span><span class="op">.</span>S<span class="op">(</span><span class="st">"</span><span class="sc">\t</span><span class="st"> "</span><span class="op">)</span></span> +<span id="cb221-6"><a href="#cb221-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">doubleslashes</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>P<span class="op">(</span><span class="st">"//"</span><span class="op">)</span></span> +<span id="cb221-7"><a href="#cb221-7" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="kw">function</span> between<span class="op">(</span><span class="va">p</span><span class="op">,</span> <span class="va">starter</span><span class="op">,</span> <span class="va">ender</span><span class="op">)</span></span> +<span id="cb221-8"><a href="#cb221-8" aria-hidden="true" tabindex="-1"></a> <span class="va">ender</span> <span class="op">=</span> <span class="va">lpeg</span><span class="op">.</span>B<span class="op">(</span><span class="va">nonspacechar</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span></span> +<span id="cb221-9"><a href="#cb221-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="op">(</span><span class="va">starter</span> <span class="op">*</span> <span class="op">#</span><span class="va">nonspacechar</span></span> +<span id="cb221-10"><a href="#cb221-10" aria-hidden="true" tabindex="-1"></a> <span class="op">*</span> <span class="va">lpeg</span><span class="op">.</span>Ct<span class="op">(</span><span class="va">p</span> <span class="op">*</span> <span class="op">(</span><span class="va">p</span> <span class="op">-</span> <span class="va">ender</span><span class="op">)^</span><span class="dv">0</span><span class="op">)</span> <span class="op">*</span> <span class="va">ender</span><span class="op">)</span></span> +<span id="cb221-11"><a href="#cb221-11" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> +<span id="cb221-12"><a href="#cb221-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb221-13"><a href="#cb221-13" aria-hidden="true" tabindex="-1"></a> <span class="kw">local</span> <span class="va">read_strike_through</span> <span class="op">=</span> between<span class="op">(</span></span> +<span id="cb221-14"><a href="#cb221-14" aria-hidden="true" tabindex="-1"></a> <span class="va">lpeg</span><span class="op">.</span>V<span class="op">(</span><span class="st">"Inline"</span><span class="op">),</span> <span class="va">doubleslashes</span><span class="op">,</span> <span class="va">doubleslashes</span></span> +<span id="cb221-15"><a href="#cb221-15" aria-hidden="true" tabindex="-1"></a> <span class="op">)</span> <span class="op">/</span> <span class="kw">function</span><span class="op">(</span><span class="va">s</span><span class="op">)</span> <span class="cf">return</span> <span class="op">{</span><span class="st">"</span><span class="sc">\\</span><span class="st">st{"</span><span class="op">,</span> <span class="va">s</span><span class="op">,</span> <span class="st">"}"</span><span class="op">}</span> <span class="kw">end</span></span> +<span id="cb221-16"><a href="#cb221-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb221-17"><a href="#cb221-17" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>insert_pattern<span class="op">(</span><span class="st">"Inline after LinkAndEmph"</span><span class="op">,</span> <span class="va">read_strike_through</span><span class="op">,</span></span> +<span id="cb221-18"><a href="#cb221-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"StrikeThrough"</span><span class="op">)</span></span> +<span id="cb221-19"><a href="#cb221-19" aria-hidden="true" tabindex="-1"></a> <span class="va">reader</span><span class="op">.</span>add_special_character<span class="op">(</span><span class="st">"/"</span><span class="op">)</span></span> +<span id="cb221-20"><a href="#cb221-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">end</span></span> +<span id="cb221-21"><a href="#cb221-21" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span> +<span id="cb221-22"><a href="#cb221-22" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb221-23"><a href="#cb221-23" aria-hidden="true" tabindex="-1"></a><span class="cf">return</span> <span class="va">strike_through</span></span></code></pre></div> <p>Using a text editor, create also a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb223"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb223-1"><a href="#cb223-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb223-2"><a href="#cb223-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soul</span>}</span> -<span id="cb223-3"><a href="#cb223-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[extension = strike-through.lua]{<span class="ex">markdown</span>}</span> -<span id="cb223-4"><a href="#cb223-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb223-5"><a href="#cb223-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb223-6"><a href="#cb223-6" aria-hidden="true" tabindex="-1"></a>This is //a lunar roving vehicle// strike-through text.</span> -<span id="cb223-7"><a href="#cb223-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb223-8"><a href="#cb223-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb222"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb222-1"><a href="#cb222-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb222-2"><a href="#cb222-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soul</span>}</span> +<span id="cb222-3"><a href="#cb222-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[extension = strike-through.lua]{<span class="ex">markdown</span>}</span> +<span id="cb222-4"><a href="#cb222-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb222-5"><a href="#cb222-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb222-6"><a href="#cb222-6" aria-hidden="true" tabindex="-1"></a>This is //a lunar roving vehicle// strike-through text.</span> +<span id="cb222-7"><a href="#cb222-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb222-8"><a href="#cb222-8" aria-hidden="true" tabindex="-1"></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="cb224"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb224-1"><a href="#cb224-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb223"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb223-1"><a href="#cb223-1" aria-hidden="true" tabindex="-1"></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 <del>a lunar roving vehicle</del> strike-through text.</p> </blockquote> -<h4 data-number="2.2.1.24" id="option-fancylists"><span -class="header-section-number">2.2.1.24</span> Option +<h4 data-number="2.2.1.26" id="option-fancylists"><span +class="header-section-number">2.2.1.26</span> Option <code>fancyLists</code></h4> <dl> <dt><code>fancyLists</code> (default value: <code>false</code>)</dt> @@ -3703,10 +3785,10 @@ class="header-section-number">2.2.1.24</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#org-fancy-lists">fancy list syntax extension</a>:</p> -<div class="sourceCode" id="cb225"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb225-1"><a href="#cb225-1" aria-hidden="true" tabindex="-1"></a>a) first item</span> -<span id="cb225-2"><a href="#cb225-2" aria-hidden="true" tabindex="-1"></a>b) second item</span> -<span id="cb225-3"><a href="#cb225-3" aria-hidden="true" tabindex="-1"></a>c) third item</span></code></pre></div> +<div class="sourceCode" id="cb224"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb224-1"><a href="#cb224-1" aria-hidden="true" tabindex="-1"></a>a) first item</span> +<span id="cb224-2"><a href="#cb224-2" aria-hidden="true" tabindex="-1"></a>b) second item</span> +<span id="cb224-3"><a href="#cb224-3" aria-hidden="true" tabindex="-1"></a>c) third item</span></code></pre></div> </dd> </dl> </dd> @@ -3723,20 +3805,20 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb225-1"><a hr 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="cb226"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb226-1"><a href="#cb226-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb226-2"><a href="#cb226-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> -<span id="cb226-3"><a href="#cb226-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fancyLists]{<span class="ex">markdown</span>}</span> -<span id="cb226-4"><a href="#cb226-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb226-5"><a href="#cb226-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb226-6"><a href="#cb226-6" aria-hidden="true" tabindex="-1"></a>a) first item</span> -<span id="cb226-7"><a href="#cb226-7" aria-hidden="true" tabindex="-1"></a>b) second item</span> -<span id="cb226-8"><a href="#cb226-8" aria-hidden="true" tabindex="-1"></a>c) third item</span> -<span id="cb226-9"><a href="#cb226-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb226-10"><a href="#cb226-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb225"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb225-1"><a href="#cb225-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb225-2"><a href="#cb225-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> +<span id="cb225-3"><a href="#cb225-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fancyLists]{<span class="ex">markdown</span>}</span> +<span id="cb225-4"><a href="#cb225-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb225-5"><a href="#cb225-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb225-6"><a href="#cb225-6" aria-hidden="true" tabindex="-1"></a>a) first item</span> +<span id="cb225-7"><a href="#cb225-7" aria-hidden="true" tabindex="-1"></a>b) second item</span> +<span id="cb225-8"><a href="#cb225-8" aria-hidden="true" tabindex="-1"></a>c) third item</span> +<span id="cb225-9"><a href="#cb225-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb225-10"><a href="#cb225-10" aria-hidden="true" tabindex="-1"></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="cb227"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb227-1"><a href="#cb227-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb226"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb226-1"><a href="#cb226-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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> @@ -3750,19 +3832,19 @@ contain the following text:</p> 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="cb228"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb228-1"><a href="#cb228-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb228-2"><a href="#cb228-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[fancyLists = yes]</span> -<span id="cb228-3"><a href="#cb228-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb228-4"><a href="#cb228-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb228-5"><a href="#cb228-5" aria-hidden="true" tabindex="-1"></a>a) first item</span> -<span id="cb228-6"><a href="#cb228-6" aria-hidden="true" tabindex="-1"></a>b) second item</span> -<span id="cb228-7"><a href="#cb228-7" aria-hidden="true" tabindex="-1"></a>c) third item</span> -<span id="cb228-8"><a href="#cb228-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb228-9"><a href="#cb228-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb227"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb227-1"><a href="#cb227-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb227-2"><a href="#cb227-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[fancyLists = yes]</span> +<span id="cb227-3"><a href="#cb227-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb227-4"><a href="#cb227-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb227-5"><a href="#cb227-5" aria-hidden="true" tabindex="-1"></a>a) first item</span> +<span id="cb227-6"><a href="#cb227-6" aria-hidden="true" tabindex="-1"></a>b) second item</span> +<span id="cb227-7"><a href="#cb227-7" aria-hidden="true" tabindex="-1"></a>c) third item</span> +<span id="cb227-8"><a href="#cb227-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb227-9"><a href="#cb227-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb229"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb229-1"><a href="#cb229-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb228"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb228-1"><a href="#cb228-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -3772,8 +3854,8 @@ contain the following text:</p> <li>third item</li> </ol> </blockquote> -<h4 data-number="2.2.1.25" id="option-fencedcode"><span -class="header-section-number">2.2.1.25</span> Option +<h4 data-number="2.2.1.27" id="option-fencedcode"><span +class="header-section-number">2.2.1.27</span> Option <code>fencedCode</code></h4> <dl> <dt><code>fencedCode</code> (default value: <code>true</code>)</dt> @@ -3782,23 +3864,23 @@ class="header-section-number">2.2.1.25</span> Option <dt>true</dt> <dd> <p>Enable the commonmark fenced code block extension:</p> -<div class="sourceCode" id="cb230"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb230-1"><a href="#cb230-1" aria-hidden="true" tabindex="-1"></a><span class="in">~~~ js</span></span> -<span id="cb230-2"><a href="#cb230-2" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> -<span id="cb230-3"><a href="#cb230-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> -<span id="cb230-4"><a href="#cb230-4" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb230-5"><a href="#cb230-5" aria-hidden="true" tabindex="-1"></a><span class="in">~~~~~~</span></span> -<span id="cb230-6"><a href="#cb230-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb230-7"><a href="#cb230-7" aria-hidden="true" tabindex="-1"></a> <span class="in">``` html</span></span> -<span id="cb230-8"><a href="#cb230-8" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">pre</span><span class="dt">></span></span> -<span id="cb230-9"><a href="#cb230-9" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">code</span><span class="dt">></span></span> -<span id="cb230-10"><a href="#cb230-10" aria-hidden="true" tabindex="-1"></a> // Some comments</span> -<span id="cb230-11"><a href="#cb230-11" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> -<span id="cb230-12"><a href="#cb230-12" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> -<span id="cb230-13"><a href="#cb230-13" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> -<span id="cb230-14"><a href="#cb230-14" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">code</span><span class="dt">></span></span> -<span id="cb230-15"><a href="#cb230-15" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">pre</span><span class="dt">></span></span> -<span id="cb230-16"><a href="#cb230-16" aria-hidden="true" tabindex="-1"></a> <span class="in">```</span></span></code></pre></div> +<div class="sourceCode" id="cb229"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb229-1"><a href="#cb229-1" aria-hidden="true" tabindex="-1"></a><span class="in">~~~ js</span></span> +<span id="cb229-2"><a href="#cb229-2" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> +<span id="cb229-3"><a href="#cb229-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> +<span id="cb229-4"><a href="#cb229-4" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb229-5"><a href="#cb229-5" aria-hidden="true" tabindex="-1"></a><span class="in">~~~~~~</span></span> +<span id="cb229-6"><a href="#cb229-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb229-7"><a href="#cb229-7" aria-hidden="true" tabindex="-1"></a> <span class="in">``` html</span></span> +<span id="cb229-8"><a href="#cb229-8" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">pre</span><span class="dt">></span></span> +<span id="cb229-9"><a href="#cb229-9" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">code</span><span class="dt">></span></span> +<span id="cb229-10"><a href="#cb229-10" aria-hidden="true" tabindex="-1"></a> // Some comments</span> +<span id="cb229-11"><a href="#cb229-11" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> +<span id="cb229-12"><a href="#cb229-12" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> +<span id="cb229-13"><a href="#cb229-13" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> +<span id="cb229-14"><a href="#cb229-14" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">code</span><span class="dt">></span></span> +<span id="cb229-15"><a href="#cb229-15" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">pre</span><span class="dt">></span></span> +<span id="cb229-16"><a href="#cb229-16" aria-hidden="true" tabindex="-1"></a> <span class="in">```</span></span></code></pre></div> </dd> </dl> </dd> @@ -3815,101 +3897,101 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb230-1"><a hr 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="cb231"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb231-1"><a href="#cb231-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb231-2"><a href="#cb231-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> -<span id="cb231-3"><a href="#cb231-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb231-4"><a href="#cb231-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb231-5"><a href="#cb231-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb231-6"><a href="#cb231-6" aria-hidden="true" tabindex="-1"></a>~~~ js</span> -<span id="cb231-7"><a href="#cb231-7" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> -<span id="cb231-8"><a href="#cb231-8" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> -<span id="cb231-9"><a href="#cb231-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb231-10"><a href="#cb231-10" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> -<span id="cb231-11"><a href="#cb231-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb231-12"><a href="#cb231-12" aria-hidden="true" tabindex="-1"></a> ``` html</span> -<span id="cb231-13"><a href="#cb231-13" aria-hidden="true" tabindex="-1"></a> <pre></span> -<span id="cb231-14"><a href="#cb231-14" aria-hidden="true" tabindex="-1"></a> <code></span> -<span id="cb231-15"><a href="#cb231-15" aria-hidden="true" tabindex="-1"></a> // Some comments</span> -<span id="cb231-16"><a href="#cb231-16" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> -<span id="cb231-17"><a href="#cb231-17" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> -<span id="cb231-18"><a href="#cb231-18" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> -<span id="cb231-19"><a href="#cb231-19" aria-hidden="true" tabindex="-1"></a> </code></span> -<span id="cb231-20"><a href="#cb231-20" aria-hidden="true" tabindex="-1"></a> </pre></span> -<span id="cb231-21"><a href="#cb231-21" aria-hidden="true" tabindex="-1"></a> ```</span> -<span id="cb231-22"><a href="#cb231-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb231-23"><a href="#cb231-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb230"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb230-1"><a href="#cb230-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb230-2"><a href="#cb230-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> +<span id="cb230-3"><a href="#cb230-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb230-4"><a href="#cb230-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb230-5"><a href="#cb230-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb230-6"><a href="#cb230-6" aria-hidden="true" tabindex="-1"></a>~~~ js</span> +<span id="cb230-7"><a href="#cb230-7" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> +<span id="cb230-8"><a href="#cb230-8" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> +<span id="cb230-9"><a href="#cb230-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb230-10"><a href="#cb230-10" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> +<span id="cb230-11"><a href="#cb230-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb230-12"><a href="#cb230-12" aria-hidden="true" tabindex="-1"></a> ``` html</span> +<span id="cb230-13"><a href="#cb230-13" aria-hidden="true" tabindex="-1"></a> <pre></span> +<span id="cb230-14"><a href="#cb230-14" aria-hidden="true" tabindex="-1"></a> <code></span> +<span id="cb230-15"><a href="#cb230-15" aria-hidden="true" tabindex="-1"></a> // Some comments</span> +<span id="cb230-16"><a href="#cb230-16" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> +<span id="cb230-17"><a href="#cb230-17" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> +<span id="cb230-18"><a href="#cb230-18" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> +<span id="cb230-19"><a href="#cb230-19" aria-hidden="true" tabindex="-1"></a> </code></span> +<span id="cb230-20"><a href="#cb230-20" aria-hidden="true" tabindex="-1"></a> </pre></span> +<span id="cb230-21"><a href="#cb230-21" aria-hidden="true" tabindex="-1"></a> ```</span> +<span id="cb230-22"><a href="#cb230-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb230-23"><a href="#cb230-23" aria-hidden="true" tabindex="-1"></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="cb232"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb232-1"><a href="#cb232-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb231"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb231-1"><a href="#cb231-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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> +<div class="sourceCode" id="cb232"><pre +class="sourceCode js"><code class="sourceCode javascript"><span id="cb232-1"><a href="#cb232-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> +<span id="cb232-2"><a href="#cb232-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> +<span id="cb232-3"><a href="#cb232-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <div class="sourceCode" id="cb233"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb233-1"><a href="#cb233-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> -<span id="cb233-2"><a href="#cb233-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> -<span id="cb233-3"><a href="#cb233-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> -<div class="sourceCode" id="cb234"><pre -class="sourceCode html"><code class="sourceCode html"><span id="cb234-1"><a href="#cb234-1" aria-hidden="true" tabindex="-1"></a><span class="dt"><</span><span class="kw">pre</span><span class="dt">></span></span> -<span id="cb234-2"><a href="#cb234-2" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">code</span><span class="dt">></span></span> -<span id="cb234-3"><a href="#cb234-3" aria-hidden="true" tabindex="-1"></a> // Some comments</span> -<span id="cb234-4"><a href="#cb234-4" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> -<span id="cb234-5"><a href="#cb234-5" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> -<span id="cb234-6"><a href="#cb234-6" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> -<span id="cb234-7"><a href="#cb234-7" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">code</span><span class="dt">></span></span> -<span id="cb234-8"><a href="#cb234-8" aria-hidden="true" tabindex="-1"></a><span class="dt"></</span><span class="kw">pre</span><span class="dt">></span></span></code></pre></div> +class="sourceCode html"><code class="sourceCode html"><span id="cb233-1"><a href="#cb233-1" aria-hidden="true" tabindex="-1"></a><span class="dt"><</span><span class="kw">pre</span><span class="dt">></span></span> +<span id="cb233-2"><a href="#cb233-2" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">code</span><span class="dt">></span></span> +<span id="cb233-3"><a href="#cb233-3" aria-hidden="true" tabindex="-1"></a> // Some comments</span> +<span id="cb233-4"><a href="#cb233-4" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> +<span id="cb233-5"><a href="#cb233-5" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> +<span id="cb233-6"><a href="#cb233-6" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> +<span id="cb233-7"><a href="#cb233-7" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">code</span><span class="dt">></span></span> +<span id="cb233-8"><a href="#cb233-8" aria-hidden="true" tabindex="-1"></a><span class="dt"></</span><span class="kw">pre</span><span class="dt">></span></span></code></pre></div> </blockquote> <h5 class="unnumbered" id="context-example-13">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="cb235"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb235-1"><a href="#cb235-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb235-2"><a href="#cb235-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [js]</span> -<span id="cb235-3"><a href="#cb235-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [html]</span> -<span id="cb235-4"><a href="#cb235-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setuptyping</span> [html] [option=XML]</span> -<span id="cb235-5"><a href="#cb235-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb235-6"><a href="#cb235-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb235-7"><a href="#cb235-7" aria-hidden="true" tabindex="-1"></a>~~~ js</span> -<span id="cb235-8"><a href="#cb235-8" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> -<span id="cb235-9"><a href="#cb235-9" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> -<span id="cb235-10"><a href="#cb235-10" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb235-11"><a href="#cb235-11" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> -<span id="cb235-12"><a href="#cb235-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb235-13"><a href="#cb235-13" aria-hidden="true" tabindex="-1"></a> ``` html</span> -<span id="cb235-14"><a href="#cb235-14" aria-hidden="true" tabindex="-1"></a> <pre></span> -<span id="cb235-15"><a href="#cb235-15" aria-hidden="true" tabindex="-1"></a> <code></span> -<span id="cb235-16"><a href="#cb235-16" aria-hidden="true" tabindex="-1"></a> // Some comments</span> -<span id="cb235-17"><a href="#cb235-17" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> -<span id="cb235-18"><a href="#cb235-18" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> -<span id="cb235-19"><a href="#cb235-19" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> -<span id="cb235-20"><a href="#cb235-20" aria-hidden="true" tabindex="-1"></a> </code></span> -<span id="cb235-21"><a href="#cb235-21" aria-hidden="true" tabindex="-1"></a> </pre></span> -<span id="cb235-22"><a href="#cb235-22" aria-hidden="true" tabindex="-1"></a> ```</span> -<span id="cb235-23"><a href="#cb235-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb235-24"><a href="#cb235-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb234"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb234-1"><a href="#cb234-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb234-2"><a href="#cb234-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [js]</span> +<span id="cb234-3"><a href="#cb234-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\definetyping</span> [html]</span> +<span id="cb234-4"><a href="#cb234-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setuptyping</span> [html] [option=XML]</span> +<span id="cb234-5"><a href="#cb234-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb234-6"><a href="#cb234-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb234-7"><a href="#cb234-7" aria-hidden="true" tabindex="-1"></a>~~~ js</span> +<span id="cb234-8"><a href="#cb234-8" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> +<span id="cb234-9"><a href="#cb234-9" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> +<span id="cb234-10"><a href="#cb234-10" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb234-11"><a href="#cb234-11" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> +<span id="cb234-12"><a href="#cb234-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb234-13"><a href="#cb234-13" aria-hidden="true" tabindex="-1"></a> ``` html</span> +<span id="cb234-14"><a href="#cb234-14" aria-hidden="true" tabindex="-1"></a> <pre></span> +<span id="cb234-15"><a href="#cb234-15" aria-hidden="true" tabindex="-1"></a> <code></span> +<span id="cb234-16"><a href="#cb234-16" aria-hidden="true" tabindex="-1"></a> // Some comments</span> +<span id="cb234-17"><a href="#cb234-17" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> +<span id="cb234-18"><a href="#cb234-18" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> +<span id="cb234-19"><a href="#cb234-19" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> +<span id="cb234-20"><a href="#cb234-20" aria-hidden="true" tabindex="-1"></a> </code></span> +<span id="cb234-21"><a href="#cb234-21" aria-hidden="true" tabindex="-1"></a> </pre></span> +<span id="cb234-22"><a href="#cb234-22" aria-hidden="true" tabindex="-1"></a> ```</span> +<span id="cb234-23"><a href="#cb234-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb234-24"><a href="#cb234-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb236"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb236-1"><a href="#cb236-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb235"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb235-1"><a href="#cb235-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> +<div class="sourceCode" id="cb236"><pre +class="sourceCode js"><code class="sourceCode javascript"><span id="cb236-1"><a href="#cb236-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> +<span id="cb236-2"><a href="#cb236-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> +<span id="cb236-3"><a href="#cb236-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <div class="sourceCode" id="cb237"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb237-1"><a href="#cb237-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> -<span id="cb237-2"><a href="#cb237-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> -<span id="cb237-3"><a href="#cb237-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> -<div class="sourceCode" id="cb238"><pre -class="sourceCode html"><code class="sourceCode html"><span id="cb238-1"><a href="#cb238-1" aria-hidden="true" tabindex="-1"></a><span class="dt"><</span><span class="kw">pre</span><span class="dt">></span></span> -<span id="cb238-2"><a href="#cb238-2" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">code</span><span class="dt">></span></span> -<span id="cb238-3"><a href="#cb238-3" aria-hidden="true" tabindex="-1"></a> // Some comments</span> -<span id="cb238-4"><a href="#cb238-4" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> -<span id="cb238-5"><a href="#cb238-5" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> -<span id="cb238-6"><a href="#cb238-6" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> -<span id="cb238-7"><a href="#cb238-7" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">code</span><span class="dt">></span></span> -<span id="cb238-8"><a href="#cb238-8" aria-hidden="true" tabindex="-1"></a><span class="dt"></</span><span class="kw">pre</span><span class="dt">></span></span></code></pre></div> -</blockquote> -<h4 data-number="2.2.1.26" id="option-fencedcodeattributes"><span -class="header-section-number">2.2.1.26</span> Option +class="sourceCode html"><code class="sourceCode html"><span id="cb237-1"><a href="#cb237-1" aria-hidden="true" tabindex="-1"></a><span class="dt"><</span><span class="kw">pre</span><span class="dt">></span></span> +<span id="cb237-2"><a href="#cb237-2" aria-hidden="true" tabindex="-1"></a> <span class="dt"><</span><span class="kw">code</span><span class="dt">></span></span> +<span id="cb237-3"><a href="#cb237-3" aria-hidden="true" tabindex="-1"></a> // Some comments</span> +<span id="cb237-4"><a href="#cb237-4" aria-hidden="true" tabindex="-1"></a> line 1 of code</span> +<span id="cb237-5"><a href="#cb237-5" aria-hidden="true" tabindex="-1"></a> line 2 of code</span> +<span id="cb237-6"><a href="#cb237-6" aria-hidden="true" tabindex="-1"></a> line 3 of code</span> +<span id="cb237-7"><a href="#cb237-7" aria-hidden="true" tabindex="-1"></a> <span class="dt"></</span><span class="kw">code</span><span class="dt">></span></span> +<span id="cb237-8"><a href="#cb237-8" aria-hidden="true" tabindex="-1"></a><span class="dt"></</span><span class="kw">pre</span><span class="dt">></span></span></code></pre></div> +</blockquote> +<h4 data-number="2.2.1.28" id="option-fencedcodeattributes"><span +class="header-section-number">2.2.1.28</span> Option <code>fencedCodeAttributes</code></h4> <dl> <dt><code>fencedCodeAttributes</code> (default value: @@ -3921,12 +4003,12 @@ class="header-section-number">2.2.1.26</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-fenced_code_attributes">fenced code attribute syntax extension</a>:</p> -<div class="sourceCode" id="cb239"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb239-1"><a href="#cb239-1" aria-hidden="true" tabindex="-1"></a><span class="in">~~~~ {#mycode .haskell .numberLines startFrom=100}</span></span> -<span id="cb239-2"><a href="#cb239-2" aria-hidden="true" tabindex="-1"></a><span class="in">qsort [] = []</span></span> -<span id="cb239-3"><a href="#cb239-3" aria-hidden="true" tabindex="-1"></a><span class="in">qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++</span></span> -<span id="cb239-4"><a href="#cb239-4" aria-hidden="true" tabindex="-1"></a><span class="in"> qsort (filter (>= x) xs)</span></span> -<span id="cb239-5"><a href="#cb239-5" aria-hidden="true" tabindex="-1"></a><span class="in">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></code></pre></div> +<div class="sourceCode" id="cb238"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb238-1"><a href="#cb238-1" aria-hidden="true" tabindex="-1"></a><span class="in">~~~~ {#mycode .haskell .numberLines startFrom=100}</span></span> +<span id="cb238-2"><a href="#cb238-2" aria-hidden="true" tabindex="-1"></a><span class="in">qsort [] = []</span></span> +<span id="cb238-3"><a href="#cb238-3" aria-hidden="true" tabindex="-1"></a><span class="in">qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++</span></span> +<span id="cb238-4"><a href="#cb238-4" aria-hidden="true" tabindex="-1"></a><span class="in"> qsort (filter (>= x) xs)</span></span> +<span id="cb238-5"><a href="#cb238-5" aria-hidden="true" tabindex="-1"></a><span class="in">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></code></pre></div> </dd> </dl> </dd> @@ -3943,50 +4025,50 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb239-1"><a hr 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="cb240"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb240-1"><a href="#cb240-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb240-2"><a href="#cb240-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode,</span> -<span id="cb240-3"><a href="#cb240-3" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb240-4"><a href="#cb240-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> -<span id="cb240-5"><a href="#cb240-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb240-6"><a href="#cb240-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb240-7"><a href="#cb240-7" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextBegin = {<span class="co">%</span></span> -<span id="cb240-8"><a href="#cb240-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb240-9"><a href="#cb240-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb240-10"><a href="#cb240-10" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb240-11"><a href="#cb240-11" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {<span class="co">%</span></span> -<span id="cb240-12"><a href="#cb240-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\setminted</span>{{#1} = {#2}}<span class="co">%</span></span> -<span id="cb240-13"><a href="#cb240-13" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb240-14"><a href="#cb240-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb240-15"><a href="#cb240-15" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb240-16"><a href="#cb240-16" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb240-17"><a href="#cb240-17" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextEnd = {<span class="co">%</span></span> -<span id="cb240-18"><a href="#cb240-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> -<span id="cb240-19"><a href="#cb240-19" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb240-20"><a href="#cb240-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb240-21"><a href="#cb240-21" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb240-22"><a href="#cb240-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb240-23"><a href="#cb240-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb240-24"><a href="#cb240-24" aria-hidden="true" tabindex="-1"></a>~~~ js {linenos=true}</span> -<span id="cb240-25"><a href="#cb240-25" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> -<span id="cb240-26"><a href="#cb240-26" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> -<span id="cb240-27"><a href="#cb240-27" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb240-28"><a href="#cb240-28" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> -<span id="cb240-29"><a href="#cb240-29" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb240-30"><a href="#cb240-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb239"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb239-1"><a href="#cb239-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb239-2"><a href="#cb239-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode,</span> +<span id="cb239-3"><a href="#cb239-3" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb239-4"><a href="#cb239-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> +<span id="cb239-5"><a href="#cb239-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb239-6"><a href="#cb239-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb239-7"><a href="#cb239-7" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextBegin = {<span class="co">%</span></span> +<span id="cb239-8"><a href="#cb239-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb239-9"><a href="#cb239-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb239-10"><a href="#cb239-10" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb239-11"><a href="#cb239-11" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {<span class="co">%</span></span> +<span id="cb239-12"><a href="#cb239-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\setminted</span>{{#1} = {#2}}<span class="co">%</span></span> +<span id="cb239-13"><a href="#cb239-13" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb239-14"><a href="#cb239-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb239-15"><a href="#cb239-15" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb239-16"><a href="#cb239-16" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb239-17"><a href="#cb239-17" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextEnd = {<span class="co">%</span></span> +<span id="cb239-18"><a href="#cb239-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> +<span id="cb239-19"><a href="#cb239-19" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb239-20"><a href="#cb239-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb239-21"><a href="#cb239-21" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb239-22"><a href="#cb239-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb239-23"><a href="#cb239-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb239-24"><a href="#cb239-24" aria-hidden="true" tabindex="-1"></a>~~~ js {linenos=true}</span> +<span id="cb239-25"><a href="#cb239-25" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> +<span id="cb239-26"><a href="#cb239-26" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> +<span id="cb239-27"><a href="#cb239-27" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb239-28"><a href="#cb239-28" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> +<span id="cb239-29"><a href="#cb239-29" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb239-30"><a href="#cb239-30" aria-hidden="true" tabindex="-1"></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="cb241"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb241-1"><a href="#cb241-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb240"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb240-1"><a href="#cb240-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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> -<div class="sourceCode" id="cb242"><pre -class="sourceCode js linenos"><code class="sourceCode javascript"><span id="cb242-1"><a href="#cb242-1" aria-hidden="true" tabindex="-1"></a><span class="fl">1.</span> <span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> -<span id="cb242-2"><a href="#cb242-2" aria-hidden="true" tabindex="-1"></a><span class="fl">2.</span> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> -<span id="cb242-3"><a href="#cb242-3" aria-hidden="true" tabindex="-1"></a><span class="fl">3.</span> }</span></code></pre></div> +<div class="sourceCode" id="cb241"><pre +class="sourceCode js linenos"><code class="sourceCode javascript"><span id="cb241-1"><a href="#cb241-1" aria-hidden="true" tabindex="-1"></a><span class="fl">1.</span> <span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> +<span id="cb241-2"><a href="#cb241-2" aria-hidden="true" tabindex="-1"></a><span class="fl">2.</span> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> +<span id="cb241-3"><a href="#cb241-3" aria-hidden="true" tabindex="-1"></a><span class="fl">3.</span> }</span></code></pre></div> </blockquote> -<h4 data-number="2.2.1.27" id="fenced-divs"><span -class="header-section-number">2.2.1.27</span> Option +<h4 data-number="2.2.1.29" id="fenced-divs"><span +class="header-section-number">2.2.1.29</span> Option <code>fencedDivs</code></h4> <dl> <dt><code>fencedDivs</code> (default value: <code>false</code>)</dt> @@ -3997,12 +4079,12 @@ class="header-section-number">2.2.1.27</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-fenced_divs">fenced div syntax extension</a>:</p> -<div class="sourceCode" id="cb243"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb243-1"><a href="#cb243-1" aria-hidden="true" tabindex="-1"></a>::::: {#special .sidebar}</span> -<span id="cb243-2"><a href="#cb243-2" aria-hidden="true" tabindex="-1"></a>Here is a paragraph.</span> -<span id="cb243-3"><a href="#cb243-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb243-4"><a href="#cb243-4" aria-hidden="true" tabindex="-1"></a>And another.</span> -<span id="cb243-5"><a href="#cb243-5" aria-hidden="true" tabindex="-1"></a>:::::</span></code></pre></div> +<div class="sourceCode" id="cb242"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb242-1"><a href="#cb242-1" aria-hidden="true" tabindex="-1"></a>::::: {#special .sidebar}</span> +<span id="cb242-2"><a href="#cb242-2" aria-hidden="true" tabindex="-1"></a>Here is a paragraph.</span> +<span id="cb242-3"><a href="#cb242-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb242-4"><a href="#cb242-4" aria-hidden="true" tabindex="-1"></a>And another.</span> +<span id="cb242-5"><a href="#cb242-5" aria-hidden="true" tabindex="-1"></a>:::::</span></code></pre></div> </dd> </dl> </dd> @@ -4019,30 +4101,30 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb243-1"><a hr 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="cb244"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb244-1"><a href="#cb244-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb244-2"><a href="#cb244-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedDivs]{<span class="ex">markdown</span>}</span> -<span id="cb244-3"><a href="#cb244-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb244-4"><a href="#cb244-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}{slice=special}</span> -<span id="cb244-5"><a href="#cb244-5" aria-hidden="true" tabindex="-1"></a>Here is a regular paragraph.</span> -<span id="cb244-6"><a href="#cb244-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb244-7"><a href="#cb244-7" aria-hidden="true" tabindex="-1"></a>::::: {#special}</span> -<span id="cb244-8"><a href="#cb244-8" aria-hidden="true" tabindex="-1"></a>Here is a special paragraph.</span> -<span id="cb244-9"><a href="#cb244-9" aria-hidden="true" tabindex="-1"></a>:::::</span> -<span id="cb244-10"><a href="#cb244-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb244-11"><a href="#cb244-11" aria-hidden="true" tabindex="-1"></a>And here is another regular paragraph.</span> -<span id="cb244-12"><a href="#cb244-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb244-13"><a href="#cb244-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb243"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb243-1"><a href="#cb243-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb243-2"><a href="#cb243-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedDivs]{<span class="ex">markdown</span>}</span> +<span id="cb243-3"><a href="#cb243-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb243-4"><a href="#cb243-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}{slice=special}</span> +<span id="cb243-5"><a href="#cb243-5" aria-hidden="true" tabindex="-1"></a>Here is a regular paragraph.</span> +<span id="cb243-6"><a href="#cb243-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb243-7"><a href="#cb243-7" aria-hidden="true" tabindex="-1"></a>::::: {#special}</span> +<span id="cb243-8"><a href="#cb243-8" aria-hidden="true" tabindex="-1"></a>Here is a special paragraph.</span> +<span id="cb243-9"><a href="#cb243-9" aria-hidden="true" tabindex="-1"></a>:::::</span> +<span id="cb243-10"><a href="#cb243-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb243-11"><a href="#cb243-11" aria-hidden="true" tabindex="-1"></a>And here is another regular paragraph.</span> +<span id="cb243-12"><a href="#cb243-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb243-13"><a href="#cb243-13" aria-hidden="true" tabindex="-1"></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="cb245"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb245-1"><a href="#cb245-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb244"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb244-1"><a href="#cb244-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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>Here is a special paragraph.</p> </blockquote> -<h4 data-number="2.2.1.28" id="option-finalizecache"><span -class="header-section-number">2.2.1.28</span> Option +<h4 data-number="2.2.1.30" id="option-finalizecache"><span +class="header-section-number">2.2.1.30</span> Option <code>finalizeCache</code></h4> <dl> <dt><code>finalizeCache</code> (default value: <code>false</code>)</dt> @@ -4065,31 +4147,31 @@ not be reflected.</p> 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="cb246"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb246-1"><a href="#cb246-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb246-2"><a href="#cb246-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFinalizeCache</span>{true}</span> -<span id="cb246-3"><a href="#cb246-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb246-4"><a href="#cb246-4" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb246-5"><a href="#cb246-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb246-6"><a href="#cb246-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb245"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb245-1"><a href="#cb245-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb245-2"><a href="#cb245-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFinalizeCache</span>{true}</span> +<span id="cb245-3"><a href="#cb245-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb245-4"><a href="#cb245-4" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb245-5"><a href="#cb245-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb245-6"><a href="#cb245-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb247"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb247-1"><a href="#cb247-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb246"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb246-1"><a href="#cb246-1" aria-hidden="true" tabindex="-1"></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>!â A frozen cache will also be produced as we requested using the <code>finalizeCache</code> option.</p> <p>Next, change the content of <code>document.tex</code> as follows:</p> -<div class="sourceCode" id="cb248"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb248-1"><a href="#cb248-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb248-2"><a href="#cb248-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCache</span>{true}</span> -<span id="cb248-3"><a href="#cb248-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb248-4"><a href="#cb248-4" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> -<span id="cb248-5"><a href="#cb248-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb248-6"><a href="#cb248-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb247"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb247-1"><a href="#cb247-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb247-2"><a href="#cb247-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCache</span>{true}</span> +<span id="cb247-3"><a href="#cb247-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb247-4"><a href="#cb247-4" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> +<span id="cb247-5"><a href="#cb247-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb247-6"><a href="#cb247-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Last, invoke pdfTeX without shell access from the terminal:</p> -<div class="sourceCode" id="cb249"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb249-1"><a href="#cb249-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">-no-shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb248"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb248-1"><a href="#cb248-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">-no-shell-escape</span> document.tex</span></code></pre></div> <p>A new PDF document named <code>document.pdf</code> should be produced and contain the same text âHello <em>world</em>!â Since we used the contents of the frozen cache using the @@ -4101,33 +4183,33 @@ in the content of the markdown document from âHello <em>world</em>!â to 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="cb250"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb250-1"><a href="#cb250-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[finalizecache]{<span class="ex">article</span>}</span> -<span id="cb250-2"><a href="#cb250-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb250-3"><a href="#cb250-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb250-4"><a href="#cb250-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb250-5"><a href="#cb250-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb250-6"><a href="#cb250-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb250-7"><a href="#cb250-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb249"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb249-1"><a href="#cb249-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[finalizecache]{<span class="ex">article</span>}</span> +<span id="cb249-2"><a href="#cb249-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb249-3"><a href="#cb249-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb249-4"><a href="#cb249-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb249-5"><a href="#cb249-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb249-6"><a href="#cb249-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb249-7"><a href="#cb249-7" aria-hidden="true" tabindex="-1"></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="cb251"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb251-1"><a href="#cb251-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb250"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb250-1"><a href="#cb250-1" aria-hidden="true" tabindex="-1"></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>!â A frozen cache will also be produced as we requested using the <code>finalizecache</code> option.</p> <p>Next, change the content of <code>document.tex</code> as follows:</p> -<div class="sourceCode" id="cb252"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb252-1"><a href="#cb252-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[frozencache]{<span class="ex">article</span>}</span> -<span id="cb252-2"><a href="#cb252-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb252-3"><a href="#cb252-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb252-4"><a href="#cb252-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb252-5"><a href="#cb252-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> -<span id="cb252-6"><a href="#cb252-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb252-7"><a href="#cb252-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb251"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb251-1"><a href="#cb251-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>[frozencache]{<span class="ex">article</span>}</span> +<span id="cb251-2"><a href="#cb251-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb251-3"><a href="#cb251-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb251-4"><a href="#cb251-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb251-5"><a href="#cb251-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> +<span id="cb251-6"><a href="#cb251-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb251-7"><a href="#cb251-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> <p>Last, invoke pdfTeX without shell access from the terminal:</p> -<div class="sourceCode" id="cb253"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb253-1"><a href="#cb253-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">-no-shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb252"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb252-1"><a href="#cb252-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdflatex</span> <span class="at">-no-shell-escape</span> document.tex</span></code></pre></div> <p>A new PDF document named <code>document.pdf</code> should be produced and contain the same text âHello <em>world</em>!â Since we used the contents of the frozen cache using the @@ -4139,33 +4221,33 @@ in the content of the markdown document from âHello <em>world</em>!â to 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="cb254"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb254-1"><a href="#cb254-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb254-2"><a href="#cb254-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[finalizeCache = yes]</span> -<span id="cb254-3"><a href="#cb254-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb254-4"><a href="#cb254-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb254-5"><a href="#cb254-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb254-6"><a href="#cb254-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb254-7"><a href="#cb254-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb253"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb253-1"><a href="#cb253-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb253-2"><a href="#cb253-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[finalizeCache = yes]</span> +<span id="cb253-3"><a href="#cb253-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb253-4"><a href="#cb253-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb253-5"><a href="#cb253-5" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb253-6"><a href="#cb253-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb253-7"><a href="#cb253-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb255"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb255-1"><a href="#cb255-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb254"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb254-1"><a href="#cb254-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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>!â A frozen cache will also be produced in the <code>cache.tex</code> output file as we requested using the <code>finalizeCache</code> option.</p> <p>Next, change the content of <code>document.tex</code> as follows:</p> -<div class="sourceCode" id="cb256"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb256-1"><a href="#cb256-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb256-2"><a href="#cb256-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[frozenCache = yes]</span> -<span id="cb256-3"><a href="#cb256-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb256-4"><a href="#cb256-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb256-5"><a href="#cb256-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> -<span id="cb256-6"><a href="#cb256-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb256-7"><a href="#cb256-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb255"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb255-1"><a href="#cb255-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb255-2"><a href="#cb255-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[frozenCache = yes]</span> +<span id="cb255-3"><a href="#cb255-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb255-4"><a href="#cb255-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb255-5"><a href="#cb255-5" aria-hidden="true" tabindex="-1"></a>Hi *world*!</span> +<span id="cb255-6"><a href="#cb255-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb255-7"><a href="#cb255-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Last, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb257"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb257-1"><a href="#cb257-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb256"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb256-1"><a href="#cb256-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> <p>A new PDF document named <code>document.pdf</code> should be produced and contain the same text âHello <em>world</em>!â Since we used the contents of the frozen cache using the @@ -4173,8 +4255,8 @@ contents of the frozen cache using the the document without accessing the shell or invoking Lua, but the change in the content of the markdown document from âHello <em>world</em>!â to âHi <em>world</em>!â was not reflected.</p> -<h4 data-number="2.2.1.29" id="option-frozencachecounter"><span -class="header-section-number">2.2.1.29</span> Option +<h4 data-number="2.2.1.31" id="option-frozencachecounter"><span +class="header-section-number">2.2.1.31</span> Option <code>frozenCacheCounter</code></h4> <dl> <dt><code>frozenCacheCounter</code> (default value: <code>0</code>)</dt> @@ -4193,29 +4275,29 @@ markdown document number â¨<em>number</em>âŠ.</p> <h5 class="unnumbered" id="lua-module-example-9">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="cb258"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb258-1"><a href="#cb258-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb258-2"><a href="#cb258-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb258-3"><a href="#cb258-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb258-4"><a href="#cb258-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb258-5"><a href="#cb258-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb258-6"><a href="#cb258-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb258-7"><a href="#cb258-7" aria-hidden="true" tabindex="-1"></a> local firstConvert = markdown.new({finalizeCache = true, frozenCacheCounter = 0})</span> -<span id="cb258-8"><a href="#cb258-8" aria-hidden="true" tabindex="-1"></a> local firstInput = "Hello"</span> -<span id="cb258-9"><a href="#cb258-9" aria-hidden="true" tabindex="-1"></a> local secondConvert = markdown.new({finalizeCache = true, frozenCacheCounter = 1})</span> -<span id="cb258-10"><a href="#cb258-10" aria-hidden="true" tabindex="-1"></a> local secondInput = "*world*!"</span> -<span id="cb258-11"><a href="#cb258-11" aria-hidden="true" tabindex="-1"></a> tex.sprint(firstConvert(firstInput) .. [[ ]] .. secondConvert(secondInput)) }</span> -<span id="cb258-12"><a href="#cb258-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb258-13"><a href="#cb258-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb257"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb257-1"><a href="#cb257-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb257-2"><a href="#cb257-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb257-3"><a href="#cb257-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb257-4"><a href="#cb257-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb257-5"><a href="#cb257-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb257-6"><a href="#cb257-6" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb257-7"><a href="#cb257-7" aria-hidden="true" tabindex="-1"></a> local firstConvert = markdown.new({finalizeCache = true, frozenCacheCounter = 0})</span> +<span id="cb257-8"><a href="#cb257-8" aria-hidden="true" tabindex="-1"></a> local firstInput = "Hello"</span> +<span id="cb257-9"><a href="#cb257-9" aria-hidden="true" tabindex="-1"></a> local secondConvert = markdown.new({finalizeCache = true, frozenCacheCounter = 1})</span> +<span id="cb257-10"><a href="#cb257-10" aria-hidden="true" tabindex="-1"></a> local secondInput = "*world*!"</span> +<span id="cb257-11"><a href="#cb257-11" aria-hidden="true" tabindex="-1"></a> tex.sprint(firstConvert(firstInput) .. [[ ]] .. secondConvert(secondInput)) }</span> +<span id="cb257-12"><a href="#cb257-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb257-13"><a href="#cb257-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb259"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb259-1"><a href="#cb259-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb258"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb258-1"><a href="#cb258-1" aria-hidden="true" tabindex="-1"></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>!â A frozen cache with two entries will also be produced as we requested using the <code>frozenCacheCounter</code> option.</p> -<h4 data-number="2.2.1.30" id="option-gfmautoidentifiers"><span -class="header-section-number">2.2.1.30</span> Option +<h4 data-number="2.2.1.32" id="option-gfmautoidentifiers"><span +class="header-section-number">2.2.1.32</span> Option <code>gfmAutoIdentifiers</code></h4> <dl> <dt><code>gfmAutoIdentifiers</code> (default value: @@ -4227,10 +4309,10 @@ class="header-section-number">2.2.1.30</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-gfm_auto_identifiers">GitHub-flavored auto identifiers syntax extension</a>:</p> -<div class="sourceCode" id="cb260"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb260-1"><a href="#cb260-1" aria-hidden="true" tabindex="-1"></a>The following heading received the identifier <span class="in">`123-sesame-street`</span>:</span> -<span id="cb260-2"><a href="#cb260-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb260-3"><a href="#cb260-3" aria-hidden="true" tabindex="-1"></a><span class="fu"># 123 Sesame Street</span></span></code></pre></div> +<div class="sourceCode" id="cb259"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb259-1"><a href="#cb259-1" aria-hidden="true" tabindex="-1"></a>The following heading received the identifier <span class="in">`123-sesame-street`</span>:</span> +<span id="cb259-2"><a href="#cb259-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb259-3"><a href="#cb259-3" aria-hidden="true" tabindex="-1"></a><span class="fu"># 123 Sesame Street</span></span></code></pre></div> </dd> <dt>false</dt> <dd> @@ -4242,8 +4324,8 @@ extension.</p> </dl> <p>See also the option <strong><code>autoIdentifiers</code></strong>.</p> -<h4 data-number="2.2.1.31" id="option-hashenumerators"><span -class="header-section-number">2.2.1.31</span> Option +<h4 data-number="2.2.1.33" id="option-hashenumerators"><span +class="header-section-number">2.2.1.33</span> Option <code>hashEnumerators</code></h4> <dl> <dt><code>hashEnumerators</code> (default value: @@ -4254,10 +4336,10 @@ class="header-section-number">2.2.1.31</span> Option <dd> <p>Enable the use of hash symbols (<code>#</code>) as ordered item list markers:</p> -<div class="sourceCode" id="cb261"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb261-1"><a href="#cb261-1" aria-hidden="true" tabindex="-1"></a>#. Bird</span> -<span id="cb261-2"><a href="#cb261-2" aria-hidden="true" tabindex="-1"></a>#. McHale</span> -<span id="cb261-3"><a href="#cb261-3" aria-hidden="true" tabindex="-1"></a>#. Parish</span></code></pre></div> +<div class="sourceCode" id="cb260"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb260-1"><a href="#cb260-1" aria-hidden="true" tabindex="-1"></a>#. Bird</span> +<span id="cb260-2"><a href="#cb260-2" aria-hidden="true" tabindex="-1"></a>#. McHale</span> +<span id="cb260-3"><a href="#cb260-3" aria-hidden="true" tabindex="-1"></a>#. Parish</span></code></pre></div> </dd> </dl> </dd> @@ -4275,27 +4357,27 @@ markers.</p> 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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb262-2"><a href="#cb262-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb262-3"><a href="#cb262-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb262-4"><a href="#cb262-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb262-5"><a href="#cb262-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb262-6"><a href="#cb262-6" aria-hidden="true" tabindex="-1"></a>#. Bird</span> -<span id="cb262-7"><a href="#cb262-7" aria-hidden="true" tabindex="-1"></a>#. McHale</span> -<span id="cb262-8"><a href="#cb262-8" aria-hidden="true" tabindex="-1"></a>#. Parish</span> -<span id="cb262-9"><a href="#cb262-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb262-10"><a href="#cb262-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb262-11"><a href="#cb262-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[hashEnumerators]</span> -<span id="cb262-12"><a href="#cb262-12" aria-hidden="true" tabindex="-1"></a>#. Bird</span> -<span id="cb262-13"><a href="#cb262-13" aria-hidden="true" tabindex="-1"></a>#. McHale</span> -<span id="cb262-14"><a href="#cb262-14" aria-hidden="true" tabindex="-1"></a>#. Parish</span> -<span id="cb262-15"><a href="#cb262-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb262-16"><a href="#cb262-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb262-17"><a href="#cb262-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb261"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb261-1"><a href="#cb261-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb261-2"><a href="#cb261-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb261-3"><a href="#cb261-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb261-4"><a href="#cb261-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb261-5"><a href="#cb261-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb261-6"><a href="#cb261-6" aria-hidden="true" tabindex="-1"></a>#. Bird</span> +<span id="cb261-7"><a href="#cb261-7" aria-hidden="true" tabindex="-1"></a>#. McHale</span> +<span id="cb261-8"><a href="#cb261-8" aria-hidden="true" tabindex="-1"></a>#. Parish</span> +<span id="cb261-9"><a href="#cb261-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb261-10"><a href="#cb261-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb261-11"><a href="#cb261-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[hashEnumerators]</span> +<span id="cb261-12"><a href="#cb261-12" aria-hidden="true" tabindex="-1"></a>#. Bird</span> +<span id="cb261-13"><a href="#cb261-13" aria-hidden="true" tabindex="-1"></a>#. McHale</span> +<span id="cb261-14"><a href="#cb261-14" aria-hidden="true" tabindex="-1"></a>#. Parish</span> +<span id="cb261-15"><a href="#cb261-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb261-16"><a href="#cb261-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb261-17"><a href="#cb261-17" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb262"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb262-1"><a href="#cb262-1" aria-hidden="true" tabindex="-1"></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> @@ -4312,27 +4394,27 @@ contain the following text:</p> 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="cb264"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb264-1"><a href="#cb264-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb264-2"><a href="#cb264-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb264-3"><a href="#cb264-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb264-4"><a href="#cb264-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb264-5"><a href="#cb264-5" aria-hidden="true" tabindex="-1"></a>#. Bird</span> -<span id="cb264-6"><a href="#cb264-6" aria-hidden="true" tabindex="-1"></a>#. McHale</span> -<span id="cb264-7"><a href="#cb264-7" aria-hidden="true" tabindex="-1"></a>#. Parish</span> -<span id="cb264-8"><a href="#cb264-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb264-9"><a href="#cb264-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb264-10"><a href="#cb264-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hashEnumerators = yes]</span> -<span id="cb264-11"><a href="#cb264-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb264-12"><a href="#cb264-12" aria-hidden="true" tabindex="-1"></a>#. Bird</span> -<span id="cb264-13"><a href="#cb264-13" aria-hidden="true" tabindex="-1"></a>#. McHale</span> -<span id="cb264-14"><a href="#cb264-14" aria-hidden="true" tabindex="-1"></a>#. Parish</span> -<span id="cb264-15"><a href="#cb264-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb264-16"><a href="#cb264-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb264-17"><a href="#cb264-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb263"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb263-1"><a href="#cb263-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb263-2"><a href="#cb263-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb263-3"><a href="#cb263-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb263-4"><a href="#cb263-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb263-5"><a href="#cb263-5" aria-hidden="true" tabindex="-1"></a>#. Bird</span> +<span id="cb263-6"><a href="#cb263-6" aria-hidden="true" tabindex="-1"></a>#. McHale</span> +<span id="cb263-7"><a href="#cb263-7" aria-hidden="true" tabindex="-1"></a>#. Parish</span> +<span id="cb263-8"><a href="#cb263-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb263-9"><a href="#cb263-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb263-10"><a href="#cb263-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hashEnumerators = yes]</span> +<span id="cb263-11"><a href="#cb263-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb263-12"><a href="#cb263-12" aria-hidden="true" tabindex="-1"></a>#. Bird</span> +<span id="cb263-13"><a href="#cb263-13" aria-hidden="true" tabindex="-1"></a>#. McHale</span> +<span id="cb263-14"><a href="#cb263-14" aria-hidden="true" tabindex="-1"></a>#. Parish</span> +<span id="cb263-15"><a href="#cb263-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb263-16"><a href="#cb263-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb263-17"><a href="#cb263-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb265"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb265-1"><a href="#cb265-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb264"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb264-1"><a href="#cb264-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -4345,8 +4427,8 @@ contain the following text:</p> <li>Parish</li> </ol> </blockquote> -<h4 data-number="2.2.1.32" id="header-attributes"><span -class="header-section-number">2.2.1.32</span> Option +<h4 data-number="2.2.1.34" id="header-attributes"><span +class="header-section-number">2.2.1.34</span> Option <code>headerAttributes</code></h4> <dl> <dt><code>headerAttributes</code> (default value: @@ -4356,13 +4438,13 @@ class="header-section-number">2.2.1.32</span> Option <dt>true</dt> <dd> <p>Enable the assignment of HTML attributes to headings:</p> -<div class="sourceCode" id="cb266"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb266-1"><a href="#cb266-1" aria-hidden="true" tabindex="-1"></a><span class="fu"># My first heading {#foo}</span></span> -<span id="cb266-2"><a href="#cb266-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb266-3"><a href="#cb266-3" aria-hidden="true" tabindex="-1"></a><span class="fu">## My second heading ## {#bar .baz}</span></span> -<span id="cb266-4"><a href="#cb266-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb266-5"><a href="#cb266-5" aria-hidden="true" tabindex="-1"></a>Yet another heading {key=value}</span> -<span id="cb266-6"><a href="#cb266-6" aria-hidden="true" tabindex="-1"></a><span class="fu">===================</span></span></code></pre></div> +<div class="sourceCode" id="cb265"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb265-1"><a href="#cb265-1" aria-hidden="true" tabindex="-1"></a><span class="fu"># My first heading {#foo}</span></span> +<span id="cb265-2"><a href="#cb265-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb265-3"><a href="#cb265-3" aria-hidden="true" tabindex="-1"></a><span class="fu">## My second heading ## {#bar .baz}</span></span> +<span id="cb265-4"><a href="#cb265-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb265-5"><a href="#cb265-5" aria-hidden="true" tabindex="-1"></a>Yet another heading {key=value}</span> +<span id="cb265-6"><a href="#cb265-6" aria-hidden="true" tabindex="-1"></a><span class="fu">===================</span></span></code></pre></div> </dd> </dl> </dd> @@ -4375,8 +4457,8 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb266-1"><a hr </dl> </dd> </dl> -<h4 data-number="2.2.1.33" id="option-html"><span -class="header-section-number">2.2.1.33</span> Option +<h4 data-number="2.2.1.35" id="option-html"><span +class="header-section-number">2.2.1.35</span> Option <code>html</code></h4> <dl> <dt><code>html</code> (default value: <code>true</code>)</dt> @@ -4406,37 +4488,37 @@ will be rendered as plain text.</p> 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="cb267"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb267-1"><a href="#cb267-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb267-2"><a href="#cb267-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb267-3"><a href="#cb267-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb267-4"><a href="#cb267-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb267-5"><a href="#cb267-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb267-6"><a href="#cb267-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb267-7"><a href="#cb267-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb267-8"><a href="#cb267-8" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({html = false})</span> -<span id="cb267-9"><a href="#cb267-9" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb267-10"><a href="#cb267-10" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb267-11"><a href="#cb267-11" aria-hidden="true" tabindex="-1"></a> "<div>*There is no block tag support.*</div>" .. newline ..</span> -<span id="cb267-12"><a href="#cb267-12" aria-hidden="true" tabindex="-1"></a> "*There is no <inline tag="tag"></inline> support.*" .. newline ..</span> -<span id="cb267-13"><a href="#cb267-13" aria-hidden="true" tabindex="-1"></a> "_There is no <!-- comment --> support._" .. newline ..</span> -<span id="cb267-14"><a href="#cb267-14" aria-hidden="true" tabindex="-1"></a> "_There is no <? HTML instruction ?> support._"</span> -<span id="cb267-15"><a href="#cb267-15" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb267-16"><a href="#cb267-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb267-17"><a href="#cb267-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb267-18"><a href="#cb267-18" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb267-19"><a href="#cb267-19" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new()</span> -<span id="cb267-20"><a href="#cb267-20" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb267-21"><a href="#cb267-21" aria-hidden="true" tabindex="-1"></a> "<div>*There is block tag support.*</div>" .. newline ..</span> -<span id="cb267-22"><a href="#cb267-22" aria-hidden="true" tabindex="-1"></a> "*There is <inline tag="tag"></inline> support.*" .. newline ..</span> -<span id="cb267-23"><a href="#cb267-23" aria-hidden="true" tabindex="-1"></a> "_There is <!-- comment --> support._" .. newline ..</span> -<span id="cb267-24"><a href="#cb267-24" aria-hidden="true" tabindex="-1"></a> "_There is <? HTML instruction ?> support._"</span> -<span id="cb267-25"><a href="#cb267-25" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb267-26"><a href="#cb267-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb267-27"><a href="#cb267-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb266"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb266-1"><a href="#cb266-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb266-2"><a href="#cb266-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb266-3"><a href="#cb266-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb266-4"><a href="#cb266-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb266-5"><a href="#cb266-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb266-6"><a href="#cb266-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb266-7"><a href="#cb266-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb266-8"><a href="#cb266-8" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({html = false})</span> +<span id="cb266-9"><a href="#cb266-9" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb266-10"><a href="#cb266-10" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb266-11"><a href="#cb266-11" aria-hidden="true" tabindex="-1"></a> "<div>*There is no block tag support.*</div>" .. newline ..</span> +<span id="cb266-12"><a href="#cb266-12" aria-hidden="true" tabindex="-1"></a> "*There is no <inline tag="tag"></inline> support.*" .. newline ..</span> +<span id="cb266-13"><a href="#cb266-13" aria-hidden="true" tabindex="-1"></a> "_There is no <!-- comment --> support._" .. newline ..</span> +<span id="cb266-14"><a href="#cb266-14" aria-hidden="true" tabindex="-1"></a> "_There is no <? HTML instruction ?> support._"</span> +<span id="cb266-15"><a href="#cb266-15" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb266-16"><a href="#cb266-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb266-17"><a href="#cb266-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb266-18"><a href="#cb266-18" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb266-19"><a href="#cb266-19" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new()</span> +<span id="cb266-20"><a href="#cb266-20" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb266-21"><a href="#cb266-21" aria-hidden="true" tabindex="-1"></a> "<div>*There is block tag support.*</div>" .. newline ..</span> +<span id="cb266-22"><a href="#cb266-22" aria-hidden="true" tabindex="-1"></a> "*There is <inline tag="tag"></inline> support.*" .. newline ..</span> +<span id="cb266-23"><a href="#cb266-23" aria-hidden="true" tabindex="-1"></a> "_There is <!-- comment --> support._" .. newline ..</span> +<span id="cb266-24"><a href="#cb266-24" aria-hidden="true" tabindex="-1"></a> "_There is <? HTML instruction ?> support._"</span> +<span id="cb266-25"><a href="#cb266-25" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb266-26"><a href="#cb266-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb266-27"><a href="#cb266-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb268"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb268-1"><a href="#cb268-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb267"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb267-1"><a href="#cb267-1" aria-hidden="true" tabindex="-1"></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> @@ -4449,31 +4531,31 @@ support.</p> <h5 class="unnumbered" 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="cb269"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb269-1"><a href="#cb269-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb269-2"><a href="#cb269-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb269-3"><a href="#cb269-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb269-4"><a href="#cb269-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb269-5"><a href="#cb269-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb269-6"><a href="#cb269-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb269-7"><a href="#cb269-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb269-8"><a href="#cb269-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb269-9"><a href="#cb269-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb269-10"><a href="#cb269-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb268"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb268-1"><a href="#cb268-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb268-2"><a href="#cb268-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb268-3"><a href="#cb268-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb268-4"><a href="#cb268-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb268-5"><a href="#cb268-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb268-6"><a href="#cb268-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb268-7"><a href="#cb268-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb268-8"><a href="#cb268-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb268-9"><a href="#cb268-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb268-10"><a href="#cb268-10" aria-hidden="true" tabindex="-1"></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="cb270"><pre -class="sourceCode html"><code class="sourceCode html"><span id="cb270-1"><a href="#cb270-1" aria-hidden="true" tabindex="-1"></a><span class="dt"><</span><span class="kw">div</span><span class="dt">></span></span> -<span id="cb270-2"><a href="#cb270-2" aria-hidden="true" tabindex="-1"></a>*Is there block tag support?*</span> -<span id="cb270-3"><a href="#cb270-3" aria-hidden="true" tabindex="-1"></a><span class="dt"></</span><span class="kw">div</span><span class="dt">></span></span> -<span id="cb270-4"><a href="#cb270-4" aria-hidden="true" tabindex="-1"></a>*Is there <span class="dt"><</span><span class="kw">inline</span> <span class="er">tag</span><span class="ot">=</span><span class="st">"tag"</span><span class="dt">></</span><span class="kw">inline</span><span class="dt">></span> support?*</span> -<span id="cb270-5"><a href="#cb270-5" aria-hidden="true" tabindex="-1"></a>_Is there <span class="co"><!-- comment --></span> support?_</span> -<span id="cb270-6"><a href="#cb270-6" aria-hidden="true" tabindex="-1"></a>_Is there <span class="kw"><?</span> HTML instruction <span class="kw">?></span> support?_</span></code></pre></div> +<div class="sourceCode" id="cb269"><pre +class="sourceCode html"><code class="sourceCode html"><span id="cb269-1"><a href="#cb269-1" aria-hidden="true" tabindex="-1"></a><span class="dt"><</span><span class="kw">div</span><span class="dt">></span></span> +<span id="cb269-2"><a href="#cb269-2" aria-hidden="true" tabindex="-1"></a>*Is there block tag support?*</span> +<span id="cb269-3"><a href="#cb269-3" aria-hidden="true" tabindex="-1"></a><span class="dt"></</span><span class="kw">div</span><span class="dt">></span></span> +<span id="cb269-4"><a href="#cb269-4" aria-hidden="true" tabindex="-1"></a>*Is there <span class="dt"><</span><span class="kw">inline</span> <span class="er">tag</span><span class="ot">=</span><span class="st">"tag"</span><span class="dt">></</span><span class="kw">inline</span><span class="dt">></span> support?*</span> +<span id="cb269-5"><a href="#cb269-5" aria-hidden="true" tabindex="-1"></a>_Is there <span class="co"><!-- comment --></span> support?_</span> +<span id="cb269-6"><a href="#cb269-6" aria-hidden="true" tabindex="-1"></a>_Is there <span class="kw"><?</span> HTML instruction <span class="kw">?></span> support?_</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠html=false <span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb271-2"><a href="#cb271-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb271-3"><a href="#cb271-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb270"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb270-1"><a href="#cb270-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠html=false <span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb270-2"><a href="#cb270-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb270-3"><a href="#cb270-3" aria-hidden="true" tabindex="-1"></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 @@ -4495,34 +4577,34 @@ contain the following text:</p> 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="cb272"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb272-1"><a href="#cb272-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb272-2"><a href="#cb272-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb272-3"><a href="#cb272-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb272-4"><a href="#cb272-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHtml</span>{false}</span> -<span id="cb272-5"><a href="#cb272-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb272-6"><a href="#cb272-6" aria-hidden="true" tabindex="-1"></a><div></span> -<span id="cb272-7"><a href="#cb272-7" aria-hidden="true" tabindex="-1"></a>*There is no block tag support.*</span> -<span id="cb272-8"><a href="#cb272-8" aria-hidden="true" tabindex="-1"></a></div></span> -<span id="cb272-9"><a href="#cb272-9" aria-hidden="true" tabindex="-1"></a>*There is no <inline tag="tag"></inline> support.*</span> -<span id="cb272-10"><a href="#cb272-10" aria-hidden="true" tabindex="-1"></a>_There is no <!-- comment --> support._</span> -<span id="cb272-11"><a href="#cb272-11" aria-hidden="true" tabindex="-1"></a>_There is no <? HTML instruction ?> support._</span> -<span id="cb272-12"><a href="#cb272-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb272-13"><a href="#cb272-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb272-14"><a href="#cb272-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHtml</span>{true}</span> -<span id="cb272-15"><a href="#cb272-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb272-16"><a href="#cb272-16" aria-hidden="true" tabindex="-1"></a><div></span> -<span id="cb272-17"><a href="#cb272-17" aria-hidden="true" tabindex="-1"></a>*There is block tag support.*</span> -<span id="cb272-18"><a href="#cb272-18" aria-hidden="true" tabindex="-1"></a></div></span> -<span id="cb272-19"><a href="#cb272-19" aria-hidden="true" tabindex="-1"></a>*There is <inline tag="tag"></inline> support.*</span> -<span id="cb272-20"><a href="#cb272-20" aria-hidden="true" tabindex="-1"></a>_There is <!-- comment --> support._</span> -<span id="cb272-21"><a href="#cb272-21" aria-hidden="true" tabindex="-1"></a>_There is <? HTML instruction ?> support._</span> -<span id="cb272-22"><a href="#cb272-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb272-23"><a href="#cb272-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb272-24"><a href="#cb272-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb271"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb271-1"><a href="#cb271-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb271-2"><a href="#cb271-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb271-3"><a href="#cb271-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb271-4"><a href="#cb271-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHtml</span>{false}</span> +<span id="cb271-5"><a href="#cb271-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb271-6"><a href="#cb271-6" aria-hidden="true" tabindex="-1"></a><div></span> +<span id="cb271-7"><a href="#cb271-7" aria-hidden="true" tabindex="-1"></a>*There is no block tag support.*</span> +<span id="cb271-8"><a href="#cb271-8" aria-hidden="true" tabindex="-1"></a></div></span> +<span id="cb271-9"><a href="#cb271-9" aria-hidden="true" tabindex="-1"></a>*There is no <inline tag="tag"></inline> support.*</span> +<span id="cb271-10"><a href="#cb271-10" aria-hidden="true" tabindex="-1"></a>_There is no <!-- comment --> support._</span> +<span id="cb271-11"><a href="#cb271-11" aria-hidden="true" tabindex="-1"></a>_There is no <? HTML instruction ?> support._</span> +<span id="cb271-12"><a href="#cb271-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb271-13"><a href="#cb271-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb271-14"><a href="#cb271-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHtml</span>{true}</span> +<span id="cb271-15"><a href="#cb271-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb271-16"><a href="#cb271-16" aria-hidden="true" tabindex="-1"></a><div></span> +<span id="cb271-17"><a href="#cb271-17" aria-hidden="true" tabindex="-1"></a>*There is block tag support.*</span> +<span id="cb271-18"><a href="#cb271-18" aria-hidden="true" tabindex="-1"></a></div></span> +<span id="cb271-19"><a href="#cb271-19" aria-hidden="true" tabindex="-1"></a>*There is <inline tag="tag"></inline> support.*</span> +<span id="cb271-20"><a href="#cb271-20" aria-hidden="true" tabindex="-1"></a>_There is <!-- comment --> support._</span> +<span id="cb271-21"><a href="#cb271-21" aria-hidden="true" tabindex="-1"></a>_There is <? HTML instruction ?> support._</span> +<span id="cb271-22"><a href="#cb271-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb271-23"><a href="#cb271-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb271-24"><a href="#cb271-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb273"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb273-1"><a href="#cb273-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb272"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb272-1"><a href="#cb272-1" aria-hidden="true" tabindex="-1"></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> @@ -4536,33 +4618,33 @@ support.</p> 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="cb274"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb274-1"><a href="#cb274-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb274-2"><a href="#cb274-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb274-3"><a href="#cb274-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb274-4"><a href="#cb274-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb274-5"><a href="#cb274-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[html = false]</span> -<span id="cb274-6"><a href="#cb274-6" aria-hidden="true" tabindex="-1"></a><div></span> -<span id="cb274-7"><a href="#cb274-7" aria-hidden="true" tabindex="-1"></a>*There is no block tag support.*</span> -<span id="cb274-8"><a href="#cb274-8" aria-hidden="true" tabindex="-1"></a></div></span> -<span id="cb274-9"><a href="#cb274-9" aria-hidden="true" tabindex="-1"></a>*There is no <inline tag="tag"></inline> support.*</span> -<span id="cb274-10"><a href="#cb274-10" aria-hidden="true" tabindex="-1"></a>_There is no <!-- comment --> support._</span> -<span id="cb274-11"><a href="#cb274-11" aria-hidden="true" tabindex="-1"></a>_There is no <? HTML instruction ?> support._</span> -<span id="cb274-12"><a href="#cb274-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb274-13"><a href="#cb274-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb274-14"><a href="#cb274-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb274-15"><a href="#cb274-15" aria-hidden="true" tabindex="-1"></a><div></span> -<span id="cb274-16"><a href="#cb274-16" aria-hidden="true" tabindex="-1"></a>*There is block tag support.*</span> -<span id="cb274-17"><a href="#cb274-17" aria-hidden="true" tabindex="-1"></a></div></span> -<span id="cb274-18"><a href="#cb274-18" aria-hidden="true" tabindex="-1"></a>*There is <inline tag="tag"></inline> support.*</span> -<span id="cb274-19"><a href="#cb274-19" aria-hidden="true" tabindex="-1"></a>_There is <!-- comment --> support._</span> -<span id="cb274-20"><a href="#cb274-20" aria-hidden="true" tabindex="-1"></a>_There is <? HTML instruction ?> support._</span> -<span id="cb274-21"><a href="#cb274-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb274-22"><a href="#cb274-22" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb274-23"><a href="#cb274-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb273-2"><a href="#cb273-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb273-3"><a href="#cb273-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb273-4"><a href="#cb273-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb273-5"><a href="#cb273-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[html = false]</span> +<span id="cb273-6"><a href="#cb273-6" aria-hidden="true" tabindex="-1"></a><div></span> +<span id="cb273-7"><a href="#cb273-7" aria-hidden="true" tabindex="-1"></a>*There is no block tag support.*</span> +<span id="cb273-8"><a href="#cb273-8" aria-hidden="true" tabindex="-1"></a></div></span> +<span id="cb273-9"><a href="#cb273-9" aria-hidden="true" tabindex="-1"></a>*There is no <inline tag="tag"></inline> support.*</span> +<span id="cb273-10"><a href="#cb273-10" aria-hidden="true" tabindex="-1"></a>_There is no <!-- comment --> support._</span> +<span id="cb273-11"><a href="#cb273-11" aria-hidden="true" tabindex="-1"></a>_There is no <? HTML instruction ?> support._</span> +<span id="cb273-12"><a href="#cb273-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb273-13"><a href="#cb273-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb273-14"><a href="#cb273-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb273-15"><a href="#cb273-15" aria-hidden="true" tabindex="-1"></a><div></span> +<span id="cb273-16"><a href="#cb273-16" aria-hidden="true" tabindex="-1"></a>*There is block tag support.*</span> +<span id="cb273-17"><a href="#cb273-17" aria-hidden="true" tabindex="-1"></a></div></span> +<span id="cb273-18"><a href="#cb273-18" aria-hidden="true" tabindex="-1"></a>*There is <inline tag="tag"></inline> support.*</span> +<span id="cb273-19"><a href="#cb273-19" aria-hidden="true" tabindex="-1"></a>_There is <!-- comment --> support._</span> +<span id="cb273-20"><a href="#cb273-20" aria-hidden="true" tabindex="-1"></a>_There is <? HTML instruction ?> support._</span> +<span id="cb273-21"><a href="#cb273-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb273-22"><a href="#cb273-22" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb273-23"><a href="#cb273-23" aria-hidden="true" tabindex="-1"></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="cb275"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb275-1"><a href="#cb275-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb274"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb274-1"><a href="#cb274-1" aria-hidden="true" tabindex="-1"></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> @@ -4576,34 +4658,34 @@ support.</p> 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="cb276"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb276-1"><a href="#cb276-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb276-2"><a href="#cb276-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb276-3"><a href="#cb276-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb276-4"><a href="#cb276-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[html = no]</span> -<span id="cb276-5"><a href="#cb276-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb276-6"><a href="#cb276-6" aria-hidden="true" tabindex="-1"></a><div></span> -<span id="cb276-7"><a href="#cb276-7" aria-hidden="true" tabindex="-1"></a>*There is no block tag support.*</span> -<span id="cb276-8"><a href="#cb276-8" aria-hidden="true" tabindex="-1"></a></div></span> -<span id="cb276-9"><a href="#cb276-9" aria-hidden="true" tabindex="-1"></a>*There is no <inline tag="tag"></inline> support.*</span> -<span id="cb276-10"><a href="#cb276-10" aria-hidden="true" tabindex="-1"></a>_There is no <!-- comment --> support._</span> -<span id="cb276-11"><a href="#cb276-11" aria-hidden="true" tabindex="-1"></a>_There is no <? HTML instruction ?> support._</span> -<span id="cb276-12"><a href="#cb276-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb276-13"><a href="#cb276-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb276-14"><a href="#cb276-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[html = yes]</span> -<span id="cb276-15"><a href="#cb276-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb276-16"><a href="#cb276-16" aria-hidden="true" tabindex="-1"></a><div></span> -<span id="cb276-17"><a href="#cb276-17" aria-hidden="true" tabindex="-1"></a>*There is block tag support.*</span> -<span id="cb276-18"><a href="#cb276-18" aria-hidden="true" tabindex="-1"></a></div></span> -<span id="cb276-19"><a href="#cb276-19" aria-hidden="true" tabindex="-1"></a>*There is <inline tag="tag"></inline> support.*</span> -<span id="cb276-20"><a href="#cb276-20" aria-hidden="true" tabindex="-1"></a>_There is <!-- comment --> support._</span> -<span id="cb276-21"><a href="#cb276-21" aria-hidden="true" tabindex="-1"></a>_There is <? HTML instruction ?> support._</span> -<span id="cb276-22"><a href="#cb276-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb276-23"><a href="#cb276-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb276-24"><a href="#cb276-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb275"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb275-1"><a href="#cb275-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb275-2"><a href="#cb275-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb275-3"><a href="#cb275-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb275-4"><a href="#cb275-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[html = no]</span> +<span id="cb275-5"><a href="#cb275-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb275-6"><a href="#cb275-6" aria-hidden="true" tabindex="-1"></a><div></span> +<span id="cb275-7"><a href="#cb275-7" aria-hidden="true" tabindex="-1"></a>*There is no block tag support.*</span> +<span id="cb275-8"><a href="#cb275-8" aria-hidden="true" tabindex="-1"></a></div></span> +<span id="cb275-9"><a href="#cb275-9" aria-hidden="true" tabindex="-1"></a>*There is no <inline tag="tag"></inline> support.*</span> +<span id="cb275-10"><a href="#cb275-10" aria-hidden="true" tabindex="-1"></a>_There is no <!-- comment --> support._</span> +<span id="cb275-11"><a href="#cb275-11" aria-hidden="true" tabindex="-1"></a>_There is no <? HTML instruction ?> support._</span> +<span id="cb275-12"><a href="#cb275-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb275-13"><a href="#cb275-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb275-14"><a href="#cb275-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[html = yes]</span> +<span id="cb275-15"><a href="#cb275-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb275-16"><a href="#cb275-16" aria-hidden="true" tabindex="-1"></a><div></span> +<span id="cb275-17"><a href="#cb275-17" aria-hidden="true" tabindex="-1"></a>*There is block tag support.*</span> +<span id="cb275-18"><a href="#cb275-18" aria-hidden="true" tabindex="-1"></a></div></span> +<span id="cb275-19"><a href="#cb275-19" aria-hidden="true" tabindex="-1"></a>*There is <inline tag="tag"></inline> support.*</span> +<span id="cb275-20"><a href="#cb275-20" aria-hidden="true" tabindex="-1"></a>_There is <!-- comment --> support._</span> +<span id="cb275-21"><a href="#cb275-21" aria-hidden="true" tabindex="-1"></a>_There is <? HTML instruction ?> support._</span> +<span id="cb275-22"><a href="#cb275-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb275-23"><a href="#cb275-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb275-24"><a href="#cb275-24" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb276"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb276-1"><a href="#cb276-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -4613,8 +4695,8 @@ comment â> support. There is no <? HTML instruction ?> support.</p> <p>There is support. There is support. There is support.</p> </blockquote> -<h4 data-number="2.2.1.34" id="option-hybrid"><span -class="header-section-number">2.2.1.34</span> Option +<h4 data-number="2.2.1.36" id="option-hybrid"><span +class="header-section-number">2.2.1.36</span> Option <code>hybrid</code></h4> <dl> <dt><code>hybrid</code> (default value: <code>false</code>)</dt> @@ -4638,7 +4720,7 @@ markdown markup freely.</p> <dd> <p>Enable the escaping of special plain <span class="tex">T<sub>e</sub>X</span> characters outside verbatim -environments, so that they are not interpretted by <span +environments, so that they are not interpreted by <span class="tex">T<sub>e</sub>X</span>. This is encouraged when typesetting automatically generated content or markdown documents that were not prepared with this package in mind.</p> @@ -4650,31 +4732,31 @@ prepared with this package in mind.</p> 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="cb278"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb278-1"><a href="#cb278-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb278-2"><a href="#cb278-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb278-3"><a href="#cb278-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb278-4"><a href="#cb278-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb278-5"><a href="#cb278-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb278-6"><a href="#cb278-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb278-7"><a href="#cb278-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb278-8"><a href="#cb278-8" aria-hidden="true" tabindex="-1"></a> local input, convert_safe, convert_unsafe, paragraph</span> -<span id="cb278-9"><a href="#cb278-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb278-10"><a href="#cb278-10" aria-hidden="true" tabindex="-1"></a> input = [[<span class="ss">$</span><span class="sc">\string\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.]]</span> -<span id="cb278-11"><a href="#cb278-11" aria-hidden="true" tabindex="-1"></a> convert_safe = markdown.new()</span> -<span id="cb278-12"><a href="#cb278-12" aria-hidden="true" tabindex="-1"></a> convert_unsafe = markdown.new({hybrid = true})</span> -<span id="cb278-13"><a href="#cb278-13" aria-hidden="true" tabindex="-1"></a> paragraph = [[<span class="fu">\par</span>]]</span> -<span id="cb278-14"><a href="#cb278-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb278-15"><a href="#cb278-15" aria-hidden="true" tabindex="-1"></a> tex.sprint(</span> -<span id="cb278-16"><a href="#cb278-16" aria-hidden="true" tabindex="-1"></a> convert_safe(input) .. paragraph ..</span> -<span id="cb278-17"><a href="#cb278-17" aria-hidden="true" tabindex="-1"></a> convert_unsafe(input)</span> -<span id="cb278-18"><a href="#cb278-18" aria-hidden="true" tabindex="-1"></a> )</span> -<span id="cb278-19"><a href="#cb278-19" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb278-20"><a href="#cb278-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb278-21"><a href="#cb278-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb277"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb277-1"><a href="#cb277-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb277-2"><a href="#cb277-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb277-3"><a href="#cb277-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb277-4"><a href="#cb277-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb277-5"><a href="#cb277-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb277-6"><a href="#cb277-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb277-7"><a href="#cb277-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb277-8"><a href="#cb277-8" aria-hidden="true" tabindex="-1"></a> local input, convert_safe, convert_unsafe, paragraph</span> +<span id="cb277-9"><a href="#cb277-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb277-10"><a href="#cb277-10" aria-hidden="true" tabindex="-1"></a> input = [[<span class="ss">$</span><span class="sc">\string\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.]]</span> +<span id="cb277-11"><a href="#cb277-11" aria-hidden="true" tabindex="-1"></a> convert_safe = markdown.new()</span> +<span id="cb277-12"><a href="#cb277-12" aria-hidden="true" tabindex="-1"></a> convert_unsafe = markdown.new({hybrid = true})</span> +<span id="cb277-13"><a href="#cb277-13" aria-hidden="true" tabindex="-1"></a> paragraph = [[<span class="fu">\par</span>]]</span> +<span id="cb277-14"><a href="#cb277-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb277-15"><a href="#cb277-15" aria-hidden="true" tabindex="-1"></a> tex.sprint(</span> +<span id="cb277-16"><a href="#cb277-16" aria-hidden="true" tabindex="-1"></a> convert_safe(input) .. paragraph ..</span> +<span id="cb277-17"><a href="#cb277-17" aria-hidden="true" tabindex="-1"></a> convert_unsafe(input)</span> +<span id="cb277-18"><a href="#cb277-18" aria-hidden="true" tabindex="-1"></a> )</span> +<span id="cb277-19"><a href="#cb277-19" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb277-20"><a href="#cb277-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb277-21"><a href="#cb277-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Then, 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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb278"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb278-1"><a href="#cb278-1" aria-hidden="true" tabindex="-1"></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> @@ -4685,26 +4767,26 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-10">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="cb280"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb280-1"><a href="#cb280-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb280-2"><a href="#cb280-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb280-3"><a href="#cb280-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb280-4"><a href="#cb280-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb280-5"><a href="#cb280-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb280-6"><a href="#cb280-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb280-7"><a href="#cb280-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb280-8"><a href="#cb280-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb280-9"><a href="#cb280-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb280-10"><a href="#cb280-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb279"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb279-1"><a href="#cb279-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb279-2"><a href="#cb279-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb279-3"><a href="#cb279-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb279-4"><a href="#cb279-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb279-5"><a href="#cb279-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb279-6"><a href="#cb279-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb279-7"><a href="#cb279-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb279-8"><a href="#cb279-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb279-9"><a href="#cb279-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb279-10"><a href="#cb279-10" aria-hidden="true" tabindex="-1"></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="cb281"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb281-1"><a href="#cb281-1" aria-hidden="true" tabindex="-1"></a>$\sqrt{-1}$ *equals* $i$.</span></code></pre></div> +<div class="sourceCode" id="cb280"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb280-1"><a href="#cb280-1" aria-hidden="true" tabindex="-1"></a>$\sqrt{-1}$ *equals* $i$.</span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb282"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb282-1"><a href="#cb282-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb282-2"><a href="#cb282-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠hybrid=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb282-3"><a href="#cb282-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb281"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb281-1"><a href="#cb281-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb281-2"><a href="#cb281-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠hybrid=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb281-3"><a href="#cb281-3" aria-hidden="true" tabindex="-1"></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 @@ -4725,23 +4807,23 @@ contain the following text:</p> 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="cb283"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb283-1"><a href="#cb283-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb283-2"><a href="#cb283-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb283-3"><a href="#cb283-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb283-4"><a href="#cb283-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb283-5"><a href="#cb283-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb283-6"><a href="#cb283-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb283-7"><a href="#cb283-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb283-8"><a href="#cb283-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span> -<span id="cb283-9"><a href="#cb283-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb283-10"><a href="#cb283-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb283-11"><a href="#cb283-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb283-12"><a href="#cb283-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb283-13"><a href="#cb283-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb282"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb282-1"><a href="#cb282-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb282-2"><a href="#cb282-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb282-3"><a href="#cb282-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb282-4"><a href="#cb282-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb282-5"><a href="#cb282-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb282-6"><a href="#cb282-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb282-7"><a href="#cb282-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb282-8"><a href="#cb282-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span> +<span id="cb282-9"><a href="#cb282-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb282-10"><a href="#cb282-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb282-11"><a href="#cb282-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb282-12"><a href="#cb282-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb282-13"><a href="#cb282-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb284"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb284-1"><a href="#cb284-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb283"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb283-1"><a href="#cb283-1" aria-hidden="true" tabindex="-1"></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> @@ -4753,23 +4835,23 @@ contain the following text:</p> 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="cb285"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb285-1"><a href="#cb285-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb285-2"><a href="#cb285-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb285-3"><a href="#cb285-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb285-4"><a href="#cb285-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb285-5"><a href="#cb285-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb285-6"><a href="#cb285-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb285-7"><a href="#cb285-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb285-8"><a href="#cb285-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb285-9"><a href="#cb285-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[hybrid]</span> -<span id="cb285-10"><a href="#cb285-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb285-11"><a href="#cb285-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb285-12"><a href="#cb285-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb285-13"><a href="#cb285-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb284"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb284-1"><a href="#cb284-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb284-2"><a href="#cb284-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb284-3"><a href="#cb284-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb284-4"><a href="#cb284-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb284-5"><a href="#cb284-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb284-6"><a href="#cb284-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb284-7"><a href="#cb284-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb284-8"><a href="#cb284-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb284-9"><a href="#cb284-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[hybrid]</span> +<span id="cb284-10"><a href="#cb284-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb284-11"><a href="#cb284-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb284-12"><a href="#cb284-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb284-13"><a href="#cb284-13" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb285"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb285-1"><a href="#cb285-1" aria-hidden="true" tabindex="-1"></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> @@ -4781,23 +4863,23 @@ contain the following text:</p> 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="cb287"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb287-1"><a href="#cb287-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb287-2"><a href="#cb287-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb287-3"><a href="#cb287-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb287-4"><a href="#cb287-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb287-5"><a href="#cb287-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb287-6"><a href="#cb287-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb287-7"><a href="#cb287-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb287-8"><a href="#cb287-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hybrid = yes]</span> -<span id="cb287-9"><a href="#cb287-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb287-10"><a href="#cb287-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> -<span id="cb287-11"><a href="#cb287-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb287-12"><a href="#cb287-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb287-13"><a href="#cb287-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb286"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb286-1"><a href="#cb286-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb286-2"><a href="#cb286-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb286-3"><a href="#cb286-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb286-4"><a href="#cb286-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb286-5"><a href="#cb286-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb286-6"><a href="#cb286-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb286-7"><a href="#cb286-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb286-8"><a href="#cb286-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hybrid = yes]</span> +<span id="cb286-9"><a href="#cb286-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb286-10"><a href="#cb286-10" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>.</span> +<span id="cb286-11"><a href="#cb286-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb286-12"><a href="#cb286-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb286-13"><a href="#cb286-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb288"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb288-1"><a href="#cb288-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb287"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb287-1"><a href="#cb287-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -4805,8 +4887,8 @@ contain the following text:</p> <p><math><msqrt><mo>â</mo><mn>1</mn></msqrt></math> <em>equals</em> <math><mi>i</mi></math>.</p> </blockquote> -<h4 data-number="2.2.1.35" id="option-inlinecodeattributes"><span -class="header-section-number">2.2.1.35</span> Option +<h4 data-number="2.2.1.37" id="option-inlinecodeattributes"><span +class="header-section-number">2.2.1.37</span> Option <code>inlineCodeAttributes</code></h4> <dl> <dt><code>inlineCodeAttributes</code> (default value: @@ -4818,8 +4900,8 @@ class="header-section-number">2.2.1.35</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-inline_code_attributes">inline code span attribute extension</a>:</p> -<div class="sourceCode" id="cb289"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb289-1"><a href="#cb289-1" aria-hidden="true" tabindex="-1"></a><span class="in">`<$>`</span>{.haskell}</span></code></pre></div> +<div class="sourceCode" id="cb288"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb288-1"><a href="#cb288-1" aria-hidden="true" tabindex="-1"></a><span class="in">`<$>`</span>{.haskell}</span></code></pre></div> </dd> </dl> </dd> @@ -4836,52 +4918,52 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb289-1"><a hr 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="cb290"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb290-1"><a href="#cb290-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb290-2"><a href="#cb290-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[inlineCodeAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb290-3"><a href="#cb290-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> -<span id="cb290-4"><a href="#cb290-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb290-5"><a href="#cb290-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb290-6"><a href="#cb290-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb290-7"><a href="#cb290-7" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextBegin = {</span> -<span id="cb290-8"><a href="#cb290-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> -<span id="cb290-9"><a href="#cb290-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_begin:</span> -<span id="cb290-10"><a href="#cb290-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb290-11"><a href="#cb290-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb290-12"><a href="#cb290-12" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {</span> -<span id="cb290-13"><a href="#cb290-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\str</span>_if_eq:nnT</span> -<span id="cb290-14"><a href="#cb290-14" aria-hidden="true" tabindex="-1"></a> { ##1 }</span> -<span id="cb290-15"><a href="#cb290-15" aria-hidden="true" tabindex="-1"></a> { color }</span> -<span id="cb290-16"><a href="#cb290-16" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb290-17"><a href="#cb290-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_select:n { ##2 }</span> -<span id="cb290-18"><a href="#cb290-18" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb290-19"><a href="#cb290-19" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb290-20"><a href="#cb290-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb290-21"><a href="#cb290-21" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb290-22"><a href="#cb290-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb290-23"><a href="#cb290-23" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextEnd = {</span> -<span id="cb290-24"><a href="#cb290-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_end:</span> -<span id="cb290-25"><a href="#cb290-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb290-26"><a href="#cb290-26" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb290-27"><a href="#cb290-27" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb290-28"><a href="#cb290-28" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb290-29"><a href="#cb290-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb290-30"><a href="#cb290-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb290-31"><a href="#cb290-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb290-32"><a href="#cb290-32" aria-hidden="true" tabindex="-1"></a>Here is some `colored text`{color=red}.</span> -<span id="cb290-33"><a href="#cb290-33" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb290-34"><a href="#cb290-34" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb289-2"><a href="#cb289-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[inlineCodeAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb289-3"><a href="#cb289-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> +<span id="cb289-4"><a href="#cb289-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb289-5"><a href="#cb289-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb289-6"><a href="#cb289-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb289-7"><a href="#cb289-7" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextBegin = {</span> +<span id="cb289-8"><a href="#cb289-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> +<span id="cb289-9"><a href="#cb289-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_begin:</span> +<span id="cb289-10"><a href="#cb289-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb289-11"><a href="#cb289-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb289-12"><a href="#cb289-12" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {</span> +<span id="cb289-13"><a href="#cb289-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\str</span>_if_eq:nnT</span> +<span id="cb289-14"><a href="#cb289-14" aria-hidden="true" tabindex="-1"></a> { ##1 }</span> +<span id="cb289-15"><a href="#cb289-15" aria-hidden="true" tabindex="-1"></a> { color }</span> +<span id="cb289-16"><a href="#cb289-16" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb289-17"><a href="#cb289-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_select:n { ##2 }</span> +<span id="cb289-18"><a href="#cb289-18" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb289-19"><a href="#cb289-19" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb289-20"><a href="#cb289-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb289-21"><a href="#cb289-21" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb289-22"><a href="#cb289-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb289-23"><a href="#cb289-23" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextEnd = {</span> +<span id="cb289-24"><a href="#cb289-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\color</span>_group_end:</span> +<span id="cb289-25"><a href="#cb289-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb289-26"><a href="#cb289-26" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb289-27"><a href="#cb289-27" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb289-28"><a href="#cb289-28" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb289-29"><a href="#cb289-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb289-30"><a href="#cb289-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb289-31"><a href="#cb289-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb289-32"><a href="#cb289-32" aria-hidden="true" tabindex="-1"></a>Here is some `colored text`{color=red}.</span> +<span id="cb289-33"><a href="#cb289-33" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb289-34"><a href="#cb289-34" aria-hidden="true" tabindex="-1"></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="cb291"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb291-1"><a href="#cb291-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb290"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb290-1"><a href="#cb290-1" aria-hidden="true" tabindex="-1"></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>Here is some <span style="color: red"><code>colored text</code></span>.</p> </blockquote> -<h4 data-number="2.2.1.36" id="option-inlinenotes"><span -class="header-section-number">2.2.1.36</span> Option +<h4 data-number="2.2.1.38" id="option-inlinenotes"><span +class="header-section-number">2.2.1.38</span> Option <code>inlineNotes</code></h4> <dl> <dt><code>inlineNotes</code> (default value: <code>false</code>)</dt> @@ -4892,10 +4974,10 @@ class="header-section-number">2.2.1.36</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-inline_notes">inline note syntax extension</a>:</p> -<div class="sourceCode" id="cb292"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb292-1"><a href="#cb292-1" aria-hidden="true" tabindex="-1"></a>Here is an inline note.^[Inlines notes are easier to</span> -<span id="cb292-2"><a href="#cb292-2" aria-hidden="true" tabindex="-1"></a>write, since you don't have to pick an identifier and</span> -<span id="cb292-3"><a href="#cb292-3" aria-hidden="true" tabindex="-1"></a>move down to type the note.]</span></code></pre></div> +<div class="sourceCode" id="cb291"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb291-1"><a href="#cb291-1" aria-hidden="true" tabindex="-1"></a>Here is an inline note.^[Inlines notes are easier to</span> +<span id="cb291-2"><a href="#cb291-2" aria-hidden="true" tabindex="-1"></a>write, since you don't have to pick an identifier and</span> +<span id="cb291-3"><a href="#cb291-3" aria-hidden="true" tabindex="-1"></a>move down to type the note.]</span></code></pre></div> </dd> </dl> </dd> @@ -4912,19 +4994,19 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb292-1"><a hr 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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb293-2"><a href="#cb293-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[inlineNotes]{<span class="ex">markdown</span>}</span> -<span id="cb293-3"><a href="#cb293-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb293-4"><a href="#cb293-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb293-5"><a href="#cb293-5" aria-hidden="true" tabindex="-1"></a>Here is an inline note.^[Inlines notes are easier to</span> -<span id="cb293-6"><a href="#cb293-6" aria-hidden="true" tabindex="-1"></a>write, since you don't have to pick an identifier and</span> -<span id="cb293-7"><a href="#cb293-7" aria-hidden="true" tabindex="-1"></a>move down to type the note.]</span> -<span id="cb293-8"><a href="#cb293-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb293-9"><a href="#cb293-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb292"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb292-1"><a href="#cb292-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb292-2"><a href="#cb292-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[inlineNotes]{<span class="ex">markdown</span>}</span> +<span id="cb292-3"><a href="#cb292-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb292-4"><a href="#cb292-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb292-5"><a href="#cb292-5" aria-hidden="true" tabindex="-1"></a>Here is an inline note.^[Inlines notes are easier to</span> +<span id="cb292-6"><a href="#cb292-6" aria-hidden="true" tabindex="-1"></a>write, since you don't have to pick an identifier and</span> +<span id="cb292-7"><a href="#cb292-7" aria-hidden="true" tabindex="-1"></a>move down to type the note.]</span> +<span id="cb292-8"><a href="#cb292-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb292-9"><a href="#cb292-9" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb293"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb293-1"><a href="#cb293-1" aria-hidden="true" tabindex="-1"></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> @@ -4935,27 +5017,27 @@ id="fnref1" role="doc-noteref"><sup>1</sup></a></p> 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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb295-2"><a href="#cb295-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[inlineNotes = yes]</span> -<span id="cb295-3"><a href="#cb295-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb295-4"><a href="#cb295-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb295-5"><a href="#cb295-5" aria-hidden="true" tabindex="-1"></a>Here is an inline note.^[Inlines notes are easier to</span> -<span id="cb295-6"><a href="#cb295-6" aria-hidden="true" tabindex="-1"></a>write, since you don't have to pick an identifier and</span> -<span id="cb295-7"><a href="#cb295-7" aria-hidden="true" tabindex="-1"></a>move down to type the note.]</span> -<span id="cb295-8"><a href="#cb295-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb295-9"><a href="#cb295-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb294-2"><a href="#cb294-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[inlineNotes = yes]</span> +<span id="cb294-3"><a href="#cb294-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb294-4"><a href="#cb294-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb294-5"><a href="#cb294-5" aria-hidden="true" tabindex="-1"></a>Here is an inline note.^[Inlines notes are easier to</span> +<span id="cb294-6"><a href="#cb294-6" aria-hidden="true" tabindex="-1"></a>write, since you don't have to pick an identifier and</span> +<span id="cb294-7"><a href="#cb294-7" aria-hidden="true" tabindex="-1"></a>move down to type the note.]</span> +<span id="cb294-8"><a href="#cb294-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb294-9"><a href="#cb294-9" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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>Here is an inline note.<a href="#fn2" class="footnote-ref" id="fnref2" role="doc-noteref"><sup>2</sup></a></p> </blockquote> -<h4 data-number="2.2.1.37" id="option-jekylldata"><span -class="header-section-number">2.2.1.37</span> Option +<h4 data-number="2.2.1.39" id="option-jekylldata"><span +class="header-section-number">2.2.1.39</span> Option <code>jekyllData</code></h4> <dl> <dt><code>jekyllData</code> (default value: <code>false</code>)</dt> @@ -4967,18 +5049,18 @@ class="header-section-number">2.2.1.37</span> Option href="https://pandoc.org/MANUAL.html#extension-yaml_metadata_block"><abbr>yaml</abbr> metadata block syntax extension</a> for entering metadata in <abbr>yaml</abbr>:</p> -<div class="sourceCode" id="cb297"><pre -class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb297-1"><a href="#cb297-1" aria-hidden="true" tabindex="-1"></a><span class="pp">---</span></span> -<span id="cb297-2"><a href="#cb297-2" aria-hidden="true" tabindex="-1"></a><span class="fu">title</span><span class="kw">:</span><span class="at"> </span><span class="st">'This is the title: it contains a colon'</span></span> -<span id="cb297-3"><a href="#cb297-3" aria-hidden="true" tabindex="-1"></a><span class="fu">author</span><span class="kw">:</span></span> -<span id="cb297-4"><a href="#cb297-4" aria-hidden="true" tabindex="-1"></a><span class="kw">-</span><span class="at"> Author One</span></span> -<span id="cb297-5"><a href="#cb297-5" aria-hidden="true" tabindex="-1"></a><span class="kw">-</span><span class="at"> Author Two</span></span> -<span id="cb297-6"><a href="#cb297-6" aria-hidden="true" tabindex="-1"></a><span class="fu">keywords</span><span class="kw">:</span><span class="at"> </span><span class="kw">[</span><span class="at">nothing</span><span class="kw">,</span><span class="at"> nothingness</span><span class="kw">]</span></span> -<span id="cb297-7"><a href="#cb297-7" aria-hidden="true" tabindex="-1"></a><span class="fu">abstract</span><span class="kw">: </span><span class="ch">|</span></span> -<span id="cb297-8"><a href="#cb297-8" aria-hidden="true" tabindex="-1"></a> This is the abstract.</span> -<span id="cb297-9"><a href="#cb297-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb297-10"><a href="#cb297-10" aria-hidden="true" tabindex="-1"></a> It consists of two paragraphs.</span> -<span id="cb297-11"><a href="#cb297-11" aria-hidden="true" tabindex="-1"></a><span class="pp">---</span></span></code></pre></div> +<div class="sourceCode" id="cb296"><pre +class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb296-1"><a href="#cb296-1" aria-hidden="true" tabindex="-1"></a><span class="pp">---</span></span> +<span id="cb296-2"><a href="#cb296-2" aria-hidden="true" tabindex="-1"></a><span class="fu">title</span><span class="kw">:</span><span class="at"> </span><span class="st">'This is the title: it contains a colon'</span></span> +<span id="cb296-3"><a href="#cb296-3" aria-hidden="true" tabindex="-1"></a><span class="fu">author</span><span class="kw">:</span></span> +<span id="cb296-4"><a href="#cb296-4" aria-hidden="true" tabindex="-1"></a><span class="kw">-</span><span class="at"> Author One</span></span> +<span id="cb296-5"><a href="#cb296-5" aria-hidden="true" tabindex="-1"></a><span class="kw">-</span><span class="at"> Author Two</span></span> +<span id="cb296-6"><a href="#cb296-6" aria-hidden="true" tabindex="-1"></a><span class="fu">keywords</span><span class="kw">:</span><span class="at"> </span><span class="kw">[</span><span class="at">nothing</span><span class="kw">,</span><span class="at"> nothingness</span><span class="kw">]</span></span> +<span id="cb296-7"><a href="#cb296-7" aria-hidden="true" tabindex="-1"></a><span class="fu">abstract</span><span class="kw">: </span><span class="ch">|</span></span> +<span id="cb296-8"><a href="#cb296-8" aria-hidden="true" tabindex="-1"></a> This is the abstract.</span> +<span id="cb296-9"><a href="#cb296-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb296-10"><a href="#cb296-10" aria-hidden="true" tabindex="-1"></a> It consists of two paragraphs.</span> +<span id="cb296-11"><a href="#cb296-11" aria-hidden="true" tabindex="-1"></a><span class="pp">---</span></span></code></pre></div> </dd> </dl> </dd> @@ -4996,29 +5078,29 @@ for entering metadata in <abbr>yaml</abbr>.</p> 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="cb298"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb298-1"><a href="#cb298-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb298-2"><a href="#cb298-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span> -<span id="cb298-3"><a href="#cb298-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb298-4"><a href="#cb298-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> -<span id="cb298-5"><a href="#cb298-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> -<span id="cb298-6"><a href="#cb298-6" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb298-7"><a href="#cb298-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> -<span id="cb298-8"><a href="#cb298-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> -<span id="cb298-9"><a href="#cb298-9" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb298-10"><a href="#cb298-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb298-11"><a href="#cb298-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> -<span id="cb298-12"><a href="#cb298-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> -<span id="cb298-13"><a href="#cb298-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb298-14"><a href="#cb298-14" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb298-15"><a href="#cb298-15" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb298-16"><a href="#cb298-16" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb298-17"><a href="#cb298-17" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb298-18"><a href="#cb298-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb298-19"><a href="#cb298-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb297"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb297-1"><a href="#cb297-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb297-2"><a href="#cb297-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span> +<span id="cb297-3"><a href="#cb297-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb297-4"><a href="#cb297-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> +<span id="cb297-5"><a href="#cb297-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> +<span id="cb297-6"><a href="#cb297-6" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb297-7"><a href="#cb297-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> +<span id="cb297-8"><a href="#cb297-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> +<span id="cb297-9"><a href="#cb297-9" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb297-10"><a href="#cb297-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb297-11"><a href="#cb297-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> +<span id="cb297-12"><a href="#cb297-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> +<span id="cb297-13"><a href="#cb297-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb297-14"><a href="#cb297-14" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb297-15"><a href="#cb297-15" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb297-16"><a href="#cb297-16" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb297-17"><a href="#cb297-17" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb297-18"><a href="#cb297-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb297-19"><a href="#cb297-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb298"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb298-1"><a href="#cb298-1" aria-hidden="true" tabindex="-1"></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> @@ -5028,31 +5110,31 @@ contain the following text:</p> 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="cb300"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb300-1"><a href="#cb300-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb300-2"><a href="#cb300-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> -<span id="cb300-3"><a href="#cb300-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb300-4"><a href="#cb300-4" aria-hidden="true" tabindex="-1"></a> jekyllDataRenderers = {</span> -<span id="cb300-5"><a href="#cb300-5" aria-hidden="true" tabindex="-1"></a> name = {<span class="fu">\gdef\name</span>{#1}},</span> -<span id="cb300-6"><a href="#cb300-6" aria-hidden="true" tabindex="-1"></a> code = {<span class="fu">\gdef\age</span>{#1}},</span> -<span id="cb300-7"><a href="#cb300-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb300-8"><a href="#cb300-8" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb300-9"><a href="#cb300-9" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> -<span id="cb300-10"><a href="#cb300-10" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb300-11"><a href="#cb300-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb300-12"><a href="#cb300-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb300-13"><a href="#cb300-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb300-14"><a href="#cb300-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb300-15"><a href="#cb300-15" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb300-16"><a href="#cb300-16" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb300-17"><a href="#cb300-17" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb300-18"><a href="#cb300-18" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb300-19"><a href="#cb300-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb300-20"><a href="#cb300-20" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb300-21"><a href="#cb300-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb299"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb299-1"><a href="#cb299-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb299-2"><a href="#cb299-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> +<span id="cb299-3"><a href="#cb299-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb299-4"><a href="#cb299-4" aria-hidden="true" tabindex="-1"></a> jekyllDataRenderers = {</span> +<span id="cb299-5"><a href="#cb299-5" aria-hidden="true" tabindex="-1"></a> name = {<span class="fu">\gdef\name</span>{#1}},</span> +<span id="cb299-6"><a href="#cb299-6" aria-hidden="true" tabindex="-1"></a> code = {<span class="fu">\gdef\age</span>{#1}},</span> +<span id="cb299-7"><a href="#cb299-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb299-8"><a href="#cb299-8" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb299-9"><a href="#cb299-9" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> +<span id="cb299-10"><a href="#cb299-10" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb299-11"><a href="#cb299-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb299-12"><a href="#cb299-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb299-13"><a href="#cb299-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb299-14"><a href="#cb299-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb299-15"><a href="#cb299-15" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb299-16"><a href="#cb299-16" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb299-17"><a href="#cb299-17" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb299-18"><a href="#cb299-18" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb299-19"><a href="#cb299-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb299-20"><a href="#cb299-20" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb299-21"><a href="#cb299-21" aria-hidden="true" tabindex="-1"></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="cb301"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb301-1"><a href="#cb301-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb300"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb300-1"><a href="#cb300-1" aria-hidden="true" tabindex="-1"></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> @@ -5062,39 +5144,39 @@ contain the following text:</p> 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="cb302"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb302-1"><a href="#cb302-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb302-2"><a href="#cb302-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[jekyllData = yes]</span> -<span id="cb302-3"><a href="#cb302-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb302-4"><a href="#cb302-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> -<span id="cb302-5"><a href="#cb302-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> -<span id="cb302-6"><a href="#cb302-6" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb302-7"><a href="#cb302-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> -<span id="cb302-8"><a href="#cb302-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> -<span id="cb302-9"><a href="#cb302-9" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb302-10"><a href="#cb302-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb302-11"><a href="#cb302-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> -<span id="cb302-12"><a href="#cb302-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> -<span id="cb302-13"><a href="#cb302-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb302-14"><a href="#cb302-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb302-15"><a href="#cb302-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb302-16"><a href="#cb302-16" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb302-17"><a href="#cb302-17" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb302-18"><a href="#cb302-18" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb302-19"><a href="#cb302-19" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb302-20"><a href="#cb302-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb302-21"><a href="#cb302-21" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb302-22"><a href="#cb302-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb301-2"><a href="#cb301-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[jekyllData = yes]</span> +<span id="cb301-3"><a href="#cb301-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb301-4"><a href="#cb301-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> +<span id="cb301-5"><a href="#cb301-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> +<span id="cb301-6"><a href="#cb301-6" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb301-7"><a href="#cb301-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> +<span id="cb301-8"><a href="#cb301-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> +<span id="cb301-9"><a href="#cb301-9" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb301-10"><a href="#cb301-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb301-11"><a href="#cb301-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> +<span id="cb301-12"><a href="#cb301-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> +<span id="cb301-13"><a href="#cb301-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb301-14"><a href="#cb301-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb301-15"><a href="#cb301-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb301-16"><a href="#cb301-16" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb301-17"><a href="#cb301-17" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb301-18"><a href="#cb301-18" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb301-19"><a href="#cb301-19" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb301-20"><a href="#cb301-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb301-21"><a href="#cb301-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb301-22"><a href="#cb301-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb303"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb303-1"><a href="#cb303-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> -<h4 data-number="2.2.1.38" id="option-linkattributes"><span -class="header-section-number">2.2.1.38</span> Option +<h4 data-number="2.2.1.40" id="option-linkattributes"><span +class="header-section-number">2.2.1.40</span> Option <code>linkAttributes</code></h4> <dl> <dt><code>linkAttributes</code> (default value: <code>false</code>)</dt> @@ -5105,11 +5187,11 @@ class="header-section-number">2.2.1.38</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-link_attributes">link and image attribute syntax extension</a>:</p> -<div class="sourceCode" id="cb304"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb304-1"><a href="#cb304-1" aria-hidden="true" tabindex="-1"></a>An inline <span class="al">![image](foo.jpg)</span>{#id .class width=30 height=20px}</span> -<span id="cb304-2"><a href="#cb304-2" aria-hidden="true" tabindex="-1"></a>and a reference <span class="al">![image][ref]</span> with attributes.</span> -<span id="cb304-3"><a href="#cb304-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb304-4"><a href="#cb304-4" aria-hidden="true" tabindex="-1"></a><span class="ot">[ref]: </span>foo.jpg "optional title" {#id .class key=val key2=val2}</span></code></pre></div> +<div class="sourceCode" id="cb303"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb303-1"><a href="#cb303-1" aria-hidden="true" tabindex="-1"></a>An inline <span class="al">![image](foo.jpg)</span>{#id .class width=30 height=20px}</span> +<span id="cb303-2"><a href="#cb303-2" aria-hidden="true" tabindex="-1"></a>and a reference <span class="al">![image][ref]</span> with attributes.</span> +<span id="cb303-3"><a href="#cb303-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb303-4"><a href="#cb303-4" aria-hidden="true" tabindex="-1"></a><span class="ot">[ref]: </span>foo.jpg "optional title" {#id .class key=val key2=val2}</span></code></pre></div> </dd> </dl> </dd> @@ -5126,47 +5208,47 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb304-1"><a hr 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="cb305"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb305-1"><a href="#cb305-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb305-2"><a href="#cb305-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[linkAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb305-3"><a href="#cb305-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3, graphicx</span>}</span> -<span id="cb305-4"><a href="#cb305-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb305-5"><a href="#cb305-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb305-6"><a href="#cb305-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb305-7"><a href="#cb305-7" aria-hidden="true" tabindex="-1"></a> imageAttributeContextBegin = {</span> -<span id="cb305-8"><a href="#cb305-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> -<span id="cb305-9"><a href="#cb305-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb305-10"><a href="#cb305-10" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb305-11"><a href="#cb305-11" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {</span> -<span id="cb305-12"><a href="#cb305-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\setkeys</span></span> -<span id="cb305-13"><a href="#cb305-13" aria-hidden="true" tabindex="-1"></a> { Gin }</span> -<span id="cb305-14"><a href="#cb305-14" aria-hidden="true" tabindex="-1"></a> { { ##1 } = { ##2 } }</span> -<span id="cb305-15"><a href="#cb305-15" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb305-16"><a href="#cb305-16" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb305-17"><a href="#cb305-17" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb305-18"><a href="#cb305-18" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb305-19"><a href="#cb305-19" aria-hidden="true" tabindex="-1"></a> imageAttributeContextEnd = {</span> -<span id="cb305-20"><a href="#cb305-20" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb305-21"><a href="#cb305-21" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb305-22"><a href="#cb305-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb305-23"><a href="#cb305-23" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb305-24"><a href="#cb305-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb305-25"><a href="#cb305-25" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb305-26"><a href="#cb305-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb305-27"><a href="#cb305-27" aria-hidden="true" tabindex="-1"></a>Here is an example image:</span> -<span id="cb305-28"><a href="#cb305-28" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb305-29"><a href="#cb305-29" aria-hidden="true" tabindex="-1"></a> ![example image](example-image){width=5cm height=4cm}</span> -<span id="cb305-30"><a href="#cb305-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb305-31"><a href="#cb305-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb304"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb304-1"><a href="#cb304-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb304-2"><a href="#cb304-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[linkAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb304-3"><a href="#cb304-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3, graphicx</span>}</span> +<span id="cb304-4"><a href="#cb304-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb304-5"><a href="#cb304-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb304-6"><a href="#cb304-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb304-7"><a href="#cb304-7" aria-hidden="true" tabindex="-1"></a> imageAttributeContextBegin = {</span> +<span id="cb304-8"><a href="#cb304-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> +<span id="cb304-9"><a href="#cb304-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb304-10"><a href="#cb304-10" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb304-11"><a href="#cb304-11" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {</span> +<span id="cb304-12"><a href="#cb304-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\setkeys</span></span> +<span id="cb304-13"><a href="#cb304-13" aria-hidden="true" tabindex="-1"></a> { Gin }</span> +<span id="cb304-14"><a href="#cb304-14" aria-hidden="true" tabindex="-1"></a> { { ##1 } = { ##2 } }</span> +<span id="cb304-15"><a href="#cb304-15" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb304-16"><a href="#cb304-16" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb304-17"><a href="#cb304-17" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb304-18"><a href="#cb304-18" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb304-19"><a href="#cb304-19" aria-hidden="true" tabindex="-1"></a> imageAttributeContextEnd = {</span> +<span id="cb304-20"><a href="#cb304-20" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb304-21"><a href="#cb304-21" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb304-22"><a href="#cb304-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb304-23"><a href="#cb304-23" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb304-24"><a href="#cb304-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb304-25"><a href="#cb304-25" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb304-26"><a href="#cb304-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb304-27"><a href="#cb304-27" aria-hidden="true" tabindex="-1"></a>Here is an example image:</span> +<span id="cb304-28"><a href="#cb304-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb304-29"><a href="#cb304-29" aria-hidden="true" tabindex="-1"></a> ![example image](example-image){width=5cm height=4cm}</span> +<span id="cb304-30"><a href="#cb304-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb304-31"><a href="#cb304-31" aria-hidden="true" tabindex="-1"></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="cb306"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb306-1"><a href="#cb306-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb305"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb305-1"><a href="#cb305-1" aria-hidden="true" tabindex="-1"></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 an example image (from <a href="https://ctan.org/pkg/mwe" title="mwe â Packages and image files for MWEs">Martin Scharrerâs mwe package</a>) displayed at size 5cm Ă 4cm.</p> -<h4 data-number="2.2.1.39" id="option-lineblocks"><span -class="header-section-number">2.2.1.39</span> Option +<h4 data-number="2.2.1.41" id="option-lineblocks"><span +class="header-section-number">2.2.1.41</span> Option <code>lineBlocks</code></h4> <dl> <dt><code>lineBlocks</code> (default value: <code>false</code>)</dt> @@ -5177,12 +5259,12 @@ class="header-section-number">2.2.1.39</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-line_blocks">line block syntax extension</a>:</p> -<div class="sourceCode" id="cb307"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb307-1"><a href="#cb307-1" aria-hidden="true" tabindex="-1"></a>| this is a line block that</span> -<span id="cb307-2"><a href="#cb307-2" aria-hidden="true" tabindex="-1"></a>| spans multiple</span> -<span id="cb307-3"><a href="#cb307-3" aria-hidden="true" tabindex="-1"></a>| even</span> -<span id="cb307-4"><a href="#cb307-4" aria-hidden="true" tabindex="-1"></a> discontinuous</span> -<span id="cb307-5"><a href="#cb307-5" aria-hidden="true" tabindex="-1"></a>| lines</span></code></pre></div> +<div class="sourceCode" id="cb306"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb306-1"><a href="#cb306-1" aria-hidden="true" tabindex="-1"></a>| this is a line block that</span> +<span id="cb306-2"><a href="#cb306-2" aria-hidden="true" tabindex="-1"></a>| spans multiple</span> +<span id="cb306-3"><a href="#cb306-3" aria-hidden="true" tabindex="-1"></a>| even</span> +<span id="cb306-4"><a href="#cb306-4" aria-hidden="true" tabindex="-1"></a> discontinuous</span> +<span id="cb306-5"><a href="#cb306-5" aria-hidden="true" tabindex="-1"></a>| lines</span></code></pre></div> </dd> </dl> </dd> @@ -5199,19 +5281,19 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb307-1"><a hr 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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb308-2"><a href="#cb308-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionLineBlocks</span>{true}</span> -<span id="cb308-3"><a href="#cb308-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb308-4"><a href="#cb308-4" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> -<span id="cb308-5"><a href="#cb308-5" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> -<span id="cb308-6"><a href="#cb308-6" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> -<span id="cb308-7"><a href="#cb308-7" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> -<span id="cb308-8"><a href="#cb308-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb308-9"><a href="#cb308-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb307"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb307-1"><a href="#cb307-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb307-2"><a href="#cb307-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionLineBlocks</span>{true}</span> +<span id="cb307-3"><a href="#cb307-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb307-4"><a href="#cb307-4" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> +<span id="cb307-5"><a href="#cb307-5" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> +<span id="cb307-6"><a href="#cb307-6" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> +<span id="cb307-7"><a href="#cb307-7" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> +<span id="cb307-8"><a href="#cb307-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb307-9"><a href="#cb307-9" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb308"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb308-1"><a href="#cb308-1" aria-hidden="true" tabindex="-1"></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> @@ -5224,20 +5306,20 @@ Tread softly because you tread on my dreams.</div> 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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb310-2"><a href="#cb310-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[lineBlocks]{<span class="ex">markdown</span>}</span> -<span id="cb310-3"><a href="#cb310-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb310-4"><a href="#cb310-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb310-5"><a href="#cb310-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> -<span id="cb310-6"><a href="#cb310-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> -<span id="cb310-7"><a href="#cb310-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> -<span id="cb310-8"><a href="#cb310-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> -<span id="cb310-9"><a href="#cb310-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb310-10"><a href="#cb310-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb309"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb309-1"><a href="#cb309-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb309-2"><a href="#cb309-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[lineBlocks]{<span class="ex">markdown</span>}</span> +<span id="cb309-3"><a href="#cb309-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb309-4"><a href="#cb309-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb309-5"><a href="#cb309-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> +<span id="cb309-6"><a href="#cb309-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> +<span id="cb309-7"><a href="#cb309-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> +<span id="cb309-8"><a href="#cb309-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> +<span id="cb309-9"><a href="#cb309-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb309-10"><a href="#cb309-10" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb310"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb310-1"><a href="#cb310-1" aria-hidden="true" tabindex="-1"></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> @@ -5250,20 +5332,20 @@ Tread softly because you tread on my dreams.</div> 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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb312-2"><a href="#cb312-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[lineBlocks = yes]</span> -<span id="cb312-3"><a href="#cb312-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb312-4"><a href="#cb312-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb312-5"><a href="#cb312-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> -<span id="cb312-6"><a href="#cb312-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> -<span id="cb312-7"><a href="#cb312-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> -<span id="cb312-8"><a href="#cb312-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> -<span id="cb312-9"><a href="#cb312-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb312-10"><a href="#cb312-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb311-2"><a href="#cb311-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[lineBlocks = yes]</span> +<span id="cb311-3"><a href="#cb311-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb311-4"><a href="#cb311-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb311-5"><a href="#cb311-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> +<span id="cb311-6"><a href="#cb311-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> +<span id="cb311-7"><a href="#cb311-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> +<span id="cb311-8"><a href="#cb311-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> +<span id="cb311-9"><a href="#cb311-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb311-10"><a href="#cb311-10" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -5272,8 +5354,8 @@ But I, being poor, have only my dreams;<br /> I have spread my dreams under your feet;<br /> Tread softly because you tread on my dreams.</div> </blockquote> -<h4 data-number="2.2.1.40" id="option-mark"><span -class="header-section-number">2.2.1.40</span> Option +<h4 data-number="2.2.1.42" id="option-mark"><span +class="header-section-number">2.2.1.42</span> Option <code>mark</code></h4> <dl> <dt><code>mark</code> (default value: <code>false</code>)</dt> @@ -5284,8 +5366,8 @@ class="header-section-number">2.2.1.40</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-mark">mark syntax extension</a>:</p> -<div class="sourceCode" id="cb314"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb314-1"><a href="#cb314-1" aria-hidden="true" tabindex="-1"></a>This ==is highlighted text.==</span></code></pre></div> +<div class="sourceCode" id="cb313"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb313-1"><a href="#cb313-1" aria-hidden="true" tabindex="-1"></a>This ==is highlighted text.==</span></code></pre></div> </dd> </dl> </dd> @@ -5302,26 +5384,26 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb314-1"><a hr 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="cb315"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb315-1"><a href="#cb315-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb315-2"><a href="#cb315-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[mark]{<span class="ex">markdown</span>}</span> -<span id="cb315-3"><a href="#cb315-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb315-4"><a href="#cb315-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb315-5"><a href="#cb315-5" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb315-6"><a href="#cb315-6" aria-hidden="true" tabindex="-1"></a>This ==is highlighted text.==</span> -<span id="cb315-7"><a href="#cb315-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb315-8"><a href="#cb315-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb315-9"><a href="#cb315-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb314"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb314-1"><a href="#cb314-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb314-2"><a href="#cb314-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[mark]{<span class="ex">markdown</span>}</span> +<span id="cb314-3"><a href="#cb314-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb314-4"><a href="#cb314-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb314-5"><a href="#cb314-5" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb314-6"><a href="#cb314-6" aria-hidden="true" tabindex="-1"></a>This ==is highlighted text.==</span> +<span id="cb314-7"><a href="#cb314-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb314-8"><a href="#cb314-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb314-9"><a href="#cb314-9" aria-hidden="true" tabindex="-1"></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="cb316"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb316-1"><a href="#cb316-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb315"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb315-1"><a href="#cb315-1" aria-hidden="true" tabindex="-1"></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 <mark>is highlighted text.</mark></p> </blockquote> -<h4 data-number="2.2.1.41" id="option-notes"><span -class="header-section-number">2.2.1.41</span> Option +<h4 data-number="2.2.1.43" id="option-notes"><span +class="header-section-number">2.2.1.43</span> Option <code>notes</code></h4> <dl> <dt><code>notes</code> (default value: <code>false</code>)</dt> @@ -5332,24 +5414,24 @@ class="header-section-number">2.2.1.41</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-footnotes">note syntax extension</a>:</p> -<div class="sourceCode" id="cb317"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb317-1"><a href="#cb317-1" aria-hidden="true" tabindex="-1"></a>Here is a note reference,<span class="ot">[^1]</span> and another.<span class="ot">[^longnote]</span></span> -<span id="cb317-2"><a href="#cb317-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb317-3"><a href="#cb317-3" aria-hidden="true" tabindex="-1"></a><span class="ot">[^1]: </span>Here is the note.</span> -<span id="cb317-4"><a href="#cb317-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb317-5"><a href="#cb317-5" aria-hidden="true" tabindex="-1"></a><span class="ot">[^longnote]: </span>Here's one with multiple blocks.</span> -<span id="cb317-6"><a href="#cb317-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb317-7"><a href="#cb317-7" aria-hidden="true" tabindex="-1"></a><span class="in"> Subsequent paragraphs are indented to show that they</span></span> -<span id="cb317-8"><a href="#cb317-8" aria-hidden="true" tabindex="-1"></a>belong to the previous note.</span> -<span id="cb317-9"><a href="#cb317-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb317-10"><a href="#cb317-10" aria-hidden="true" tabindex="-1"></a><span class="in"> { some.code }</span></span> -<span id="cb317-11"><a href="#cb317-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb317-12"><a href="#cb317-12" aria-hidden="true" tabindex="-1"></a><span class="in"> The whole paragraph can be indented, or just the</span></span> -<span id="cb317-13"><a href="#cb317-13" aria-hidden="true" tabindex="-1"></a><span class="in"> first line. In this way, multi-paragraph notes</span></span> -<span id="cb317-14"><a href="#cb317-14" aria-hidden="true" tabindex="-1"></a><span class="in"> work like multi-paragraph list items.</span></span> -<span id="cb317-15"><a href="#cb317-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb317-16"><a href="#cb317-16" aria-hidden="true" tabindex="-1"></a>This paragraph won't be part of the note, because it</span> -<span id="cb317-17"><a href="#cb317-17" aria-hidden="true" tabindex="-1"></a>isn't indented.</span></code></pre></div> +<div class="sourceCode" id="cb316"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb316-1"><a href="#cb316-1" aria-hidden="true" tabindex="-1"></a>Here is a note reference,<span class="ot">[^1]</span> and another.<span class="ot">[^longnote]</span></span> +<span id="cb316-2"><a href="#cb316-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb316-3"><a href="#cb316-3" aria-hidden="true" tabindex="-1"></a><span class="ot">[^1]: </span>Here is the note.</span> +<span id="cb316-4"><a href="#cb316-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb316-5"><a href="#cb316-5" aria-hidden="true" tabindex="-1"></a><span class="ot">[^longnote]: </span>Here's one with multiple blocks.</span> +<span id="cb316-6"><a href="#cb316-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb316-7"><a href="#cb316-7" aria-hidden="true" tabindex="-1"></a><span class="in"> Subsequent paragraphs are indented to show that they</span></span> +<span id="cb316-8"><a href="#cb316-8" aria-hidden="true" tabindex="-1"></a>belong to the previous note.</span> +<span id="cb316-9"><a href="#cb316-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb316-10"><a href="#cb316-10" aria-hidden="true" tabindex="-1"></a><span class="in"> { some.code }</span></span> +<span id="cb316-11"><a href="#cb316-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb316-12"><a href="#cb316-12" aria-hidden="true" tabindex="-1"></a><span class="in"> The whole paragraph can be indented, or just the</span></span> +<span id="cb316-13"><a href="#cb316-13" aria-hidden="true" tabindex="-1"></a><span class="in"> first line. In this way, multi-paragraph notes</span></span> +<span id="cb316-14"><a href="#cb316-14" aria-hidden="true" tabindex="-1"></a><span class="in"> work like multi-paragraph list items.</span></span> +<span id="cb316-15"><a href="#cb316-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb316-16"><a href="#cb316-16" aria-hidden="true" tabindex="-1"></a>This paragraph won't be part of the note, because it</span> +<span id="cb316-17"><a href="#cb316-17" aria-hidden="true" tabindex="-1"></a>isn't indented.</span></code></pre></div> </dd> </dl> </dd> @@ -5366,40 +5448,44 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb317-1"><a hr 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="cb317"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb317-1"><a href="#cb317-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb317-2"><a href="#cb317-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[notes]{<span class="ex">markdown</span>}</span> +<span id="cb317-3"><a href="#cb317-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb317-4"><a href="#cb317-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb317-5"><a href="#cb317-5" aria-hidden="true" tabindex="-1"></a>Here is a note reference,[^1] and another.[^longnote]</span> +<span id="cb317-6"><a href="#cb317-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb317-7"><a href="#cb317-7" aria-hidden="true" tabindex="-1"></a>[^1]: Here is the note.</span> +<span id="cb317-8"><a href="#cb317-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb317-9"><a href="#cb317-9" aria-hidden="true" tabindex="-1"></a>[^longnote]: Here's one with multiple blocks.</span> +<span id="cb317-10"><a href="#cb317-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb317-11"><a href="#cb317-11" aria-hidden="true" tabindex="-1"></a> Subsequent paragraphs are indented to show that they</span> +<span id="cb317-12"><a href="#cb317-12" aria-hidden="true" tabindex="-1"></a>belong to the previous note.</span> +<span id="cb317-13"><a href="#cb317-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb317-14"><a href="#cb317-14" aria-hidden="true" tabindex="-1"></a> { some.code }</span> +<span id="cb317-15"><a href="#cb317-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb317-16"><a href="#cb317-16" aria-hidden="true" tabindex="-1"></a> The whole paragraph can be indented, or just the</span> +<span id="cb317-17"><a href="#cb317-17" aria-hidden="true" tabindex="-1"></a> first line. In this way, multi-paragraph notes</span> +<span id="cb317-18"><a href="#cb317-18" aria-hidden="true" tabindex="-1"></a> work like multi-paragraph list items.</span> +<span id="cb317-19"><a href="#cb317-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb317-20"><a href="#cb317-20" aria-hidden="true" tabindex="-1"></a>This paragraph won't be part of the note, because it</span> +<span id="cb317-21"><a href="#cb317-21" aria-hidden="true" tabindex="-1"></a>isn't indented.</span> +<span id="cb317-22"><a href="#cb317-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb317-23"><a href="#cb317-23" aria-hidden="true" tabindex="-1"></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 tex"><code class="sourceCode latex"><span id="cb318-1"><a href="#cb318-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb318-2"><a href="#cb318-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[notes]{<span class="ex">markdown</span>}</span> -<span id="cb318-3"><a href="#cb318-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb318-4"><a href="#cb318-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb318-5"><a href="#cb318-5" aria-hidden="true" tabindex="-1"></a>Here is a note reference,[^1] and another.[^longnote]</span> -<span id="cb318-6"><a href="#cb318-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb318-7"><a href="#cb318-7" aria-hidden="true" tabindex="-1"></a>[^1]: Here is the note.</span> -<span id="cb318-8"><a href="#cb318-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb318-9"><a href="#cb318-9" aria-hidden="true" tabindex="-1"></a>[^longnote]: Here's one with multiple blocks.</span> -<span id="cb318-10"><a href="#cb318-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb318-11"><a href="#cb318-11" aria-hidden="true" tabindex="-1"></a> Subsequent paragraphs are indented to show that they</span> -<span id="cb318-12"><a href="#cb318-12" aria-hidden="true" tabindex="-1"></a>belong to the previous note.</span> -<span id="cb318-13"><a href="#cb318-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb318-14"><a href="#cb318-14" aria-hidden="true" tabindex="-1"></a> { some.code }</span> -<span id="cb318-15"><a href="#cb318-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb318-16"><a href="#cb318-16" aria-hidden="true" tabindex="-1"></a> The whole paragraph can be indented, or just the</span> -<span id="cb318-17"><a href="#cb318-17" aria-hidden="true" tabindex="-1"></a> first line. In this way, multi-paragraph notes</span> -<span id="cb318-18"><a href="#cb318-18" aria-hidden="true" tabindex="-1"></a> work like multi-paragraph list items.</span> -<span id="cb318-19"><a href="#cb318-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb318-20"><a href="#cb318-20" aria-hidden="true" tabindex="-1"></a>This paragraph won't be part of the note, because it</span> -<span id="cb318-21"><a href="#cb318-21" aria-hidden="true" tabindex="-1"></a>isn't indented.</span> -<span id="cb318-22"><a href="#cb318-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb318-23"><a href="#cb318-23" aria-hidden="true" tabindex="-1"></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="cb319"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb319-1"><a href="#cb319-1" aria-hidden="true" tabindex="-1"></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>Here is a note reference,<a href="#fn3" class="footnote-ref" -id="fnref3" role="doc-noteref"><sup>3</sup></a> and another.<a -href="#fn4" class="footnote-ref" id="fnref4" -role="doc-noteref"><sup>4</sup></a></p> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb318-1"><a href="#cb318-1" aria-hidden="true" tabindex="-1"></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>Here is a note reference,[^1] and another.[^longnote]</p> +<pre><code>Subsequent paragraphs are indented to show that they</code></pre> +<p>belong to the previous note.</p> +<pre><code> { some.code } + +The whole paragraph can be indented, or just the +first line. In this way, multi-paragraph notes +work like multi-paragraph list items.</code></pre> <p>This paragraph wonât be part of the note, because it isnât indented.</p> </blockquote> @@ -5437,15 +5523,19 @@ class="sourceCode sh"><code class="sourceCode bash"><span id="cb322-1"><a href=" <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> -<p>Here is a note reference,<a href="#fn5" class="footnote-ref" -id="fnref5" role="doc-noteref"><sup>5</sup></a> and another.<a -href="#fn6" class="footnote-ref" id="fnref6" -role="doc-noteref"><sup>6</sup></a></p> +<p>Here is a note reference,[^1] and another.[^longnote]</p> +<pre><code>Subsequent paragraphs are indented to show that they</code></pre> +<p>belong to the previous note.</p> +<pre><code> { some.code } + +The whole paragraph can be indented, or just the +first line. In this way, multi-paragraph notes +work like multi-paragraph list items.</code></pre> <p>This paragraph wonât be part of the note, because it isnât indented.</p> </blockquote> -<h4 data-number="2.2.1.42" id="pipe-tables"><span -class="header-section-number">2.2.1.42</span> Option +<h4 data-number="2.2.1.44" id="pipe-tables"><span +class="header-section-number">2.2.1.44</span> Option <code>pipeTables</code></h4> <dl> <dt><code>pipeTables</code> (default value: <code>false</code>)</dt> @@ -5454,12 +5544,12 @@ class="header-section-number">2.2.1.42</span> Option <dt>true</dt> <dd> <p>Enable the <abbr>PHP</abbr> Markdown pipe table syntax extension:</p> -<div class="sourceCode" id="cb324"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb324-1"><a href="#cb324-1" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb324-2"><a href="#cb324-2" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb324-3"><a href="#cb324-3" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb324-4"><a href="#cb324-4" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb324-5"><a href="#cb324-5" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span></code></pre></div> +<div class="sourceCode" id="cb325"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb325-1"><a href="#cb325-1" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb325-2"><a href="#cb325-2" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb325-3"><a href="#cb325-3" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb325-4"><a href="#cb325-4" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb325-5"><a href="#cb325-5" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span></code></pre></div> </dd> </dl> </dd> @@ -5477,21 +5567,21 @@ extension.</p> 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="cb325"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb325-1"><a href="#cb325-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb325-2"><a href="#cb325-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[pipeTables]{<span class="ex">markdown</span>}</span> -<span id="cb325-3"><a href="#cb325-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb325-4"><a href="#cb325-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb325-5"><a href="#cb325-5" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb325-6"><a href="#cb325-6" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb325-7"><a href="#cb325-7" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb325-8"><a href="#cb325-8" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb325-9"><a href="#cb325-9" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb325-10"><a href="#cb325-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb325-11"><a href="#cb325-11" aria-hidden="true" tabindex="-1"></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="cb326"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb326-1"><a href="#cb326-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb326-1"><a href="#cb326-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb326-2"><a href="#cb326-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[pipeTables]{<span class="ex">markdown</span>}</span> +<span id="cb326-3"><a href="#cb326-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb326-4"><a href="#cb326-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb326-5"><a href="#cb326-5" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb326-6"><a href="#cb326-6" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb326-7"><a href="#cb326-7" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb326-8"><a href="#cb326-8" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb326-9"><a href="#cb326-9" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb326-10"><a href="#cb326-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb326-11"><a href="#cb326-11" aria-hidden="true" tabindex="-1"></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="cb327"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb327-1"><a href="#cb327-1" aria-hidden="true" tabindex="-1"></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> @@ -5530,21 +5620,21 @@ contain the following text:</p> 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="cb327"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb327-1"><a href="#cb327-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb327-2"><a href="#cb327-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[pipeTables = yes]</span> -<span id="cb327-3"><a href="#cb327-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb327-4"><a href="#cb327-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb327-5"><a href="#cb327-5" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb327-6"><a href="#cb327-6" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb327-7"><a href="#cb327-7" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb327-8"><a href="#cb327-8" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb327-9"><a href="#cb327-9" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb327-10"><a href="#cb327-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb327-11"><a href="#cb327-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb328-1"><a href="#cb328-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb328-2"><a href="#cb328-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[pipeTables = yes]</span> +<span id="cb328-3"><a href="#cb328-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb328-4"><a href="#cb328-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb328-5"><a href="#cb328-5" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb328-6"><a href="#cb328-6" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb328-7"><a href="#cb328-7" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb328-8"><a href="#cb328-8" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb328-9"><a href="#cb328-9" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb328-10"><a href="#cb328-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb328-11"><a href="#cb328-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb329"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb329-1"><a href="#cb329-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -5579,8 +5669,8 @@ contain the following text:</p> </tbody> </table> </blockquote> -<h4 data-number="2.2.1.43" id="option-preservetabs"><span -class="header-section-number">2.2.1.43</span> Option +<h4 data-number="2.2.1.45" id="option-preservetabs"><span +class="header-section-number">2.2.1.45</span> Option <code>preserveTabs</code></h4> <dl> <dt><code>preserveTabs</code> (default value: <code>true</code>)</dt> @@ -5601,8 +5691,8 @@ class="header-section-number">2.2.1.43</span> Option </dl> </dd> </dl> -<h4 data-number="2.2.1.44" id="option-rawattribute"><span -class="header-section-number">2.2.1.44</span> Option +<h4 data-number="2.2.1.46" id="option-rawattribute"><span +class="header-section-number">2.2.1.46</span> Option <code>rawAttribute</code></h4> <dl> <dt><code>rawAttribute</code> (default value: <code>false</code>)</dt> @@ -5613,20 +5703,20 @@ class="header-section-number">2.2.1.44</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-raw_attribute">raw attribute syntax extension</a>:</p> -<div class="sourceCode" id="cb329"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb329-1"><a href="#cb329-1" aria-hidden="true" tabindex="-1"></a><span class="in">`$H_2 O$`</span>{=tex} is a liquid.</span></code></pre></div> +<div class="sourceCode" id="cb330"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb330-1"><a href="#cb330-1" aria-hidden="true" tabindex="-1"></a><span class="in">`$H_2 O$`</span>{=tex} is a liquid.</span></code></pre></div> <p>To enable raw blocks, the <strong><code>fencedCode</code></strong> option must also be enabled:</p> -<div class="sourceCode" id="cb330"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb330-1"><a href="#cb330-1" aria-hidden="true" tabindex="-1"></a><span class="an">Here is a mathematical formula:</span></span> -<span id="cb330-2"><a href="#cb330-2" aria-hidden="true" tabindex="-1"></a><span class="in">``` {=tex}</span></span> -<span id="cb330-3"><a href="#cb330-3" aria-hidden="true" tabindex="-1"></a><span class="in">\[distance[i] =</span></span> -<span id="cb330-4"><a href="#cb330-4" aria-hidden="true" tabindex="-1"></a><span class="in"> \begin{dcases}</span></span> -<span id="cb330-5"><a href="#cb330-5" aria-hidden="true" tabindex="-1"></a><span class="in"> a & b \\</span></span> -<span id="cb330-6"><a href="#cb330-6" aria-hidden="true" tabindex="-1"></a><span class="in"> c & d</span></span> -<span id="cb330-7"><a href="#cb330-7" aria-hidden="true" tabindex="-1"></a><span class="in"> \end{dcases}</span></span> -<span id="cb330-8"><a href="#cb330-8" aria-hidden="true" tabindex="-1"></a><span class="in">\]</span></span> -<span id="cb330-9"><a href="#cb330-9" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code></pre></div> +<div class="sourceCode" id="cb331"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb331-1"><a href="#cb331-1" aria-hidden="true" tabindex="-1"></a><span class="an">Here is a mathematical formula:</span></span> +<span id="cb331-2"><a href="#cb331-2" aria-hidden="true" tabindex="-1"></a><span class="in">``` {=tex}</span></span> +<span id="cb331-3"><a href="#cb331-3" aria-hidden="true" tabindex="-1"></a><span class="in">\[distance[i] =</span></span> +<span id="cb331-4"><a href="#cb331-4" aria-hidden="true" tabindex="-1"></a><span class="in"> \begin{dcases}</span></span> +<span id="cb331-5"><a href="#cb331-5" aria-hidden="true" tabindex="-1"></a><span class="in"> a & b \\</span></span> +<span id="cb331-6"><a href="#cb331-6" aria-hidden="true" tabindex="-1"></a><span class="in"> c & d</span></span> +<span id="cb331-7"><a href="#cb331-7" aria-hidden="true" tabindex="-1"></a><span class="in"> \end{dcases}</span></span> +<span id="cb331-8"><a href="#cb331-8" aria-hidden="true" tabindex="-1"></a><span class="in">\]</span></span> +<span id="cb331-9"><a href="#cb331-9" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code></pre></div> <p>The <strong><code>rawAttribute</code></strong> option is a good alternative to the <strong><code>hybrid</code></strong> option. Unlike the <strong><code>hybrid</code></strong> option, which affects the @@ -5648,29 +5738,29 @@ allows you to isolate the parts of your documents that use TeX:</p> 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="cb331"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb331-1"><a href="#cb331-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb331-2"><a href="#cb331-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[rawAttribute, fencedCode]{<span class="ex">markdown</span>}</span> -<span id="cb331-3"><a href="#cb331-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> -<span id="cb331-4"><a href="#cb331-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb331-5"><a href="#cb331-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb331-6"><a href="#cb331-6" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$H_2 O$</span>`{=tex} is a liquid.</span> -<span id="cb331-7"><a href="#cb331-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb331-8"><a href="#cb331-8" aria-hidden="true" tabindex="-1"></a>``` {=html}</span> -<span id="cb331-9"><a href="#cb331-9" aria-hidden="true" tabindex="-1"></a><p>Here is some HTML content that will be ignored.</p></span> -<span id="cb331-10"><a href="#cb331-10" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb331-11"><a href="#cb331-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb331-12"><a href="#cb331-12" aria-hidden="true" tabindex="-1"></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="cb332"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb332-1"><a href="#cb332-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb332-1"><a href="#cb332-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb332-2"><a href="#cb332-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[rawAttribute, fencedCode]{<span class="ex">markdown</span>}</span> +<span id="cb332-3"><a href="#cb332-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> +<span id="cb332-4"><a href="#cb332-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb332-5"><a href="#cb332-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb332-6"><a href="#cb332-6" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$H_2 O$</span>`{=tex} is a liquid.</span> +<span id="cb332-7"><a href="#cb332-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb332-8"><a href="#cb332-8" aria-hidden="true" tabindex="-1"></a>``` {=html}</span> +<span id="cb332-9"><a href="#cb332-9" aria-hidden="true" tabindex="-1"></a><p>Here is some HTML content that will be ignored.</p></span> +<span id="cb332-10"><a href="#cb332-10" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb332-11"><a href="#cb332-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb332-12"><a href="#cb332-12" aria-hidden="true" tabindex="-1"></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="cb333"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb333-1"><a href="#cb333-1" aria-hidden="true" tabindex="-1"></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>H<sub>2</sub>O is a liquid.</p> </blockquote> -<h4 data-number="2.2.1.45" id="option-relativereferences"><span -class="header-section-number">2.2.1.45</span> Option +<h4 data-number="2.2.1.47" id="option-relativereferences"><span +class="header-section-number">2.2.1.47</span> Option <code>relativeReferences</code></h4> <dl> <dt><code>relativeReferences</code> (default value: @@ -5682,14 +5772,14 @@ class="header-section-number">2.2.1.45</span> Option <p>Enable <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">relative references</a> in autolinks:</p> -<div class="sourceCode" id="cb333"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb333-1"><a href="#cb333-1" aria-hidden="true" tabindex="-1"></a>I conclude in Section <#conclusion>.</span> -<span id="cb333-2"><a href="#cb333-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb333-3"><a href="#cb333-3" aria-hidden="true" tabindex="-1"></a>Conclusion {#conclusion}</span> -<span id="cb333-4"><a href="#cb333-4" aria-hidden="true" tabindex="-1"></a><span class="fu">==========</span></span> -<span id="cb333-5"><a href="#cb333-5" aria-hidden="true" tabindex="-1"></a>In this paper, we have discovered that most</span> -<span id="cb333-6"><a href="#cb333-6" aria-hidden="true" tabindex="-1"></a>grandmas would rather eat dinner with their</span> -<span id="cb333-7"><a href="#cb333-7" aria-hidden="true" tabindex="-1"></a>grandchildren than get eaten. Begone, wolf!</span></code></pre></div> +<div class="sourceCode" id="cb334"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb334-1"><a href="#cb334-1" aria-hidden="true" tabindex="-1"></a>I conclude in Section <#conclusion>.</span> +<span id="cb334-2"><a href="#cb334-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb334-3"><a href="#cb334-3" aria-hidden="true" tabindex="-1"></a>Conclusion {#conclusion}</span> +<span id="cb334-4"><a href="#cb334-4" aria-hidden="true" tabindex="-1"></a><span class="fu">==========</span></span> +<span id="cb334-5"><a href="#cb334-5" aria-hidden="true" tabindex="-1"></a>In this paper, we have discovered that most</span> +<span id="cb334-6"><a href="#cb334-6" aria-hidden="true" tabindex="-1"></a>grandmas would rather eat dinner with their</span> +<span id="cb334-7"><a href="#cb334-7" aria-hidden="true" tabindex="-1"></a>grandchildren than get eaten. Begone, wolf!</span></code></pre></div> </dd> </dl> </dd> @@ -5706,26 +5796,26 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb333-1"><a hr 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="cb334"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb334-1"><a href="#cb334-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb334-2"><a href="#cb334-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes, relativeReferences]{<span class="ex">markdown</span>}</span> -<span id="cb334-3"><a href="#cb334-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb334-4"><a href="#cb334-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb334-5"><a href="#cb334-5" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb334-6"><a href="#cb334-6" aria-hidden="true" tabindex="-1"></a>I conclude in Section <#conclusion>.</span> -<span id="cb334-7"><a href="#cb334-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb334-8"><a href="#cb334-8" aria-hidden="true" tabindex="-1"></a>Conclusion {#conclusion}</span> -<span id="cb334-9"><a href="#cb334-9" aria-hidden="true" tabindex="-1"></a>==========</span> -<span id="cb334-10"><a href="#cb334-10" aria-hidden="true" tabindex="-1"></a>In this paper, we have discovered that most</span> -<span id="cb334-11"><a href="#cb334-11" aria-hidden="true" tabindex="-1"></a>grandmas would rather eat dinner with their</span> -<span id="cb334-12"><a href="#cb334-12" aria-hidden="true" tabindex="-1"></a>grandchildren than get eaten. Begone, wolf!</span> -<span id="cb334-13"><a href="#cb334-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb334-14"><a href="#cb334-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb334-15"><a href="#cb334-15" aria-hidden="true" tabindex="-1"></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="cb335"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb335-1"><a href="#cb335-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb335-2"><a href="#cb335-2" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb335-1"><a href="#cb335-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb335-2"><a href="#cb335-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes, relativeReferences]{<span class="ex">markdown</span>}</span> +<span id="cb335-3"><a href="#cb335-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb335-4"><a href="#cb335-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb335-5"><a href="#cb335-5" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb335-6"><a href="#cb335-6" aria-hidden="true" tabindex="-1"></a>I conclude in Section <#conclusion>.</span> +<span id="cb335-7"><a href="#cb335-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb335-8"><a href="#cb335-8" aria-hidden="true" tabindex="-1"></a>Conclusion {#conclusion}</span> +<span id="cb335-9"><a href="#cb335-9" aria-hidden="true" tabindex="-1"></a>==========</span> +<span id="cb335-10"><a href="#cb335-10" aria-hidden="true" tabindex="-1"></a>In this paper, we have discovered that most</span> +<span id="cb335-11"><a href="#cb335-11" aria-hidden="true" tabindex="-1"></a>grandmas would rather eat dinner with their</span> +<span id="cb335-12"><a href="#cb335-12" aria-hidden="true" tabindex="-1"></a>grandchildren than get eaten. Begone, wolf!</span> +<span id="cb335-13"><a href="#cb335-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb335-14"><a href="#cb335-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb335-15"><a href="#cb335-15" aria-hidden="true" tabindex="-1"></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="cb336"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb336-1"><a href="#cb336-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb336-2"><a href="#cb336-2" aria-hidden="true" tabindex="-1"></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> @@ -5734,8 +5824,8 @@ contain the following text:</p> <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.46" id="option-shiftheadings"><span -class="header-section-number">2.2.1.46</span> Option +<h4 data-number="2.2.1.48" id="option-shiftheadings"><span +class="header-section-number">2.2.1.48</span> Option <code>shiftHeadings</code></h4> <dl> <dt><code>shiftHeadings</code> (default value: <code>0</code>)</dt> @@ -5751,32 +5841,32 @@ when â¨<em>shift amount</em>⊠is positive, and to level 1, when 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="cb336"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb336-1"><a href="#cb336-1" aria-hidden="true" tabindex="-1"></a><span class="fu">## A section</span></span></code></pre></div> +<div class="sourceCode" id="cb337"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb337-1"><a href="#cb337-1" aria-hidden="true" tabindex="-1"></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="cb337"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb337-1"><a href="#cb337-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb337-2"><a href="#cb337-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb337-3"><a href="#cb337-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span> -<span id="cb337-4"><a href="#cb337-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span> -<span id="cb337-5"><a href="#cb337-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span> -<span id="cb337-6"><a href="#cb337-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span> -<span id="cb337-7"><a href="#cb337-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span> -<span id="cb337-8"><a href="#cb337-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb337-9"><a href="#cb337-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{-1}</span> -<span id="cb337-10"><a href="#cb337-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb337-11"><a href="#cb337-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb337-12"><a href="#cb337-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{0}</span> -<span id="cb337-13"><a href="#cb337-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb337-14"><a href="#cb337-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb337-15"><a href="#cb337-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{+1}</span> -<span id="cb337-16"><a href="#cb337-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb337-17"><a href="#cb337-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb337-18"><a href="#cb337-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb338-1"><a href="#cb338-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb338-2"><a href="#cb338-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb338-3"><a href="#cb338-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span> +<span id="cb338-4"><a href="#cb338-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span> +<span id="cb338-5"><a href="#cb338-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span> +<span id="cb338-6"><a href="#cb338-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span> +<span id="cb338-7"><a href="#cb338-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span> +<span id="cb338-8"><a href="#cb338-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb338-9"><a href="#cb338-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{-1}</span> +<span id="cb338-10"><a href="#cb338-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb338-11"><a href="#cb338-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb338-12"><a href="#cb338-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{0}</span> +<span id="cb338-13"><a href="#cb338-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb338-14"><a href="#cb338-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb338-15"><a href="#cb338-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionShiftHeadings</span>{+1}</span> +<span id="cb338-16"><a href="#cb338-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb338-17"><a href="#cb338-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb338-18"><a href="#cb338-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb339"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb339-1"><a href="#cb339-1" aria-hidden="true" tabindex="-1"></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> @@ -5788,20 +5878,20 @@ contain the following text:</p> 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="cb339"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb339-1"><a href="#cb339-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb339-2"><a href="#cb339-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb339-3"><a href="#cb339-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{example.md}</span> -<span id="cb339-4"><a href="#cb339-4" aria-hidden="true" tabindex="-1"></a>## A section</span> -<span id="cb339-5"><a href="#cb339-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span> -<span id="cb339-6"><a href="#cb339-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb339-7"><a href="#cb339-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[shiftHeadings=-1]{example.md}</span> -<span id="cb339-8"><a href="#cb339-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb339-9"><a href="#cb339-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[shiftHeadings=+1]{example.md}</span> -<span id="cb339-10"><a href="#cb339-10" aria-hidden="true" tabindex="-1"></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="cb340"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb340-1"><a href="#cb340-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb340-1"><a href="#cb340-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb340-2"><a href="#cb340-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb340-3"><a href="#cb340-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{example.md}</span> +<span id="cb340-4"><a href="#cb340-4" aria-hidden="true" tabindex="-1"></a>## A section</span> +<span id="cb340-5"><a href="#cb340-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span> +<span id="cb340-6"><a href="#cb340-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb340-7"><a href="#cb340-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[shiftHeadings=-1]{example.md}</span> +<span id="cb340-8"><a href="#cb340-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb340-9"><a href="#cb340-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[shiftHeadings=+1]{example.md}</span> +<span id="cb340-10"><a href="#cb340-10" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></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> @@ -5813,22 +5903,22 @@ contain the following text:</p> 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="cb341"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb341-1"><a href="#cb341-1" aria-hidden="true" tabindex="-1"></a><span class="fu">## A section</span></span></code></pre></div> +<div class="sourceCode" id="cb342"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb342-1"><a href="#cb342-1" aria-hidden="true" tabindex="-1"></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="cb342"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb342-1"><a href="#cb342-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb342-2"><a href="#cb342-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb342-3"><a href="#cb342-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb342-4"><a href="#cb342-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[shiftHeadings = -1]{example.md}</span> -<span id="cb342-5"><a href="#cb342-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[shiftHeadings = 0]{example.md}</span> -<span id="cb342-6"><a href="#cb342-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[shiftHeadings = +1]{example.md}</span> -<span id="cb342-7"><a href="#cb342-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb342-8"><a href="#cb342-8" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb343-1"><a href="#cb343-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb343-2"><a href="#cb343-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb343-3"><a href="#cb343-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb343-4"><a href="#cb343-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[shiftHeadings = -1]{example.md}</span> +<span id="cb343-5"><a href="#cb343-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[shiftHeadings = 0]{example.md}</span> +<span id="cb343-6"><a href="#cb343-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[shiftHeadings = +1]{example.md}</span> +<span id="cb343-7"><a href="#cb343-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb343-8"><a href="#cb343-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb344"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb344-1"><a href="#cb344-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -5836,8 +5926,8 @@ contain the following text:</p> <h2 id="a-section-7">A section</h2> <h3 id="a-section-8">A section</h3> </blockquote> -<h4 data-number="2.2.1.47" id="option-slice"><span -class="header-section-number">2.2.1.47</span> Option +<h4 data-number="2.2.1.49" id="option-slice"><span +class="header-section-number">2.2.1.49</span> Option <code>slice</code></h4> <dl> <dt><code>slice</code> (default value: <code>^ $</code>)</dt> @@ -5872,43 +5962,43 @@ i.e. the entire section with the <abbr>HTML</abbr> attribute 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="cb344"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb344-1"><a href="#cb344-1" aria-hidden="true" tabindex="-1"></a><span class="fu"># The Tragedy of Hamlet</span></span> -<span id="cb344-2"><a href="#cb344-2" aria-hidden="true" tabindex="-1"></a>Shakespeare's longest play.</span> -<span id="cb344-3"><a href="#cb344-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb344-4"><a href="#cb344-4" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act III {#act-3}</span></span> -<span id="cb344-5"><a href="#cb344-5" aria-hidden="true" tabindex="-1"></a>Hamlet kills Polonius.</span> -<span id="cb344-6"><a href="#cb344-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb344-7"><a href="#cb344-7" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act V {#act-5}</span></span> -<span id="cb344-8"><a href="#cb344-8" aria-hidden="true" tabindex="-1"></a>Hamlet dies.</span> -<span id="cb344-9"><a href="#cb344-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb344-10"><a href="#cb344-10" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act I {#act-1}</span></span> -<span id="cb344-11"><a href="#cb344-11" aria-hidden="true" tabindex="-1"></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="cb345"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb345-1"><a href="#cb345-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb345-2"><a href="#cb345-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHeaderAttributes</span>{true}</span> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb345-1"><a href="#cb345-1" aria-hidden="true" tabindex="-1"></a><span class="fu"># The Tragedy of Hamlet</span></span> +<span id="cb345-2"><a href="#cb345-2" aria-hidden="true" tabindex="-1"></a>Shakespeare's longest play.</span> <span id="cb345-3"><a href="#cb345-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb345-4"><a href="#cb345-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span> -<span id="cb345-5"><a href="#cb345-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span> -<span id="cb345-6"><a href="#cb345-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span> -<span id="cb345-7"><a href="#cb345-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span> -<span id="cb345-8"><a href="#cb345-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span> +<span id="cb345-4"><a href="#cb345-4" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act III {#act-3}</span></span> +<span id="cb345-5"><a href="#cb345-5" aria-hidden="true" tabindex="-1"></a>Hamlet kills Polonius.</span> +<span id="cb345-6"><a href="#cb345-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb345-7"><a href="#cb345-7" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act V {#act-5}</span></span> +<span id="cb345-8"><a href="#cb345-8" aria-hidden="true" tabindex="-1"></a>Hamlet dies.</span> <span id="cb345-9"><a href="#cb345-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb345-10"><a href="#cb345-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSlice</span>{^ ^act-3}</span> -<span id="cb345-11"><a href="#cb345-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hamlet.md}</span> -<span id="cb345-12"><a href="#cb345-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb345-13"><a href="#cb345-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSlice</span>{act-1}</span> -<span id="cb345-14"><a href="#cb345-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hamlet.md}</span> -<span id="cb345-15"><a href="#cb345-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb345-16"><a href="#cb345-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSlice</span>{act-3 act-5}</span> -<span id="cb345-17"><a href="#cb345-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hamlet.md}</span> -<span id="cb345-18"><a href="#cb345-18" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb345-19"><a href="#cb345-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> +<span id="cb345-10"><a href="#cb345-10" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act I {#act-1}</span></span> +<span id="cb345-11"><a href="#cb345-11" aria-hidden="true" tabindex="-1"></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="cb346"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb346-1"><a href="#cb346-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb346-1"><a href="#cb346-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb346-2"><a href="#cb346-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHeaderAttributes</span>{true}</span> +<span id="cb346-3"><a href="#cb346-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb346-4"><a href="#cb346-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\normal</span>=cmr10<span class="fu">\normal</span></span> +<span id="cb346-5"><a href="#cb346-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\big</span>=cmr10 at 12pt</span> +<span id="cb346-6"><a href="#cb346-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>#1{{<span class="fu">\big</span> #1<span class="fu">\par</span>}}</span> +<span id="cb346-7"><a href="#cb346-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\font\bigger</span>=cmr10 scaled 1440</span> +<span id="cb346-8"><a href="#cb346-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>#1{{<span class="fu">\bigger</span> #1<span class="fu">\par</span>}}</span> +<span id="cb346-9"><a href="#cb346-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb346-10"><a href="#cb346-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSlice</span>{^ ^act-3}</span> +<span id="cb346-11"><a href="#cb346-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hamlet.md}</span> +<span id="cb346-12"><a href="#cb346-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb346-13"><a href="#cb346-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSlice</span>{act-1}</span> +<span id="cb346-14"><a href="#cb346-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hamlet.md}</span> +<span id="cb346-15"><a href="#cb346-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb346-16"><a href="#cb346-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSlice</span>{act-3 act-5}</span> +<span id="cb346-17"><a href="#cb346-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{hamlet.md}</span> +<span id="cb346-18"><a href="#cb346-18" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb346-19"><a href="#cb346-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb347"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb347-1"><a href="#cb347-1" aria-hidden="true" tabindex="-1"></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> @@ -5925,30 +6015,30 @@ contain the following text:</p> 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="cb347"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb347-1"><a href="#cb347-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb347-2"><a href="#cb347-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb347-3"><a href="#cb347-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{hamlet.md}</span> -<span id="cb347-4"><a href="#cb347-4" aria-hidden="true" tabindex="-1"></a># The Tragedy of Hamlet</span> -<span id="cb347-5"><a href="#cb347-5" aria-hidden="true" tabindex="-1"></a>Shakespeare's longest play.</span> -<span id="cb347-6"><a href="#cb347-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb347-7"><a href="#cb347-7" aria-hidden="true" tabindex="-1"></a>## Act III {#act-3}</span> -<span id="cb347-8"><a href="#cb347-8" aria-hidden="true" tabindex="-1"></a>Hamlet kills Polonius.</span> -<span id="cb347-9"><a href="#cb347-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb347-10"><a href="#cb347-10" aria-hidden="true" tabindex="-1"></a>## Act V {#act-5}</span> -<span id="cb347-11"><a href="#cb347-11" aria-hidden="true" tabindex="-1"></a>Hamlet dies.</span> -<span id="cb347-12"><a href="#cb347-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb347-13"><a href="#cb347-13" aria-hidden="true" tabindex="-1"></a>## Act I {#act-1}</span> -<span id="cb347-14"><a href="#cb347-14" aria-hidden="true" tabindex="-1"></a>Hamlet talks to ghost.</span> -<span id="cb347-15"><a href="#cb347-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span> -<span id="cb347-16"><a href="#cb347-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb347-17"><a href="#cb347-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[slice=^ ^act-3]{hamlet.md}</span> -<span id="cb347-18"><a href="#cb347-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[slice=act-1]{hamlet.md}</span> -<span id="cb347-19"><a href="#cb347-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[slice=act-3 act-5]{hamlet.md}</span> -<span id="cb347-20"><a href="#cb347-20" aria-hidden="true" tabindex="-1"></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="cb348"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb348-1"><a href="#cb348-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb348-1"><a href="#cb348-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb348-2"><a href="#cb348-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb348-3"><a href="#cb348-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{hamlet.md}</span> +<span id="cb348-4"><a href="#cb348-4" aria-hidden="true" tabindex="-1"></a># The Tragedy of Hamlet</span> +<span id="cb348-5"><a href="#cb348-5" aria-hidden="true" tabindex="-1"></a>Shakespeare's longest play.</span> +<span id="cb348-6"><a href="#cb348-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb348-7"><a href="#cb348-7" aria-hidden="true" tabindex="-1"></a>## Act III {#act-3}</span> +<span id="cb348-8"><a href="#cb348-8" aria-hidden="true" tabindex="-1"></a>Hamlet kills Polonius.</span> +<span id="cb348-9"><a href="#cb348-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb348-10"><a href="#cb348-10" aria-hidden="true" tabindex="-1"></a>## Act V {#act-5}</span> +<span id="cb348-11"><a href="#cb348-11" aria-hidden="true" tabindex="-1"></a>Hamlet dies.</span> +<span id="cb348-12"><a href="#cb348-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb348-13"><a href="#cb348-13" aria-hidden="true" tabindex="-1"></a>## Act I {#act-1}</span> +<span id="cb348-14"><a href="#cb348-14" aria-hidden="true" tabindex="-1"></a>Hamlet talks to ghost.</span> +<span id="cb348-15"><a href="#cb348-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span> +<span id="cb348-16"><a href="#cb348-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb348-17"><a href="#cb348-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[slice=^ ^act-3]{hamlet.md}</span> +<span id="cb348-18"><a href="#cb348-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[slice=act-1]{hamlet.md}</span> +<span id="cb348-19"><a href="#cb348-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>[slice=act-3 act-5]{hamlet.md}</span> +<span id="cb348-20"><a href="#cb348-20" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></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> @@ -5965,33 +6055,33 @@ contain the following text:</p> 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="cb349"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb349-1"><a href="#cb349-1" aria-hidden="true" tabindex="-1"></a><span class="fu"># The Tragedy of Hamlet</span></span> -<span id="cb349-2"><a href="#cb349-2" aria-hidden="true" tabindex="-1"></a>Shakespeare's longest play.</span> -<span id="cb349-3"><a href="#cb349-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb349-4"><a href="#cb349-4" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act III {#act-3}</span></span> -<span id="cb349-5"><a href="#cb349-5" aria-hidden="true" tabindex="-1"></a>Hamlet kills Polonius.</span> -<span id="cb349-6"><a href="#cb349-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb349-7"><a href="#cb349-7" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act V {#act-5}</span></span> -<span id="cb349-8"><a href="#cb349-8" aria-hidden="true" tabindex="-1"></a>Hamlet dies.</span> -<span id="cb349-9"><a href="#cb349-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb349-10"><a href="#cb349-10" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act I {#act-1}</span></span> -<span id="cb349-11"><a href="#cb349-11" aria-hidden="true" tabindex="-1"></a>Hamlet talks to ghost.</span></code></pre></div> +<div class="sourceCode" id="cb350"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb350-1"><a href="#cb350-1" aria-hidden="true" tabindex="-1"></a><span class="fu"># The Tragedy of Hamlet</span></span> +<span id="cb350-2"><a href="#cb350-2" aria-hidden="true" tabindex="-1"></a>Shakespeare's longest play.</span> +<span id="cb350-3"><a href="#cb350-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb350-4"><a href="#cb350-4" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act III {#act-3}</span></span> +<span id="cb350-5"><a href="#cb350-5" aria-hidden="true" tabindex="-1"></a>Hamlet kills Polonius.</span> +<span id="cb350-6"><a href="#cb350-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb350-7"><a href="#cb350-7" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act V {#act-5}</span></span> +<span id="cb350-8"><a href="#cb350-8" aria-hidden="true" tabindex="-1"></a>Hamlet dies.</span> +<span id="cb350-9"><a href="#cb350-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb350-10"><a href="#cb350-10" aria-hidden="true" tabindex="-1"></a><span class="fu">## Act I {#act-1}</span></span> +<span id="cb350-11"><a href="#cb350-11" aria-hidden="true" tabindex="-1"></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="cb350"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb350-1"><a href="#cb350-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb350-2"><a href="#cb350-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[headerAttributes = yes]</span> -<span id="cb350-3"><a href="#cb350-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb350-4"><a href="#cb350-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb350-5"><a href="#cb350-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[slice = ^ ^act-3]{example.md}</span> -<span id="cb350-6"><a href="#cb350-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[slice = act-1]{example.md}</span> -<span id="cb350-7"><a href="#cb350-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[slice = act-3 act-5]{example.md}</span> -<span id="cb350-8"><a href="#cb350-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb350-9"><a href="#cb350-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb351"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb351-1"><a href="#cb351-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb351-1"><a href="#cb351-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb351-2"><a href="#cb351-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[headerAttributes = yes]</span> +<span id="cb351-3"><a href="#cb351-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb351-4"><a href="#cb351-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb351-5"><a href="#cb351-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[slice = ^ ^act-3]{example.md}</span> +<span id="cb351-6"><a href="#cb351-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[slice = act-1]{example.md}</span> +<span id="cb351-7"><a href="#cb351-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\inputmarkdown</span>[slice = act-3 act-5]{example.md}</span> +<span id="cb351-8"><a href="#cb351-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb351-9"><a href="#cb351-9" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -6004,8 +6094,8 @@ contain the following text:</p> <h2 id="act-v-2">Act V</h2> <p>Hamlet dies.</p> </blockquote> -<h4 data-number="2.2.1.48" id="option-smartellipses"><span -class="header-section-number">2.2.1.48</span> Option +<h4 data-number="2.2.1.50" id="option-smartellipses"><span +class="header-section-number">2.2.1.50</span> Option <code>smartEllipses</code></h4> <dl> <dt><code>smartEllipses</code> (default value: <code>false</code>)</dt> @@ -6032,29 +6122,29 @@ class="tex">T<sub>e</sub>X</span> macro.</p> 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="cb352"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb352-1"><a href="#cb352-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb352-2"><a href="#cb352-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb352-3"><a href="#cb352-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> -<span id="cb352-4"><a href="#cb352-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb352-5"><a href="#cb352-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb352-6"><a href="#cb352-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb352-7"><a href="#cb352-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb352-8"><a href="#cb352-8" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb352-9"><a href="#cb352-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new()</span> -<span id="cb352-10"><a href="#cb352-10" aria-hidden="true" tabindex="-1"></a> local input = "These are just three regular dots ..."</span> -<span id="cb352-11"><a href="#cb352-11" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb352-12"><a href="#cb352-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb352-13"><a href="#cb352-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb352-14"><a href="#cb352-14" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb352-15"><a href="#cb352-15" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({smartEllipses = true})</span> -<span id="cb352-16"><a href="#cb352-16" aria-hidden="true" tabindex="-1"></a> local input = "... and this is a victorian ellipsis."</span> -<span id="cb352-17"><a href="#cb352-17" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb352-18"><a href="#cb352-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb352-19"><a href="#cb352-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Then, 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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb353-1"><a href="#cb353-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb353-2"><a href="#cb353-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb353-3"><a href="#cb353-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> +<span id="cb353-4"><a href="#cb353-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb353-5"><a href="#cb353-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb353-6"><a href="#cb353-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb353-7"><a href="#cb353-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb353-8"><a href="#cb353-8" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb353-9"><a href="#cb353-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new()</span> +<span id="cb353-10"><a href="#cb353-10" aria-hidden="true" tabindex="-1"></a> local input = "These are just three regular dots ..."</span> +<span id="cb353-11"><a href="#cb353-11" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb353-12"><a href="#cb353-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb353-13"><a href="#cb353-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb353-14"><a href="#cb353-14" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb353-15"><a href="#cb353-15" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({smartEllipses = true})</span> +<span id="cb353-16"><a href="#cb353-16" aria-hidden="true" tabindex="-1"></a> local input = "... and this is a victorian ellipsis."</span> +<span id="cb353-17"><a href="#cb353-17" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb353-18"><a href="#cb353-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb353-19"><a href="#cb353-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Then, 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" tabindex="-1"></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> @@ -6064,27 +6154,27 @@ contain the following text:</p> <h5 class="unnumbered" id="lua-cli-example-11">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="cb354"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb354-1"><a href="#cb354-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb354-2"><a href="#cb354-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb354-3"><a href="#cb354-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> -<span id="cb354-4"><a href="#cb354-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb354-5"><a href="#cb354-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb354-6"><a href="#cb354-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb354-7"><a href="#cb354-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb354-8"><a href="#cb354-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb354-9"><a href="#cb354-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb354-10"><a href="#cb354-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb354-11"><a href="#cb354-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb355"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb355-1"><a href="#cb355-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb355-2"><a href="#cb355-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb355-3"><a href="#cb355-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> +<span id="cb355-4"><a href="#cb355-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb355-5"><a href="#cb355-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb355-6"><a href="#cb355-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb355-7"><a href="#cb355-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb355-8"><a href="#cb355-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb355-9"><a href="#cb355-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb355-10"><a href="#cb355-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb355-11"><a href="#cb355-11" aria-hidden="true" tabindex="-1"></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="cb355"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb355-1"><a href="#cb355-1" aria-hidden="true" tabindex="-1"></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="cb356"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb356-1"><a href="#cb356-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb356-2"><a href="#cb356-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠smartEllipses=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb356-3"><a href="#cb356-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb356-1"><a href="#cb356-1" aria-hidden="true" tabindex="-1"></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="cb357"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb357-1"><a href="#cb357-1" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb357-2"><a href="#cb357-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠smartEllipses=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb357-3"><a href="#cb357-3" aria-hidden="true" tabindex="-1"></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 @@ -6105,23 +6195,23 @@ contain the following text:</p> 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="cb357"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb357-1"><a href="#cb357-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb357-2"><a href="#cb357-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> -<span id="cb357-3"><a href="#cb357-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb357-4"><a href="#cb357-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb357-5"><a href="#cb357-5" aria-hidden="true" tabindex="-1"></a>These are just three regular dots ...</span> -<span id="cb357-6"><a href="#cb357-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb357-7"><a href="#cb357-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb357-8"><a href="#cb357-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span> -<span id="cb357-9"><a href="#cb357-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb357-10"><a href="#cb357-10" aria-hidden="true" tabindex="-1"></a>... and this is a victorian ellipsis.</span> -<span id="cb357-11"><a href="#cb357-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb357-12"><a href="#cb357-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb357-13"><a href="#cb357-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb358-1"><a href="#cb358-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb358-2"><a href="#cb358-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> +<span id="cb358-3"><a href="#cb358-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb358-4"><a href="#cb358-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb358-5"><a href="#cb358-5" aria-hidden="true" tabindex="-1"></a>These are just three regular dots ...</span> +<span id="cb358-6"><a href="#cb358-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb358-7"><a href="#cb358-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb358-8"><a href="#cb358-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span> +<span id="cb358-9"><a href="#cb358-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb358-10"><a href="#cb358-10" aria-hidden="true" tabindex="-1"></a>... and this is a victorian ellipsis.</span> +<span id="cb358-11"><a href="#cb358-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb358-12"><a href="#cb358-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb358-13"><a href="#cb358-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb359"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb359-1"><a href="#cb359-1" aria-hidden="true" tabindex="-1"></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> @@ -6132,28 +6222,28 @@ contain the following text:</p> 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="cb359"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb359-1"><a href="#cb359-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb359-2"><a href="#cb359-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb359-3"><a href="#cb359-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb359-4"><a href="#cb359-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb359-5"><a href="#cb359-5" aria-hidden="true" tabindex="-1"></a> ellipsis = {. . .}</span> -<span id="cb359-6"><a href="#cb359-6" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb359-7"><a href="#cb359-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb359-8"><a href="#cb359-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb359-9"><a href="#cb359-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb359-10"><a href="#cb359-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb359-11"><a href="#cb359-11" aria-hidden="true" tabindex="-1"></a>These are just three regular dots ...</span> -<span id="cb359-12"><a href="#cb359-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb359-13"><a href="#cb359-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb359-14"><a href="#cb359-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[smartEllipses]</span> -<span id="cb359-15"><a href="#cb359-15" aria-hidden="true" tabindex="-1"></a>... and this is a victorian ellipsis.</span> -<span id="cb359-16"><a href="#cb359-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb359-17"><a href="#cb359-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb359-18"><a href="#cb359-18" aria-hidden="true" tabindex="-1"></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="cb360"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb360-1"><a href="#cb360-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb360-1"><a href="#cb360-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb360-2"><a href="#cb360-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb360-3"><a href="#cb360-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb360-4"><a href="#cb360-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb360-5"><a href="#cb360-5" aria-hidden="true" tabindex="-1"></a> ellipsis = {. . .}</span> +<span id="cb360-6"><a href="#cb360-6" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb360-7"><a href="#cb360-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb360-8"><a href="#cb360-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb360-9"><a href="#cb360-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb360-10"><a href="#cb360-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb360-11"><a href="#cb360-11" aria-hidden="true" tabindex="-1"></a>These are just three regular dots ...</span> +<span id="cb360-12"><a href="#cb360-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb360-13"><a href="#cb360-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb360-14"><a href="#cb360-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[smartEllipses]</span> +<span id="cb360-15"><a href="#cb360-15" aria-hidden="true" tabindex="-1"></a>... and this is a victorian ellipsis.</span> +<span id="cb360-16"><a href="#cb360-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb360-17"><a href="#cb360-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb360-18"><a href="#cb360-18" aria-hidden="true" tabindex="-1"></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="cb361"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb361-1"><a href="#cb361-1" aria-hidden="true" tabindex="-1"></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> @@ -6164,32 +6254,32 @@ contain the following text:</p> 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="cb361"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb361-1"><a href="#cb361-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb361-2"><a href="#cb361-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> -<span id="cb361-3"><a href="#cb361-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb361-4"><a href="#cb361-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb361-5"><a href="#cb361-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb361-6"><a href="#cb361-6" aria-hidden="true" tabindex="-1"></a>These are just three regular dots ...</span> -<span id="cb361-7"><a href="#cb361-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb361-8"><a href="#cb361-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb361-9"><a href="#cb361-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[smartEllipses = yes]</span> -<span id="cb361-10"><a href="#cb361-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb361-11"><a href="#cb361-11" aria-hidden="true" tabindex="-1"></a>... and this is a victorian ellipsis.</span> -<span id="cb361-12"><a href="#cb361-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb361-13"><a href="#cb361-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb361-14"><a href="#cb361-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb362-1"><a href="#cb362-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb362-2"><a href="#cb362-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{. . .}</span> +<span id="cb362-3"><a href="#cb362-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb362-4"><a href="#cb362-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb362-5"><a href="#cb362-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb362-6"><a href="#cb362-6" aria-hidden="true" tabindex="-1"></a>These are just three regular dots ...</span> +<span id="cb362-7"><a href="#cb362-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb362-8"><a href="#cb362-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb362-9"><a href="#cb362-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[smartEllipses = yes]</span> +<span id="cb362-10"><a href="#cb362-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb362-11"><a href="#cb362-11" aria-hidden="true" tabindex="-1"></a>... and this is a victorian ellipsis.</span> +<span id="cb362-12"><a href="#cb362-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb362-13"><a href="#cb362-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb362-14"><a href="#cb362-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb363"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb363-1"><a href="#cb363-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> -<h4 data-number="2.2.1.49" id="option-startnumber"><span -class="header-section-number">2.2.1.49</span> Option +<h4 data-number="2.2.1.51" id="option-startnumber"><span +class="header-section-number">2.2.1.51</span> Option <code>startNumber</code></h4> <dl> <dt><code>startNumber</code> (default value: <code>true</code>)</dt> @@ -6219,32 +6309,32 @@ class="tex">T<sub>e</sub>X</span> macro.</p> 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="cb363"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb363-1"><a href="#cb363-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb363-2"><a href="#cb363-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb363-3"><a href="#cb363-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb363-4"><a href="#cb363-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb363-5"><a href="#cb363-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb363-6"><a href="#cb363-6" aria-hidden="true" tabindex="-1"></a>The following list respects the numbers specified in the markup:</span> -<span id="cb363-7"><a href="#cb363-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb363-8"><a href="#cb363-8" aria-hidden="true" tabindex="-1"></a>3. third item</span> -<span id="cb363-9"><a href="#cb363-9" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> -<span id="cb363-10"><a href="#cb363-10" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> -<span id="cb363-11"><a href="#cb363-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb363-12"><a href="#cb363-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb363-13"><a href="#cb363-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[startNumber=false]</span> -<span id="cb363-14"><a href="#cb363-14" aria-hidden="true" tabindex="-1"></a>The following list does not respect the numbers specified in the</span> -<span id="cb363-15"><a href="#cb363-15" aria-hidden="true" tabindex="-1"></a>markup:</span> -<span id="cb363-16"><a href="#cb363-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb363-17"><a href="#cb363-17" aria-hidden="true" tabindex="-1"></a>3. third item</span> -<span id="cb363-18"><a href="#cb363-18" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> -<span id="cb363-19"><a href="#cb363-19" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> -<span id="cb363-20"><a href="#cb363-20" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb363-21"><a href="#cb363-21" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb363-22"><a href="#cb363-22" aria-hidden="true" tabindex="-1"></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="cb364"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb364-1"><a href="#cb364-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb364-1"><a href="#cb364-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb364-2"><a href="#cb364-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb364-3"><a href="#cb364-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb364-4"><a href="#cb364-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb364-5"><a href="#cb364-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb364-6"><a href="#cb364-6" aria-hidden="true" tabindex="-1"></a>The following list respects the numbers specified in the markup:</span> +<span id="cb364-7"><a href="#cb364-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb364-8"><a href="#cb364-8" aria-hidden="true" tabindex="-1"></a>3. third item</span> +<span id="cb364-9"><a href="#cb364-9" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> +<span id="cb364-10"><a href="#cb364-10" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> +<span id="cb364-11"><a href="#cb364-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb364-12"><a href="#cb364-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb364-13"><a href="#cb364-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[startNumber=false]</span> +<span id="cb364-14"><a href="#cb364-14" aria-hidden="true" tabindex="-1"></a>The following list does not respect the numbers specified in the</span> +<span id="cb364-15"><a href="#cb364-15" aria-hidden="true" tabindex="-1"></a>markup:</span> +<span id="cb364-16"><a href="#cb364-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb364-17"><a href="#cb364-17" aria-hidden="true" tabindex="-1"></a>3. third item</span> +<span id="cb364-18"><a href="#cb364-18" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> +<span id="cb364-19"><a href="#cb364-19" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> +<span id="cb364-20"><a href="#cb364-20" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb364-21"><a href="#cb364-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb364-22"><a href="#cb364-22" aria-hidden="true" tabindex="-1"></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="cb365"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb365-1"><a href="#cb365-1" aria-hidden="true" tabindex="-1"></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> @@ -6266,30 +6356,30 @@ markup:</p> 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="cb365"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb365-1"><a href="#cb365-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb365-2"><a href="#cb365-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb365-3"><a href="#cb365-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb365-4"><a href="#cb365-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb365-5"><a href="#cb365-5" aria-hidden="true" tabindex="-1"></a>The following list respects the numbers specified in the markup:</span> -<span id="cb365-6"><a href="#cb365-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb365-7"><a href="#cb365-7" aria-hidden="true" tabindex="-1"></a>3. third item</span> -<span id="cb365-8"><a href="#cb365-8" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> -<span id="cb365-9"><a href="#cb365-9" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> -<span id="cb365-10"><a href="#cb365-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb365-11"><a href="#cb365-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb365-12"><a href="#cb365-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[startNumber = no]</span> -<span id="cb365-13"><a href="#cb365-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb365-14"><a href="#cb365-14" aria-hidden="true" tabindex="-1"></a>The following list respects the numbers specified in the markup:</span> -<span id="cb365-15"><a href="#cb365-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb365-16"><a href="#cb365-16" aria-hidden="true" tabindex="-1"></a>3. third item</span> -<span id="cb365-17"><a href="#cb365-17" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> -<span id="cb365-18"><a href="#cb365-18" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> -<span id="cb365-19"><a href="#cb365-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb365-20"><a href="#cb365-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb366"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb366-1"><a href="#cb366-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb366-1"><a href="#cb366-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb366-2"><a href="#cb366-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb366-3"><a href="#cb366-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb366-4"><a href="#cb366-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb366-5"><a href="#cb366-5" aria-hidden="true" tabindex="-1"></a>The following list respects the numbers specified in the markup:</span> +<span id="cb366-6"><a href="#cb366-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb366-7"><a href="#cb366-7" aria-hidden="true" tabindex="-1"></a>3. third item</span> +<span id="cb366-8"><a href="#cb366-8" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> +<span id="cb366-9"><a href="#cb366-9" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> +<span id="cb366-10"><a href="#cb366-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb366-11"><a href="#cb366-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb366-12"><a href="#cb366-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[startNumber = no]</span> +<span id="cb366-13"><a href="#cb366-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb366-14"><a href="#cb366-14" aria-hidden="true" tabindex="-1"></a>The following list respects the numbers specified in the markup:</span> +<span id="cb366-15"><a href="#cb366-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb366-16"><a href="#cb366-16" aria-hidden="true" tabindex="-1"></a>3. third item</span> +<span id="cb366-17"><a href="#cb366-17" aria-hidden="true" tabindex="-1"></a>4. fourth item</span> +<span id="cb366-18"><a href="#cb366-18" aria-hidden="true" tabindex="-1"></a>5. fifth item</span> +<span id="cb366-19"><a href="#cb366-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb366-20"><a href="#cb366-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX 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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -6307,8 +6397,8 @@ markup:</p> <li>fifth item</li> </ol> </blockquote> -<h4 data-number="2.2.1.50" id="option-strikethrough"><span -class="header-section-number">2.2.1.50</span> Option +<h4 data-number="2.2.1.52" id="option-strikethrough"><span +class="header-section-number">2.2.1.52</span> Option <code>strikeThrough</code></h4> <dl> <dt><code>strikeThrough</code> (default value: <code>false</code>)</dt> @@ -6319,8 +6409,8 @@ class="header-section-number">2.2.1.50</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-strikeout">strike-through syntax extension</a>:</p> -<div class="sourceCode" id="cb367"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb367-1"><a href="#cb367-1" aria-hidden="true" tabindex="-1"></a>This ~~is deleted text.~~</span></code></pre></div> +<div class="sourceCode" id="cb368"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb368-1"><a href="#cb368-1" aria-hidden="true" tabindex="-1"></a>This ~~is deleted text.~~</span></code></pre></div> </dd> </dl> </dd> @@ -6337,18 +6427,18 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb367-1"><a hr 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="cb368"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb368-1"><a href="#cb368-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb368-2"><a href="#cb368-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStrikeThrough</span>{true}</span> -<span id="cb368-3"><a href="#cb368-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> soulutf8.sty</span> -<span id="cb368-4"><a href="#cb368-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\st</span>{#1}}</span> -<span id="cb368-5"><a href="#cb368-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb368-6"><a href="#cb368-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> -<span id="cb368-7"><a href="#cb368-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb368-8"><a href="#cb368-8" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb369-1"><a href="#cb369-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb369-2"><a href="#cb369-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStrikeThrough</span>{true}</span> +<span id="cb369-3"><a href="#cb369-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> soulutf8.sty</span> +<span id="cb369-4"><a href="#cb369-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\st</span>{#1}}</span> +<span id="cb369-5"><a href="#cb369-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb369-6"><a href="#cb369-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> +<span id="cb369-7"><a href="#cb369-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb369-8"><a href="#cb369-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb370"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb370-1"><a href="#cb370-1" aria-hidden="true" tabindex="-1"></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> @@ -6358,23 +6448,23 @@ contain the following text:</p> 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="cb370"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb370-1"><a href="#cb370-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb370-2"><a href="#cb370-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[strikeThrough]{<span class="ex">markdown</span>}</span> -<span id="cb370-3"><a href="#cb370-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soulutf8</span>}</span> -<span id="cb370-4"><a href="#cb370-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb370-5"><a href="#cb370-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb370-6"><a href="#cb370-6" aria-hidden="true" tabindex="-1"></a> strikeThrough = {<span class="fu">\st</span>{#1}},</span> -<span id="cb370-7"><a href="#cb370-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb370-8"><a href="#cb370-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb370-9"><a href="#cb370-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb370-10"><a href="#cb370-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb370-11"><a href="#cb370-11" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> -<span id="cb370-12"><a href="#cb370-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb370-13"><a href="#cb370-13" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb371-1"><a href="#cb371-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb371-2"><a href="#cb371-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[strikeThrough]{<span class="ex">markdown</span>}</span> +<span id="cb371-3"><a href="#cb371-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soulutf8</span>}</span> +<span id="cb371-4"><a href="#cb371-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb371-5"><a href="#cb371-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb371-6"><a href="#cb371-6" aria-hidden="true" tabindex="-1"></a> strikeThrough = {<span class="fu">\st</span>{#1}},</span> +<span id="cb371-7"><a href="#cb371-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb371-8"><a href="#cb371-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb371-9"><a href="#cb371-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb371-10"><a href="#cb371-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb371-11"><a href="#cb371-11" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> +<span id="cb371-12"><a href="#cb371-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb371-13"><a href="#cb371-13" aria-hidden="true" tabindex="-1"></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="cb372"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb372-1"><a href="#cb372-1" aria-hidden="true" tabindex="-1"></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> @@ -6384,25 +6474,25 @@ contain the following text:</p> 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="cb372"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb372-1"><a href="#cb372-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb372-2"><a href="#cb372-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[strikeThrough = yes]</span> -<span id="cb372-3"><a href="#cb372-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\overstrikes</span>{#1}}</span> -<span id="cb372-4"><a href="#cb372-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb372-5"><a href="#cb372-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb372-6"><a href="#cb372-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> -<span id="cb372-7"><a href="#cb372-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb372-8"><a href="#cb372-8" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb373-1"><a href="#cb373-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb373-2"><a href="#cb373-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[strikeThrough = yes]</span> +<span id="cb373-3"><a href="#cb373-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\overstrikes</span>{#1}}</span> +<span id="cb373-4"><a href="#cb373-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb373-5"><a href="#cb373-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb373-6"><a href="#cb373-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> +<span id="cb373-7"><a href="#cb373-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb373-8"><a href="#cb373-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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 <del>a lunar roving vehicle</del> strike-through text.</p> </blockquote> -<h4 data-number="2.2.1.51" id="option-stripindent"><span -class="header-section-number">2.2.1.51</span> Option +<h4 data-number="2.2.1.53" id="option-stripindent"><span +class="header-section-number">2.2.1.53</span> Option <code>stripIndent</code></h4> <dl> <dt><code>stripIndent</code> (default value: <code>false</code>)</dt> @@ -6413,14 +6503,14 @@ class="header-section-number">2.2.1.51</span> Option <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 disabled:</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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb374-2"><a href="#cb374-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span> -<span id="cb374-3"><a href="#cb374-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb374-4"><a href="#cb374-4" aria-hidden="true" tabindex="-1"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb374-5"><a href="#cb374-5" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> -<span id="cb374-6"><a href="#cb374-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb374-7"><a href="#cb374-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb375-2"><a href="#cb375-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span> +<span id="cb375-3"><a href="#cb375-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb375-4"><a href="#cb375-4" aria-hidden="true" tabindex="-1"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb375-5"><a href="#cb375-5" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> +<span id="cb375-6"><a href="#cb375-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb375-7"><a href="#cb375-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> </dd> </dl> </dd> @@ -6438,54 +6528,54 @@ document.</p> 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="cb375"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb375-1"><a href="#cb375-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb375-2"><a href="#cb375-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStripIndent</span>{true}</span> -<span id="cb375-3"><a href="#cb375-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb375-4"><a href="#cb375-4" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> -<span id="cb375-5"><a href="#cb375-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb375-6"><a href="#cb375-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb376-1"><a href="#cb376-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb376-2"><a href="#cb376-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStripIndent</span>{true}</span> +<span id="cb376-3"><a href="#cb376-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb376-4"><a href="#cb376-4" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> +<span id="cb376-5"><a href="#cb376-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb376-6"><a href="#cb376-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></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" 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:</p> -<div class="sourceCode" id="cb377"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb377-1"><a href="#cb377-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb377-2"><a href="#cb377-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span> -<span id="cb377-3"><a href="#cb377-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb377-4"><a href="#cb377-4" aria-hidden="true" tabindex="-1"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb377-5"><a href="#cb377-5" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> -<span id="cb377-6"><a href="#cb377-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb377-7"><a href="#cb377-7" aria-hidden="true" tabindex="-1"></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="cb378"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb378-1"><a href="#cb378-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb378-1"><a href="#cb378-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb378-2"><a href="#cb378-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[stripIndent]{<span class="ex">markdown</span>}</span> +<span id="cb378-3"><a href="#cb378-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb378-4"><a href="#cb378-4" aria-hidden="true" tabindex="-1"></a> <span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb378-5"><a href="#cb378-5" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> +<span id="cb378-6"><a href="#cb378-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb378-7"><a href="#cb378-7" aria-hidden="true" tabindex="-1"></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="cb379"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb379-1"><a href="#cb379-1" aria-hidden="true" tabindex="-1"></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" 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="cb379"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb379-1"><a href="#cb379-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb379-2"><a href="#cb379-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[stripIndent = yes]</span> -<span id="cb379-3"><a href="#cb379-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb379-4"><a href="#cb379-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\startmarkdown</span></span> -<span id="cb379-5"><a href="#cb379-5" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> -<span id="cb379-6"><a href="#cb379-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\stopmarkdown</span></span> -<span id="cb379-7"><a href="#cb379-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb380-1"><a href="#cb380-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb380-2"><a href="#cb380-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[stripIndent = yes]</span> +<span id="cb380-3"><a href="#cb380-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb380-4"><a href="#cb380-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\startmarkdown</span></span> +<span id="cb380-5"><a href="#cb380-5" aria-hidden="true" tabindex="-1"></a> Hello *world*!</span> +<span id="cb380-6"><a href="#cb380-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\stopmarkdown</span></span> +<span id="cb380-7"><a href="#cb380-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> -<h4 data-number="2.2.1.52" id="option-subscripts"><span -class="header-section-number">2.2.1.52</span> Option +<h4 data-number="2.2.1.54" id="option-subscripts"><span +class="header-section-number">2.2.1.54</span> Option <code>subscripts</code></h4> <dl> <dt><code>subscripts</code> (default value: <code>false</code>)</dt> @@ -6496,8 +6586,8 @@ class="header-section-number">2.2.1.52</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-superscript-subscript">subscript syntax extension</a>:</p> -<div class="sourceCode" id="cb381"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb381-1"><a href="#cb381-1" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span></code></pre></div> +<div class="sourceCode" id="cb382"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb382-1"><a href="#cb382-1" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span></code></pre></div> </dd> </dl> </dd> @@ -6514,17 +6604,17 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb381-1"><a hr 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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb382-2"><a href="#cb382-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[subscripts]{<span class="ex">markdown</span>}</span> -<span id="cb382-3"><a href="#cb382-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb382-4"><a href="#cb382-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb382-5"><a href="#cb382-5" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> -<span id="cb382-6"><a href="#cb382-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb382-7"><a href="#cb382-7" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb383-1"><a href="#cb383-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb383-2"><a href="#cb383-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[subscripts]{<span class="ex">markdown</span>}</span> +<span id="cb383-3"><a href="#cb383-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb383-4"><a href="#cb383-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb383-5"><a href="#cb383-5" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> +<span id="cb383-6"><a href="#cb383-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb383-7"><a href="#cb383-7" aria-hidden="true" tabindex="-1"></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="cb384"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb384-1"><a href="#cb384-1" aria-hidden="true" tabindex="-1"></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> @@ -6534,24 +6624,24 @@ contain the following text:</p> 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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb384-2"><a href="#cb384-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[subscripts = yes]</span> -<span id="cb384-3"><a href="#cb384-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb384-4"><a href="#cb384-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb384-5"><a href="#cb384-5" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> -<span id="cb384-6"><a href="#cb384-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb384-7"><a href="#cb384-7" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb385-1"><a href="#cb385-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb385-2"><a href="#cb385-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[subscripts = yes]</span> +<span id="cb385-3"><a href="#cb385-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb385-4"><a href="#cb385-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb385-5"><a href="#cb385-5" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> +<span id="cb385-6"><a href="#cb385-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb385-7"><a href="#cb385-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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>H<sub>2</sub>O is a liquid.</p> </blockquote> -<h4 data-number="2.2.1.53" id="option-superscripts"><span -class="header-section-number">2.2.1.53</span> Option +<h4 data-number="2.2.1.55" id="option-superscripts"><span +class="header-section-number">2.2.1.55</span> Option <code>superscripts</code></h4> <dl> <dt><code>superscripts</code> (default value: <code>false</code>)</dt> @@ -6562,8 +6652,8 @@ class="header-section-number">2.2.1.53</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-superscript-subscript">superscript syntax extension</a>:</p> -<div class="sourceCode" id="cb386"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb386-1"><a href="#cb386-1" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span></code></pre></div> +<div class="sourceCode" id="cb387"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb387-1"><a href="#cb387-1" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span></code></pre></div> </dd> </dl> </dd> @@ -6580,17 +6670,17 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb386-1"><a hr 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="cb387"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb387-1"><a href="#cb387-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb387-2"><a href="#cb387-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[superscripts]{<span class="ex">markdown</span>}</span> -<span id="cb387-3"><a href="#cb387-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb387-4"><a href="#cb387-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb387-5"><a href="#cb387-5" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> -<span id="cb387-6"><a href="#cb387-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb387-7"><a href="#cb387-7" aria-hidden="true" tabindex="-1"></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="cb388"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb388-1"><a href="#cb388-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb388-1"><a href="#cb388-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb388-2"><a href="#cb388-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[superscripts]{<span class="ex">markdown</span>}</span> +<span id="cb388-3"><a href="#cb388-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb388-4"><a href="#cb388-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb388-5"><a href="#cb388-5" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> +<span id="cb388-6"><a href="#cb388-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb388-7"><a href="#cb388-7" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></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> @@ -6600,24 +6690,24 @@ contain the following text:</p> 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="cb389"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb389-1"><a href="#cb389-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb389-2"><a href="#cb389-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[superscripts = yes]</span> -<span id="cb389-3"><a href="#cb389-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb389-4"><a href="#cb389-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb389-5"><a href="#cb389-5" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> -<span id="cb389-6"><a href="#cb389-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb389-7"><a href="#cb389-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb390"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb390-1"><a href="#cb390-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb390-1"><a href="#cb390-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb390-2"><a href="#cb390-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[superscripts = yes]</span> +<span id="cb390-3"><a href="#cb390-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb390-4"><a href="#cb390-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb390-5"><a href="#cb390-5" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> +<span id="cb390-6"><a href="#cb390-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb390-7"><a href="#cb390-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb391"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb391-1"><a href="#cb391-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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>2<sup>10</sup> is 1024.</p> </blockquote> -<h4 data-number="2.2.1.54" id="option-tableattributes"><span -class="header-section-number">2.2.1.54</span> Option +<h4 data-number="2.2.1.56" id="option-tableattributes"><span +class="header-section-number">2.2.1.56</span> Option <code>tableAttributes</code></h4> <dl> <dt><code>tableAttributes</code> (default value: @@ -6628,14 +6718,14 @@ class="header-section-number">2.2.1.54</span> Option <dd> <p>Enable the assignment of HTML attributes to <a href="#table-captions">table captions</a>.</p> -<div class="sourceCode" id="cb391"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb391-1"><a href="#cb391-1" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb391-2"><a href="#cb391-2" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb391-3"><a href="#cb391-3" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb391-4"><a href="#cb391-4" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb391-5"><a href="#cb391-5" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb391-6"><a href="#cb391-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb391-7"><a href="#cb391-7" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax. {#example-table}</span></code></pre></div> +<div class="sourceCode" id="cb392"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb392-1"><a href="#cb392-1" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb392-2"><a href="#cb392-2" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb392-3"><a href="#cb392-3" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb392-4"><a href="#cb392-4" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb392-5"><a href="#cb392-5" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb392-6"><a href="#cb392-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb392-7"><a href="#cb392-7" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax. {#example-table}</span></code></pre></div> </dd> </dl> </dd> @@ -6652,57 +6742,57 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb391-1"><a hr 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="cb392"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb392-1"><a href="#cb392-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb392-2"><a href="#cb392-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> -<span id="cb392-3"><a href="#cb392-3" aria-hidden="true" tabindex="-1"></a> pipeTables,</span> -<span id="cb392-4"><a href="#cb392-4" aria-hidden="true" tabindex="-1"></a> tableCaptions,</span> -<span id="cb392-5"><a href="#cb392-5" aria-hidden="true" tabindex="-1"></a> tableAttributes,</span> -<span id="cb392-6"><a href="#cb392-6" aria-hidden="true" tabindex="-1"></a> relativeReferences,</span> -<span id="cb392-7"><a href="#cb392-7" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span> -<span id="cb392-8"><a href="#cb392-8" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> -<span id="cb392-9"><a href="#cb392-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb392-10"><a href="#cb392-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb392-11"><a href="#cb392-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb392-12"><a href="#cb392-12" aria-hidden="true" tabindex="-1"></a> tableAttributeContextBegin = {</span> -<span id="cb392-13"><a href="#cb392-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> -<span id="cb392-14"><a href="#cb392-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb392-15"><a href="#cb392-15" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb392-16"><a href="#cb392-16" aria-hidden="true" tabindex="-1"></a> attributeIdentifier = {</span> -<span id="cb392-17"><a href="#cb392-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb392-18"><a href="#cb392-18" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb392-19"><a href="#cb392-19" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> -<span id="cb392-20"><a href="#cb392-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">\label</span>{<span class="ex">##1</span>}</span> -<span id="cb392-21"><a href="#cb392-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb392-22"><a href="#cb392-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-23"><a href="#cb392-23" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-24"><a href="#cb392-24" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb392-25"><a href="#cb392-25" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-26"><a href="#cb392-26" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-27"><a href="#cb392-27" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb392-28"><a href="#cb392-28" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-29"><a href="#cb392-29" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> -<span id="cb392-30"><a href="#cb392-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb392-31"><a href="#cb392-31" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-32"><a href="#cb392-32" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb392-33"><a href="#cb392-33" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb392-34"><a href="#cb392-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb392-35"><a href="#cb392-35" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb392-36"><a href="#cb392-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb392-37"><a href="#cb392-37" aria-hidden="true" tabindex="-1"></a>See Table <#example-table>.</span> -<span id="cb392-38"><a href="#cb392-38" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb392-39"><a href="#cb392-39" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb392-40"><a href="#cb392-40" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb392-41"><a href="#cb392-41" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb392-42"><a href="#cb392-42" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb392-43"><a href="#cb392-43" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb392-44"><a href="#cb392-44" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb392-45"><a href="#cb392-45" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax. {#example-table}</span> -<span id="cb392-46"><a href="#cb392-46" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb392-47"><a href="#cb392-47" aria-hidden="true" tabindex="-1"></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="cb393"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb393-1"><a href="#cb393-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb393-1"><a href="#cb393-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb393-2"><a href="#cb393-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> +<span id="cb393-3"><a href="#cb393-3" aria-hidden="true" tabindex="-1"></a> pipeTables,</span> +<span id="cb393-4"><a href="#cb393-4" aria-hidden="true" tabindex="-1"></a> tableCaptions,</span> +<span id="cb393-5"><a href="#cb393-5" aria-hidden="true" tabindex="-1"></a> tableAttributes,</span> +<span id="cb393-6"><a href="#cb393-6" aria-hidden="true" tabindex="-1"></a> relativeReferences,</span> +<span id="cb393-7"><a href="#cb393-7" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span> +<span id="cb393-8"><a href="#cb393-8" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> +<span id="cb393-9"><a href="#cb393-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb393-10"><a href="#cb393-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb393-11"><a href="#cb393-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb393-12"><a href="#cb393-12" aria-hidden="true" tabindex="-1"></a> tableAttributeContextBegin = {</span> +<span id="cb393-13"><a href="#cb393-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> +<span id="cb393-14"><a href="#cb393-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb393-15"><a href="#cb393-15" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb393-16"><a href="#cb393-16" aria-hidden="true" tabindex="-1"></a> attributeIdentifier = {</span> +<span id="cb393-17"><a href="#cb393-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb393-18"><a href="#cb393-18" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb393-19"><a href="#cb393-19" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> +<span id="cb393-20"><a href="#cb393-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">\label</span>{<span class="ex">##1</span>}</span> +<span id="cb393-21"><a href="#cb393-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb393-22"><a href="#cb393-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-23"><a href="#cb393-23" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-24"><a href="#cb393-24" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb393-25"><a href="#cb393-25" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-26"><a href="#cb393-26" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-27"><a href="#cb393-27" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb393-28"><a href="#cb393-28" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-29"><a href="#cb393-29" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> +<span id="cb393-30"><a href="#cb393-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb393-31"><a href="#cb393-31" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-32"><a href="#cb393-32" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb393-33"><a href="#cb393-33" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb393-34"><a href="#cb393-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb393-35"><a href="#cb393-35" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb393-36"><a href="#cb393-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb393-37"><a href="#cb393-37" aria-hidden="true" tabindex="-1"></a>See Table <#example-table>.</span> +<span id="cb393-38"><a href="#cb393-38" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb393-39"><a href="#cb393-39" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb393-40"><a href="#cb393-40" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb393-41"><a href="#cb393-41" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb393-42"><a href="#cb393-42" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb393-43"><a href="#cb393-43" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb393-44"><a href="#cb393-44" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb393-45"><a href="#cb393-45" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax. {#example-table}</span> +<span id="cb393-46"><a href="#cb393-46" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb393-47"><a href="#cb393-47" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></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> @@ -6739,8 +6829,8 @@ contain the following text:</p> </tbody> </table> </blockquote> -<h4 data-number="2.2.1.55" id="table-captions"><span -class="header-section-number">2.2.1.55</span> Option +<h4 data-number="2.2.1.57" id="table-captions"><span +class="header-section-number">2.2.1.57</span> Option <code>tableCaptions</code></h4> <dl> <dt><code>tableCaptions</code> (default value: <code>false</code>)</dt> @@ -6752,14 +6842,14 @@ class="header-section-number">2.2.1.55</span> Option href="https://pandoc.org/MANUAL.html#extension-table_captions">table caption syntax extension</a> for <a href="#pipe-tables">pipe tables</a>.</p> -<div class="sourceCode" id="cb394"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb394-1"><a href="#cb394-1" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb394-2"><a href="#cb394-2" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb394-3"><a href="#cb394-3" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb394-4"><a href="#cb394-4" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb394-5"><a href="#cb394-5" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb394-6"><a href="#cb394-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb394-7"><a href="#cb394-7" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax.</span></code></pre></div> +<div class="sourceCode" id="cb395"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb395-1"><a href="#cb395-1" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb395-2"><a href="#cb395-2" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb395-3"><a href="#cb395-3" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb395-4"><a href="#cb395-4" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb395-5"><a href="#cb395-5" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb395-6"><a href="#cb395-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb395-7"><a href="#cb395-7" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax.</span></code></pre></div> </dd> </dl> </dd> @@ -6776,23 +6866,23 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb394-1"><a hr 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="cb395"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb395-1"><a href="#cb395-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb395-2"><a href="#cb395-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span> -<span id="cb395-3"><a href="#cb395-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb395-4"><a href="#cb395-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb395-5"><a href="#cb395-5" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb395-6"><a href="#cb395-6" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb395-7"><a href="#cb395-7" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb395-8"><a href="#cb395-8" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb395-9"><a href="#cb395-9" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb395-10"><a href="#cb395-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb395-11"><a href="#cb395-11" aria-hidden="true" tabindex="-1"></a>: Demonstration of pipe table syntax.</span> -<span id="cb395-12"><a href="#cb395-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb395-13"><a href="#cb395-13" aria-hidden="true" tabindex="-1"></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="cb396"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb396-1"><a href="#cb396-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb396-1"><a href="#cb396-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb396-2"><a href="#cb396-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span> +<span id="cb396-3"><a href="#cb396-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb396-4"><a href="#cb396-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb396-5"><a href="#cb396-5" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb396-6"><a href="#cb396-6" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb396-7"><a href="#cb396-7" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb396-8"><a href="#cb396-8" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb396-9"><a href="#cb396-9" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb396-10"><a href="#cb396-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb396-11"><a href="#cb396-11" aria-hidden="true" tabindex="-1"></a>: Demonstration of pipe table syntax.</span> +<span id="cb396-12"><a href="#cb396-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb396-13"><a href="#cb396-13" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></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> @@ -6832,27 +6922,27 @@ contain the following text:</p> 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="cb397"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb397-1"><a href="#cb397-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb397-2"><a href="#cb397-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> -<span id="cb397-3"><a href="#cb397-3" aria-hidden="true" tabindex="-1"></a> [</span> -<span id="cb397-4"><a href="#cb397-4" aria-hidden="true" tabindex="-1"></a> pipeTables = yes,</span> -<span id="cb397-5"><a href="#cb397-5" aria-hidden="true" tabindex="-1"></a> tableCaptions = yes,</span> -<span id="cb397-6"><a href="#cb397-6" aria-hidden="true" tabindex="-1"></a> ]</span> -<span id="cb397-7"><a href="#cb397-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb397-8"><a href="#cb397-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb397-9"><a href="#cb397-9" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb397-10"><a href="#cb397-10" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb397-11"><a href="#cb397-11" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb397-12"><a href="#cb397-12" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb397-13"><a href="#cb397-13" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb397-14"><a href="#cb397-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb397-15"><a href="#cb397-15" aria-hidden="true" tabindex="-1"></a>: Demonstration of pipe table syntax.</span> -<span id="cb397-16"><a href="#cb397-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb397-17"><a href="#cb397-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb398"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb398-1"><a href="#cb398-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb398-1"><a href="#cb398-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb398-2"><a href="#cb398-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> +<span id="cb398-3"><a href="#cb398-3" aria-hidden="true" tabindex="-1"></a> [</span> +<span id="cb398-4"><a href="#cb398-4" aria-hidden="true" tabindex="-1"></a> pipeTables = yes,</span> +<span id="cb398-5"><a href="#cb398-5" aria-hidden="true" tabindex="-1"></a> tableCaptions = yes,</span> +<span id="cb398-6"><a href="#cb398-6" aria-hidden="true" tabindex="-1"></a> ]</span> +<span id="cb398-7"><a href="#cb398-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb398-8"><a href="#cb398-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb398-9"><a href="#cb398-9" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb398-10"><a href="#cb398-10" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb398-11"><a href="#cb398-11" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb398-12"><a href="#cb398-12" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb398-13"><a href="#cb398-13" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb398-14"><a href="#cb398-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb398-15"><a href="#cb398-15" aria-hidden="true" tabindex="-1"></a>: Demonstration of pipe table syntax.</span> +<span id="cb398-16"><a href="#cb398-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb398-17"><a href="#cb398-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -6888,8 +6978,8 @@ contain the following text:</p> </tbody> </table> </blockquote> -<h4 data-number="2.2.1.56" id="option-tasklists"><span -class="header-section-number">2.2.1.56</span> Option +<h4 data-number="2.2.1.58" id="option-tasklists"><span +class="header-section-number">2.2.1.58</span> Option <code>taskLists</code></h4> <dl> <dt><code>taskLists</code> (default value: <code>false</code>)</dt> @@ -6900,10 +6990,10 @@ class="header-section-number">2.2.1.56</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-task_lists">task list syntax extension</a>:</p> -<div class="sourceCode" id="cb399"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb399-1"><a href="#cb399-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span><span class="va">[ ]</span> an unticked task list item</span> -<span id="cb399-2"><a href="#cb399-2" aria-hidden="true" tabindex="-1"></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="cb399-3"><a href="#cb399-3" aria-hidden="true" tabindex="-1"></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="cb400"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb400-1"><a href="#cb400-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span><span class="va">[ ]</span> an unticked task list item</span> +<span id="cb400-2"><a href="#cb400-2" aria-hidden="true" tabindex="-1"></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="cb400-3"><a href="#cb400-3" aria-hidden="true" tabindex="-1"></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> @@ -6920,26 +7010,26 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb399-1"><a hr 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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb400-2"><a href="#cb400-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span> -<span id="cb400-3"><a href="#cb400-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb400-4"><a href="#cb400-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb400-5"><a href="#cb400-5" aria-hidden="true" tabindex="-1"></a> untickedBox = No,</span> -<span id="cb400-6"><a href="#cb400-6" aria-hidden="true" tabindex="-1"></a> halfTickedBox = Maybe,</span> -<span id="cb400-7"><a href="#cb400-7" aria-hidden="true" tabindex="-1"></a> tickedBox = Yes,</span> -<span id="cb400-8"><a href="#cb400-8" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb400-9"><a href="#cb400-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb400-10"><a href="#cb400-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb400-11"><a href="#cb400-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb400-12"><a href="#cb400-12" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> -<span id="cb400-13"><a href="#cb400-13" aria-hidden="true" tabindex="-1"></a>- [/] I can?</span> -<span id="cb400-14"><a href="#cb400-14" aria-hidden="true" tabindex="-1"></a>- [X] I can!</span> -<span id="cb400-15"><a href="#cb400-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb400-16"><a href="#cb400-16" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb401-1"><a href="#cb401-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb401-2"><a href="#cb401-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span> +<span id="cb401-3"><a href="#cb401-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb401-4"><a href="#cb401-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb401-5"><a href="#cb401-5" aria-hidden="true" tabindex="-1"></a> untickedBox = No,</span> +<span id="cb401-6"><a href="#cb401-6" aria-hidden="true" tabindex="-1"></a> halfTickedBox = Maybe,</span> +<span id="cb401-7"><a href="#cb401-7" aria-hidden="true" tabindex="-1"></a> tickedBox = Yes,</span> +<span id="cb401-8"><a href="#cb401-8" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb401-9"><a href="#cb401-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb401-10"><a href="#cb401-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb401-11"><a href="#cb401-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb401-12"><a href="#cb401-12" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> +<span id="cb401-13"><a href="#cb401-13" aria-hidden="true" tabindex="-1"></a>- [/] I can?</span> +<span id="cb401-14"><a href="#cb401-14" aria-hidden="true" tabindex="-1"></a>- [X] I can!</span> +<span id="cb401-15"><a href="#cb401-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb401-16"><a href="#cb401-16" aria-hidden="true" tabindex="-1"></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="cb402"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb402-1"><a href="#cb402-1" aria-hidden="true" tabindex="-1"></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> @@ -6953,22 +7043,22 @@ contain the following text:</p> 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" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb402-2"><a href="#cb402-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[taskLists = yes]</span> -<span id="cb402-3"><a href="#cb402-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span> -<span id="cb402-4"><a href="#cb402-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHalftickedBox</span>{Maybe}</span> -<span id="cb402-5"><a href="#cb402-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span> -<span id="cb402-6"><a href="#cb402-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb402-7"><a href="#cb402-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb402-8"><a href="#cb402-8" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> -<span id="cb402-9"><a href="#cb402-9" aria-hidden="true" tabindex="-1"></a>- [/] I can?</span> -<span id="cb402-10"><a href="#cb402-10" aria-hidden="true" tabindex="-1"></a>- [X] I can!</span> -<span id="cb402-11"><a href="#cb402-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb402-12"><a href="#cb402-12" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb403-1"><a href="#cb403-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb403-2"><a href="#cb403-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[taskLists = yes]</span> +<span id="cb403-3"><a href="#cb403-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span> +<span id="cb403-4"><a href="#cb403-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHalftickedBox</span>{Maybe}</span> +<span id="cb403-5"><a href="#cb403-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span> +<span id="cb403-6"><a href="#cb403-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb403-7"><a href="#cb403-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb403-8"><a href="#cb403-8" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> +<span id="cb403-9"><a href="#cb403-9" aria-hidden="true" tabindex="-1"></a>- [/] I can?</span> +<span id="cb403-10"><a href="#cb403-10" aria-hidden="true" tabindex="-1"></a>- [X] I can!</span> +<span id="cb403-11"><a href="#cb403-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb403-12"><a href="#cb403-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -6978,8 +7068,8 @@ contain the following text:</p> <li>Yes I can!</li> </ul> </blockquote> -<h4 data-number="2.2.1.57" id="option-texcomments"><span -class="header-section-number">2.2.1.57</span> Option +<h4 data-number="2.2.1.59" id="option-texcomments"><span +class="header-section-number">2.2.1.59</span> Option <code>texComments</code></h4> <dl> <dt><code>texComments</code> (default value: <code>false</code>)</dt> @@ -6988,15 +7078,15 @@ class="header-section-number">2.2.1.57</span> Option <dt>true</dt> <dd> <p>Strip <span class="tex">T<sub>e</sub>X</span>-style comments.</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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb404-2"><a href="#cb404-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span> -<span id="cb404-3"><a href="#cb404-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb404-4"><a href="#cb404-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb404-5"><a href="#cb404-5" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> -<span id="cb404-6"><a href="#cb404-6" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> -<span id="cb404-7"><a href="#cb404-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb404-8"><a href="#cb404-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</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" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb405-2"><a href="#cb405-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span> +<span id="cb405-3"><a href="#cb405-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb405-4"><a href="#cb405-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb405-5"><a href="#cb405-5" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> +<span id="cb405-6"><a href="#cb405-6" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> +<span id="cb405-7"><a href="#cb405-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb405-8"><a href="#cb405-8" aria-hidden="true" tabindex="-1"></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> @@ -7016,57 +7106,57 @@ comments.</p> 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="cb405"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb405-1"><a href="#cb405-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb405-2"><a href="#cb405-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexComments</span>{true}</span> -<span id="cb405-3"><a href="#cb405-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb405-4"><a href="#cb405-4" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> -<span id="cb405-5"><a href="#cb405-5" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> -<span id="cb405-6"><a href="#cb405-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb405-7"><a href="#cb405-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb406-1"><a href="#cb406-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb406-2"><a href="#cb406-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexComments</span>{true}</span> +<span id="cb406-3"><a href="#cb406-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb406-4"><a href="#cb406-4" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> +<span id="cb406-5"><a href="#cb406-5" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> +<span id="cb406-6"><a href="#cb406-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb406-7"><a href="#cb406-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></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" 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="cb407"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb407-1"><a href="#cb407-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb407-2"><a href="#cb407-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span> -<span id="cb407-3"><a href="#cb407-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb407-4"><a href="#cb407-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb407-5"><a href="#cb407-5" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> -<span id="cb407-6"><a href="#cb407-6" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> -<span id="cb407-7"><a href="#cb407-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb407-8"><a href="#cb407-8" aria-hidden="true" tabindex="-1"></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="cb408"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb408-1"><a href="#cb408-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb408-1"><a href="#cb408-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb408-2"><a href="#cb408-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texComments]{<span class="ex">markdown</span>}</span> +<span id="cb408-3"><a href="#cb408-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb408-4"><a href="#cb408-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb408-5"><a href="#cb408-5" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> +<span id="cb408-6"><a href="#cb408-6" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> +<span id="cb408-7"><a href="#cb408-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb408-8"><a href="#cb408-8" aria-hidden="true" tabindex="-1"></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="cb409"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb409-1"><a href="#cb409-1" aria-hidden="true" tabindex="-1"></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" 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="cb409"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb409-1"><a href="#cb409-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb409-2"><a href="#cb409-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texComments = yes]</span> -<span id="cb409-3"><a href="#cb409-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb409-4"><a href="#cb409-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb409-5"><a href="#cb409-5" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> -<span id="cb409-6"><a href="#cb409-6" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> -<span id="cb409-7"><a href="#cb409-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb409-8"><a href="#cb409-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb410-1"><a href="#cb410-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb410-2"><a href="#cb410-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texComments = yes]</span> +<span id="cb410-3"><a href="#cb410-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb410-4"><a href="#cb410-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb410-5"><a href="#cb410-5" aria-hidden="true" tabindex="-1"></a>Hel<span class="co">% this is a comment</span></span> +<span id="cb410-6"><a href="#cb410-6" aria-hidden="true" tabindex="-1"></a> lo *world*!</span> +<span id="cb410-7"><a href="#cb410-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb410-8"><a href="#cb410-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> -<h4 data-number="2.2.1.58" id="option-texmathdollars"><span -class="header-section-number">2.2.1.58</span> Option +<h4 data-number="2.2.1.60" id="option-texmathdollars"><span +class="header-section-number">2.2.1.60</span> Option <code>texMathDollars</code></h4> <dl> <dt><code>texMathDollars</code> (default value: <code>false</code>)</dt> @@ -7077,10 +7167,10 @@ class="header-section-number">2.2.1.58</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-tex_math_dollars">dollar math syntax extension</a>:</p> -<div class="sourceCode" id="cb411"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb411-1"><a href="#cb411-1" aria-hidden="true" tabindex="-1"></a><span class="an">inline math:</span><span class="co"> $E=mc^2$</span></span> -<span id="cb411-2"><a href="#cb411-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb411-3"><a href="#cb411-3" aria-hidden="true" tabindex="-1"></a>display math: $$E=mc^2$$</span></code></pre></div> +<div class="sourceCode" id="cb412"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb412-1"><a href="#cb412-1" aria-hidden="true" tabindex="-1"></a><span class="an">inline math:</span><span class="co"> $E=mc^2$</span></span> +<span id="cb412-2"><a href="#cb412-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb412-3"><a href="#cb412-3" aria-hidden="true" tabindex="-1"></a>display math: $$E=mc^2$$</span></code></pre></div> </dd> </dl> </dd> @@ -7097,25 +7187,25 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb411-1"><a hr 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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb412-2"><a href="#cb412-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb412-3"><a href="#cb412-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb412-4"><a href="#cb412-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb412-5"><a href="#cb412-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb412-6"><a href="#cb412-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb412-7"><a href="#cb412-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb412-8"><a href="#cb412-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb412-9"><a href="#cb412-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({texMathDollars = true})</span> -<span id="cb412-10"><a href="#cb412-10" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb412-11"><a href="#cb412-11" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">$E=mc^2$</span>]] .. newline .. newline ..</span> -<span id="cb412-12"><a href="#cb412-12" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span>]]</span> -<span id="cb412-13"><a href="#cb412-13" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb412-14"><a href="#cb412-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb412-15"><a href="#cb412-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Then, 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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb413-1"><a href="#cb413-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb413-2"><a href="#cb413-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb413-3"><a href="#cb413-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb413-4"><a href="#cb413-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb413-5"><a href="#cb413-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb413-6"><a href="#cb413-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb413-7"><a href="#cb413-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb413-8"><a href="#cb413-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb413-9"><a href="#cb413-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({texMathDollars = true})</span> +<span id="cb413-10"><a href="#cb413-10" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb413-11"><a href="#cb413-11" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">$E=mc^2$</span>]] .. newline .. newline ..</span> +<span id="cb413-12"><a href="#cb413-12" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span>]]</span> +<span id="cb413-13"><a href="#cb413-13" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb413-14"><a href="#cb413-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb413-15"><a href="#cb413-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Then, 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" tabindex="-1"></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> @@ -7127,28 +7217,28 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â <h5 class="unnumbered" id="lua-cli-example-12">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="cb414"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb414-1"><a href="#cb414-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb414-2"><a href="#cb414-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb414-3"><a href="#cb414-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb414-4"><a href="#cb414-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb414-5"><a href="#cb414-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb414-6"><a href="#cb414-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb414-7"><a href="#cb414-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb414-8"><a href="#cb414-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb414-9"><a href="#cb414-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb414-10"><a href="#cb414-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb415-2"><a href="#cb415-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb415-3"><a href="#cb415-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb415-4"><a href="#cb415-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb415-5"><a href="#cb415-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb415-6"><a href="#cb415-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb415-7"><a href="#cb415-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb415-8"><a href="#cb415-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb415-9"><a href="#cb415-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb415-10"><a href="#cb415-10" aria-hidden="true" tabindex="-1"></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="cb415"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb415-1"><a href="#cb415-1" aria-hidden="true" tabindex="-1"></a>$E=mc^2$</span> -<span id="cb415-2"><a href="#cb415-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb415-3"><a href="#cb415-3" aria-hidden="true" tabindex="-1"></a>$$\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx$$</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb416-2"><a href="#cb416-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠texMathDollars=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb416-3"><a href="#cb416-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb416-1"><a href="#cb416-1" aria-hidden="true" tabindex="-1"></a>$E=mc^2$</span> +<span id="cb416-2"><a href="#cb416-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb416-3"><a href="#cb416-3" aria-hidden="true" tabindex="-1"></a>$$\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx$$</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb417-2"><a href="#cb417-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠texMathDollars=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb417-3"><a href="#cb417-3" aria-hidden="true" tabindex="-1"></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 @@ -7173,20 +7263,20 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb417"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb417-1"><a href="#cb417-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb417-2"><a href="#cb417-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb417-3"><a href="#cb417-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDollars</span>{true}</span> -<span id="cb417-4"><a href="#cb417-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb417-5"><a href="#cb417-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> -<span id="cb417-6"><a href="#cb417-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb417-7"><a href="#cb417-7" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> -<span id="cb417-8"><a href="#cb417-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb417-9"><a href="#cb417-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb417-10"><a href="#cb417-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb418-1"><a href="#cb418-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb418-2"><a href="#cb418-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb418-3"><a href="#cb418-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDollars</span>{true}</span> +<span id="cb418-4"><a href="#cb418-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb418-5"><a href="#cb418-5" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> +<span id="cb418-6"><a href="#cb418-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb418-7"><a href="#cb418-7" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> +<span id="cb418-8"><a href="#cb418-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb418-9"><a href="#cb418-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb418-10"><a href="#cb418-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></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> @@ -7199,21 +7289,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb419"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb419-1"><a href="#cb419-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb419-2"><a href="#cb419-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathDollars]{<span class="ex">markdown</span>}</span> -<span id="cb419-3"><a href="#cb419-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb419-4"><a href="#cb419-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb419-5"><a href="#cb419-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb419-6"><a href="#cb419-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> -<span id="cb419-7"><a href="#cb419-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb419-8"><a href="#cb419-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> -<span id="cb419-9"><a href="#cb419-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb419-10"><a href="#cb419-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb419-11"><a href="#cb419-11" aria-hidden="true" tabindex="-1"></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="cb420"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb420-1"><a href="#cb420-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb420-1"><a href="#cb420-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb420-2"><a href="#cb420-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathDollars]{<span class="ex">markdown</span>}</span> +<span id="cb420-3"><a href="#cb420-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb420-4"><a href="#cb420-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb420-5"><a href="#cb420-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb420-6"><a href="#cb420-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> +<span id="cb420-7"><a href="#cb420-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb420-8"><a href="#cb420-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> +<span id="cb420-9"><a href="#cb420-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb420-10"><a href="#cb420-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb420-11"><a href="#cb420-11" aria-hidden="true" tabindex="-1"></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="cb421"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb421-1"><a href="#cb421-1" aria-hidden="true" tabindex="-1"></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> @@ -7226,21 +7316,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb421"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb421-1"><a href="#cb421-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb421-2"><a href="#cb421-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathDollars = yes]</span> -<span id="cb421-3"><a href="#cb421-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb421-4"><a href="#cb421-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb421-5"><a href="#cb421-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb421-6"><a href="#cb421-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> -<span id="cb421-7"><a href="#cb421-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb421-8"><a href="#cb421-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> -<span id="cb421-9"><a href="#cb421-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb421-10"><a href="#cb421-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb421-11"><a href="#cb421-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb422-1"><a href="#cb422-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb422-2"><a href="#cb422-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathDollars = yes]</span> +<span id="cb422-3"><a href="#cb422-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb422-4"><a href="#cb422-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb422-5"><a href="#cb422-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb422-6"><a href="#cb422-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> +<span id="cb422-7"><a href="#cb422-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb422-8"><a href="#cb422-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> +<span id="cb422-9"><a href="#cb422-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb422-10"><a href="#cb422-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb422-11"><a href="#cb422-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -7249,8 +7339,8 @@ class="math inline"><em>E</em>â=â<em>m</em><em>c</em><sup>2</sup></span></p> <p><span class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â</sup><em>f</em>(<em>x</em>)<em>e</em><sup>â<em>i</em>2<em>Ď</em><em>Ξ</em><em>x</em></sup><em>d</em><em>x</em></span></p> </blockquote> -<h4 data-number="2.2.1.59" id="option-texmathdoublebackslash"><span -class="header-section-number">2.2.1.59</span> Option +<h4 data-number="2.2.1.61" id="option-texmathdoublebackslash"><span +class="header-section-number">2.2.1.61</span> Option <code>texMathDoubleBackslash</code></h4> <dl> <dt><code>texMathDoubleBackslash</code> (default value: @@ -7262,10 +7352,10 @@ class="header-section-number">2.2.1.59</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-tex_math_double_backslash">double backslash math syntax extension</a>:</p> -<div class="sourceCode" id="cb423"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb423-1"><a href="#cb423-1" aria-hidden="true" tabindex="-1"></a><span class="an">inline math:</span><span class="co"> \\(E=mc^2\\)</span></span> -<span id="cb423-2"><a href="#cb423-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb423-3"><a href="#cb423-3" aria-hidden="true" tabindex="-1"></a>display math: <span class="sc">\\</span><span class="co">[</span><span class="ot">E=mc^2\\]</span></span></code></pre></div> +<div class="sourceCode" id="cb424"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb424-1"><a href="#cb424-1" aria-hidden="true" tabindex="-1"></a><span class="an">inline math:</span><span class="co"> \\(E=mc^2\\)</span></span> +<span id="cb424-2"><a href="#cb424-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb424-3"><a href="#cb424-3" aria-hidden="true" tabindex="-1"></a>display math: <span class="sc">\\</span><span class="co">[</span><span class="ot">E=mc^2\\]</span></span></code></pre></div> </dd> </dl> </dd> @@ -7282,25 +7372,25 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb423-1"><a hr 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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb424-2"><a href="#cb424-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb424-3"><a href="#cb424-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb424-4"><a href="#cb424-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb424-5"><a href="#cb424-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb424-6"><a href="#cb424-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb424-7"><a href="#cb424-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb424-8"><a href="#cb424-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb424-9"><a href="#cb424-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({texMathDoubleBackslash = true})</span> -<span id="cb424-10"><a href="#cb424-10" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb424-11"><a href="#cb424-11" aria-hidden="true" tabindex="-1"></a> [[<span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)]] .. newline .. newline ..</span> -<span id="cb424-12"><a href="#cb424-12" aria-hidden="true" tabindex="-1"></a> [[<span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]]]</span> -<span id="cb424-13"><a href="#cb424-13" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb424-14"><a href="#cb424-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb424-15"><a href="#cb424-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Then, 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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb425-1"><a href="#cb425-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb425-2"><a href="#cb425-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb425-3"><a href="#cb425-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb425-4"><a href="#cb425-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb425-5"><a href="#cb425-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb425-6"><a href="#cb425-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb425-7"><a href="#cb425-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb425-8"><a href="#cb425-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb425-9"><a href="#cb425-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({texMathDoubleBackslash = true})</span> +<span id="cb425-10"><a href="#cb425-10" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb425-11"><a href="#cb425-11" aria-hidden="true" tabindex="-1"></a> [[<span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)]] .. newline .. newline ..</span> +<span id="cb425-12"><a href="#cb425-12" aria-hidden="true" tabindex="-1"></a> [[<span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]]]</span> +<span id="cb425-13"><a href="#cb425-13" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb425-14"><a href="#cb425-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb425-15"><a href="#cb425-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Then, 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" tabindex="-1"></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> @@ -7312,28 +7402,28 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â <h5 class="unnumbered" id="lua-cli-example-13">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="cb426"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb426-1"><a href="#cb426-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb426-2"><a href="#cb426-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb426-3"><a href="#cb426-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb426-4"><a href="#cb426-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb426-5"><a href="#cb426-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb426-6"><a href="#cb426-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb426-7"><a href="#cb426-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb426-8"><a href="#cb426-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb426-9"><a href="#cb426-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb426-10"><a href="#cb426-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb427-2"><a href="#cb427-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb427-3"><a href="#cb427-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb427-4"><a href="#cb427-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb427-5"><a href="#cb427-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb427-6"><a href="#cb427-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb427-7"><a href="#cb427-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb427-8"><a href="#cb427-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb427-9"><a href="#cb427-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb427-10"><a href="#cb427-10" aria-hidden="true" tabindex="-1"></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="cb427"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb427-1"><a href="#cb427-1" aria-hidden="true" tabindex="-1"></a><span class="sc">\\</span>(E=mc^2<span class="sc">\\</span>)</span> -<span id="cb427-2"><a href="#cb427-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb427-3"><a href="#cb427-3" aria-hidden="true" tabindex="-1"></a><span class="sc">\\</span><span class="co">[</span><span class="ot">\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\]</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb428-2"><a href="#cb428-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠texMathDoubleBackslash=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb428-3"><a href="#cb428-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb428-1"><a href="#cb428-1" aria-hidden="true" tabindex="-1"></a><span class="sc">\\</span>(E=mc^2<span class="sc">\\</span>)</span> +<span id="cb428-2"><a href="#cb428-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb428-3"><a href="#cb428-3" aria-hidden="true" tabindex="-1"></a><span class="sc">\\</span><span class="co">[</span><span class="ot">\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx\\]</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb429-2"><a href="#cb429-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠texMathDoubleBackslash=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb429-3"><a href="#cb429-3" aria-hidden="true" tabindex="-1"></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 @@ -7347,9 +7437,8 @@ title="Kpathsea - TeX Users Group">Kpathsea</a>.</p> contain the following text:</p> <blockquote> <p>\(E=mc^2\)</p> -<p>\<span class="math display">$$\hat{f} \left ( \xi \right )= -\int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} -dx\$$</span></p> +<p>\[\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x +\right ) e^{-i2\pi \xi x} dx\]</p> <p><span class="math inline"><em>E</em>â=â<em>m</em><em>c</em><sup>2</sup></span></p> <p><span @@ -7359,20 +7448,20 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb429"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb429-1"><a href="#cb429-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb429-2"><a href="#cb429-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb429-3"><a href="#cb429-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDoubleBackslash</span>{true}</span> -<span id="cb429-4"><a href="#cb429-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb429-5"><a href="#cb429-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)</span> -<span id="cb429-6"><a href="#cb429-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb429-7"><a href="#cb429-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]</span> -<span id="cb429-8"><a href="#cb429-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb429-9"><a href="#cb429-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb429-10"><a href="#cb429-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb430"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb430-1"><a href="#cb430-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb430-1"><a href="#cb430-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb430-2"><a href="#cb430-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb430-3"><a href="#cb430-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDoubleBackslash</span>{true}</span> +<span id="cb430-4"><a href="#cb430-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb430-5"><a href="#cb430-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)</span> +<span id="cb430-6"><a href="#cb430-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb430-7"><a href="#cb430-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]</span> +<span id="cb430-8"><a href="#cb430-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb430-9"><a href="#cb430-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb430-10"><a href="#cb430-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb431"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb431-1"><a href="#cb431-1" aria-hidden="true" tabindex="-1"></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> @@ -7385,21 +7474,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb431"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb431-1"><a href="#cb431-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb431-2"><a href="#cb431-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathDoubleBackslash]{<span class="ex">markdown</span>}</span> -<span id="cb431-3"><a href="#cb431-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb431-4"><a href="#cb431-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb431-5"><a href="#cb431-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb431-6"><a href="#cb431-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)</span> -<span id="cb431-7"><a href="#cb431-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb431-8"><a href="#cb431-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]</span> -<span id="cb431-9"><a href="#cb431-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb431-10"><a href="#cb431-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb431-11"><a href="#cb431-11" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb432-1"><a href="#cb432-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb432-2"><a href="#cb432-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathDoubleBackslash]{<span class="ex">markdown</span>}</span> +<span id="cb432-3"><a href="#cb432-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb432-4"><a href="#cb432-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb432-5"><a href="#cb432-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb432-6"><a href="#cb432-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)</span> +<span id="cb432-7"><a href="#cb432-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb432-8"><a href="#cb432-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]</span> +<span id="cb432-9"><a href="#cb432-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb432-10"><a href="#cb432-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb432-11"><a href="#cb432-11" aria-hidden="true" tabindex="-1"></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="cb433"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb433-1"><a href="#cb433-1" aria-hidden="true" tabindex="-1"></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> @@ -7412,21 +7501,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb433"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb433-1"><a href="#cb433-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb433-2"><a href="#cb433-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathDoubleBackslash = yes]</span> -<span id="cb433-3"><a href="#cb433-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb433-4"><a href="#cb433-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb433-5"><a href="#cb433-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb433-6"><a href="#cb433-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)</span> -<span id="cb433-7"><a href="#cb433-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb433-8"><a href="#cb433-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]</span> -<span id="cb433-9"><a href="#cb433-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb433-10"><a href="#cb433-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb433-11"><a href="#cb433-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb434"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb434-1"><a href="#cb434-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb434-1"><a href="#cb434-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb434-2"><a href="#cb434-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathDoubleBackslash = yes]</span> +<span id="cb434-3"><a href="#cb434-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb434-4"><a href="#cb434-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb434-5"><a href="#cb434-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb434-6"><a href="#cb434-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>(E=mc^2<span class="fu">\\</span>)</span> +<span id="cb434-7"><a href="#cb434-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb434-8"><a href="#cb434-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\\</span>[<span class="fu">\hat</span>{f} <span class="fu">\left</span> ( <span class="fu">\xi</span> <span class="fu">\right</span> )= <span class="fu">\int</span>_{-<span class="fu">\infty</span>}^{<span class="fu">\infty</span>} f<span class="fu">\left</span> ( x <span class="fu">\right</span> ) e^{-i2<span class="fu">\pi</span> <span class="fu">\xi</span> x} dx<span class="fu">\\</span>]</span> +<span id="cb434-9"><a href="#cb434-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb434-10"><a href="#cb434-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb434-11"><a href="#cb434-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -7435,8 +7524,8 @@ class="math inline"><em>E</em>â=â<em>m</em><em>c</em><sup>2</sup></span></p> <p><span class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â</sup><em>f</em>(<em>x</em>)<em>e</em><sup>â<em>i</em>2<em>Ď</em><em>Ξ</em><em>x</em></sup><em>d</em><em>x</em></span></p> </blockquote> -<h4 data-number="2.2.1.60" id="option-texmathsinglebackslash"><span -class="header-section-number">2.2.1.60</span> Option +<h4 data-number="2.2.1.62" id="option-texmathsinglebackslash"><span +class="header-section-number">2.2.1.62</span> Option <code>texMathSingleBackslash</code></h4> <dl> <dt><code>texMathSingleBackslash</code> (default value: @@ -7448,10 +7537,10 @@ class="header-section-number">2.2.1.60</span> Option <p>Enable the Pandoc <a href="https://pandoc.org/MANUAL.html#extension-tex_math_single_backslash">single backslash math syntax extension</a>:</p> -<div class="sourceCode" id="cb435"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb435-1"><a href="#cb435-1" aria-hidden="true" tabindex="-1"></a><span class="an">inline math:</span><span class="co"> \(E=mc^2\)</span></span> -<span id="cb435-2"><a href="#cb435-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb435-3"><a href="#cb435-3" aria-hidden="true" tabindex="-1"></a>display math: <span class="sc">\[</span>E=mc^2<span class="sc">\]</span></span></code></pre></div> +<div class="sourceCode" id="cb436"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb436-1"><a href="#cb436-1" aria-hidden="true" tabindex="-1"></a><span class="an">inline math:</span><span class="co"> \(E=mc^2\)</span></span> +<span id="cb436-2"><a href="#cb436-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb436-3"><a href="#cb436-3" aria-hidden="true" tabindex="-1"></a>display math: <span class="sc">\[</span>E=mc^2<span class="sc">\]</span></span></code></pre></div> </dd> </dl> </dd> @@ -7468,25 +7557,25 @@ class="sourceCode md"><code class="sourceCode markdown"><span id="cb435-1"><a hr 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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb436-2"><a href="#cb436-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb436-3"><a href="#cb436-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb436-4"><a href="#cb436-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb436-5"><a href="#cb436-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb436-6"><a href="#cb436-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> -<span id="cb436-7"><a href="#cb436-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> -<span id="cb436-8"><a href="#cb436-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> -<span id="cb436-9"><a href="#cb436-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({texMathSingleBackslash = true})</span> -<span id="cb436-10"><a href="#cb436-10" aria-hidden="true" tabindex="-1"></a> local input =</span> -<span id="cb436-11"><a href="#cb436-11" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">\(E=mc^2\)</span>]] .. newline .. newline ..</span> -<span id="cb436-12"><a href="#cb436-12" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span>]]</span> -<span id="cb436-13"><a href="#cb436-13" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> -<span id="cb436-14"><a href="#cb436-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb436-15"><a href="#cb436-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Then, 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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb437-1"><a href="#cb437-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb437-2"><a href="#cb437-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb437-3"><a href="#cb437-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb437-4"><a href="#cb437-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb437-5"><a href="#cb437-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb437-6"><a href="#cb437-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\directlua</span>{</span> +<span id="cb437-7"><a href="#cb437-7" aria-hidden="true" tabindex="-1"></a> local markdown = require("markdown")</span> +<span id="cb437-8"><a href="#cb437-8" aria-hidden="true" tabindex="-1"></a> local newline = [[^^J^^J]]</span> +<span id="cb437-9"><a href="#cb437-9" aria-hidden="true" tabindex="-1"></a> local convert = markdown.new({texMathSingleBackslash = true})</span> +<span id="cb437-10"><a href="#cb437-10" aria-hidden="true" tabindex="-1"></a> local input =</span> +<span id="cb437-11"><a href="#cb437-11" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">\(E=mc^2\)</span>]] .. newline .. newline ..</span> +<span id="cb437-12"><a href="#cb437-12" aria-hidden="true" tabindex="-1"></a> [[<span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span>]]</span> +<span id="cb437-13"><a href="#cb437-13" aria-hidden="true" tabindex="-1"></a> tex.sprint(convert(input)) }</span> +<span id="cb437-14"><a href="#cb437-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb437-15"><a href="#cb437-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Then, 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" tabindex="-1"></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> @@ -7498,28 +7587,28 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â <h5 class="unnumbered" id="lua-cli-example-14">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="cb438"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb438-1"><a href="#cb438-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb438-2"><a href="#cb438-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb438-3"><a href="#cb438-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb438-4"><a href="#cb438-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb438-5"><a href="#cb438-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> -<span id="cb438-6"><a href="#cb438-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> -<span id="cb438-7"><a href="#cb438-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> -<span id="cb438-8"><a href="#cb438-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> -<span id="cb438-9"><a href="#cb438-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb438-10"><a href="#cb438-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></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" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb439-2"><a href="#cb439-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb439-3"><a href="#cb439-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb439-4"><a href="#cb439-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb439-5"><a href="#cb439-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\#</span>=12</span> +<span id="cb439-6"><a href="#cb439-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optionfalse</span> +<span id="cb439-7"><a href="#cb439-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\par</span></span> +<span id="cb439-8"><a href="#cb439-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> optiontrue</span> +<span id="cb439-9"><a href="#cb439-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb439-10"><a href="#cb439-10" aria-hidden="true" tabindex="-1"></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="cb439"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb439-1"><a href="#cb439-1" aria-hidden="true" tabindex="-1"></a><span class="sc">\(</span>E=mc^2<span class="sc">\)</span></span> -<span id="cb439-2"><a href="#cb439-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb439-3"><a href="#cb439-3" aria-hidden="true" tabindex="-1"></a><span class="sc">\[</span>\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx<span class="sc">\]</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> -<span id="cb440-2"><a href="#cb440-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠texMathSingleBackslash=true <span class="at">--</span> content.md optiontrue.tex</span> -<span id="cb440-3"><a href="#cb440-3" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb440-1"><a href="#cb440-1" aria-hidden="true" tabindex="-1"></a><span class="sc">\(</span>E=mc^2<span class="sc">\)</span></span> +<span id="cb440-2"><a href="#cb440-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb440-3"><a href="#cb440-3" aria-hidden="true" tabindex="-1"></a><span class="sc">\[</span>\hat{f} \left ( \xi \right )= \int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} dx<span class="sc">\]</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" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠<span class="at">--</span> content.md optionfalse.tex</span> +<span id="cb441-2"><a href="#cb441-2" aria-hidden="true" tabindex="-1"></a><span class="ex">texlua</span> â¨CLI pathname⊠texMathSingleBackslash=true <span class="at">--</span> content.md optiontrue.tex</span> +<span id="cb441-3"><a href="#cb441-3" aria-hidden="true" tabindex="-1"></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 @@ -7544,20 +7633,20 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb441"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb441-1"><a href="#cb441-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb441-2"><a href="#cb441-2" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb441-3"><a href="#cb441-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathSingleBackslash</span>{true}</span> -<span id="cb441-4"><a href="#cb441-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb441-5"><a href="#cb441-5" aria-hidden="true" tabindex="-1"></a><span class="ss">\(E=mc^2\)</span></span> -<span id="cb441-6"><a href="#cb441-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb441-7"><a href="#cb441-7" aria-hidden="true" tabindex="-1"></a><span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span></span> -<span id="cb441-8"><a href="#cb441-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb441-9"><a href="#cb441-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb441-10"><a href="#cb441-10" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb442-1"><a href="#cb442-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb442-2"><a href="#cb442-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb442-3"><a href="#cb442-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathSingleBackslash</span>{true}</span> +<span id="cb442-4"><a href="#cb442-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb442-5"><a href="#cb442-5" aria-hidden="true" tabindex="-1"></a><span class="ss">\(E=mc^2\)</span></span> +<span id="cb442-6"><a href="#cb442-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb442-7"><a href="#cb442-7" aria-hidden="true" tabindex="-1"></a><span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span></span> +<span id="cb442-8"><a href="#cb442-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb442-9"><a href="#cb442-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb442-10"><a href="#cb442-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></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> @@ -7570,21 +7659,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb443"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb443-1"><a href="#cb443-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb443-2"><a href="#cb443-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathSingleBackslash]{<span class="ex">markdown</span>}</span> -<span id="cb443-3"><a href="#cb443-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb443-4"><a href="#cb443-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb443-5"><a href="#cb443-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb443-6"><a href="#cb443-6" aria-hidden="true" tabindex="-1"></a><span class="ss">\(E=mc^2\)</span></span> -<span id="cb443-7"><a href="#cb443-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb443-8"><a href="#cb443-8" aria-hidden="true" tabindex="-1"></a><span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span></span> -<span id="cb443-9"><a href="#cb443-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb443-10"><a href="#cb443-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb443-11"><a href="#cb443-11" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb444-1"><a href="#cb444-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb444-2"><a href="#cb444-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathSingleBackslash]{<span class="ex">markdown</span>}</span> +<span id="cb444-3"><a href="#cb444-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb444-4"><a href="#cb444-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb444-5"><a href="#cb444-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb444-6"><a href="#cb444-6" aria-hidden="true" tabindex="-1"></a><span class="ss">\(E=mc^2\)</span></span> +<span id="cb444-7"><a href="#cb444-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb444-8"><a href="#cb444-8" aria-hidden="true" tabindex="-1"></a><span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span></span> +<span id="cb444-9"><a href="#cb444-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb444-10"><a href="#cb444-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb444-11"><a href="#cb444-11" aria-hidden="true" tabindex="-1"></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="cb445"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb445-1"><a href="#cb445-1" aria-hidden="true" tabindex="-1"></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> @@ -7597,21 +7686,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb445"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb445-1"><a href="#cb445-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb445-2"><a href="#cb445-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathSingleBackslash = yes]</span> -<span id="cb445-3"><a href="#cb445-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb445-4"><a href="#cb445-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb445-5"><a href="#cb445-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb445-6"><a href="#cb445-6" aria-hidden="true" tabindex="-1"></a><span class="ss">\(E=mc^2\)</span></span> -<span id="cb445-7"><a href="#cb445-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb445-8"><a href="#cb445-8" aria-hidden="true" tabindex="-1"></a><span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span></span> -<span id="cb445-9"><a href="#cb445-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb445-10"><a href="#cb445-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb445-11"><a href="#cb445-11" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb446-1"><a href="#cb446-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb446-2"><a href="#cb446-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathSingleBackslash = yes]</span> +<span id="cb446-3"><a href="#cb446-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb446-4"><a href="#cb446-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb446-5"><a href="#cb446-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb446-6"><a href="#cb446-6" aria-hidden="true" tabindex="-1"></a><span class="ss">\(E=mc^2\)</span></span> +<span id="cb446-7"><a href="#cb446-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb446-8"><a href="#cb446-8" aria-hidden="true" tabindex="-1"></a><span class="ss">\[</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx\]</span></span> +<span id="cb446-9"><a href="#cb446-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb446-10"><a href="#cb446-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb446-11"><a href="#cb446-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -7620,8 +7709,8 @@ class="math inline"><em>E</em>â=â<em>m</em><em>c</em><sup>2</sup></span></p> <p><span class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â</sup><em>f</em>(<em>x</em>)<em>e</em><sup>â<em>i</em>2<em>Ď</em><em>Ξ</em><em>x</em></sup><em>d</em><em>x</em></span></p> </blockquote> -<h4 data-number="2.2.1.61" id="option-tightlists"><span -class="header-section-number">2.2.1.61</span> Option +<h4 data-number="2.2.1.63" id="option-tightlists"><span +class="header-section-number">2.2.1.63</span> Option <code>tightLists</code></h4> <dl> <dt><code>tightLists</code> (default value: <code>true</code>)</dt> @@ -7633,16 +7722,16 @@ class="header-section-number">2.2.1.61</span> Option paragraphs will be considered <em>tight</em>. Tight lists will produce tight renderers that may produce different output than lists that are not tight:</p> -<div class="sourceCode" id="cb447"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb447-1"><a href="#cb447-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>This is</span> -<span id="cb447-2"><a href="#cb447-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>a tight</span> -<span id="cb447-3"><a href="#cb447-3" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>unordered list.</span> -<span id="cb447-4"><a href="#cb447-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb447-5"><a href="#cb447-5" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>This is</span> -<span id="cb447-6"><a href="#cb447-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb447-7"><a href="#cb447-7" aria-hidden="true" tabindex="-1"></a> not a tight</span> -<span id="cb447-8"><a href="#cb447-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb447-9"><a href="#cb447-9" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>unordered list.</span></code></pre></div> +<div class="sourceCode" id="cb448"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb448-1"><a href="#cb448-1" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>This is</span> +<span id="cb448-2"><a href="#cb448-2" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>a tight</span> +<span id="cb448-3"><a href="#cb448-3" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>unordered list.</span> +<span id="cb448-4"><a href="#cb448-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb448-5"><a href="#cb448-5" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>This is</span> +<span id="cb448-6"><a href="#cb448-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb448-7"><a href="#cb448-7" aria-hidden="true" tabindex="-1"></a> not a tight</span> +<span id="cb448-8"><a href="#cb448-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb448-9"><a href="#cb448-9" aria-hidden="true" tabindex="-1"></a><span class="ss">- </span>unordered list.</span></code></pre></div> </dd> </dl> </dd> @@ -7661,39 +7750,39 @@ multiple paragraphs.</p> 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="cb448"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb448-1"><a href="#cb448-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb448-2"><a href="#cb448-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb448-3"><a href="#cb448-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb448-4"><a href="#cb448-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-5"><a href="#cb448-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb448-6"><a href="#cb448-6" aria-hidden="true" tabindex="-1"></a>The following list is tight:</span> -<span id="cb448-7"><a href="#cb448-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-8"><a href="#cb448-8" aria-hidden="true" tabindex="-1"></a>- first item</span> -<span id="cb448-9"><a href="#cb448-9" aria-hidden="true" tabindex="-1"></a>- second item</span> -<span id="cb448-10"><a href="#cb448-10" aria-hidden="true" tabindex="-1"></a>- third item</span> -<span id="cb448-11"><a href="#cb448-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-12"><a href="#cb448-12" aria-hidden="true" tabindex="-1"></a>The following list is loose:</span> -<span id="cb448-13"><a href="#cb448-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-14"><a href="#cb448-14" aria-hidden="true" tabindex="-1"></a>- first item</span> -<span id="cb448-15"><a href="#cb448-15" aria-hidden="true" tabindex="-1"></a>- second item that spans</span> -<span id="cb448-16"><a href="#cb448-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-17"><a href="#cb448-17" aria-hidden="true" tabindex="-1"></a> multiple paragraphs</span> -<span id="cb448-18"><a href="#cb448-18" aria-hidden="true" tabindex="-1"></a>- third item</span> -<span id="cb448-19"><a href="#cb448-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb448-20"><a href="#cb448-20" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-21"><a href="#cb448-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[tightLists=false]</span> -<span id="cb448-22"><a href="#cb448-22" aria-hidden="true" tabindex="-1"></a>The following list is now also loose:</span> -<span id="cb448-23"><a href="#cb448-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-24"><a href="#cb448-24" aria-hidden="true" tabindex="-1"></a>- first item</span> -<span id="cb448-25"><a href="#cb448-25" aria-hidden="true" tabindex="-1"></a>- second item</span> -<span id="cb448-26"><a href="#cb448-26" aria-hidden="true" tabindex="-1"></a>- third item</span> -<span id="cb448-27"><a href="#cb448-27" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb448-28"><a href="#cb448-28" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb448-29"><a href="#cb448-29" aria-hidden="true" tabindex="-1"></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="cb449"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb449-1"><a href="#cb449-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb449-1"><a href="#cb449-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb449-2"><a href="#cb449-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb449-3"><a href="#cb449-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb449-4"><a href="#cb449-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-5"><a href="#cb449-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb449-6"><a href="#cb449-6" aria-hidden="true" tabindex="-1"></a>The following list is tight:</span> +<span id="cb449-7"><a href="#cb449-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-8"><a href="#cb449-8" aria-hidden="true" tabindex="-1"></a>- first item</span> +<span id="cb449-9"><a href="#cb449-9" aria-hidden="true" tabindex="-1"></a>- second item</span> +<span id="cb449-10"><a href="#cb449-10" aria-hidden="true" tabindex="-1"></a>- third item</span> +<span id="cb449-11"><a href="#cb449-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-12"><a href="#cb449-12" aria-hidden="true" tabindex="-1"></a>The following list is loose:</span> +<span id="cb449-13"><a href="#cb449-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-14"><a href="#cb449-14" aria-hidden="true" tabindex="-1"></a>- first item</span> +<span id="cb449-15"><a href="#cb449-15" aria-hidden="true" tabindex="-1"></a>- second item that spans</span> +<span id="cb449-16"><a href="#cb449-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-17"><a href="#cb449-17" aria-hidden="true" tabindex="-1"></a> multiple paragraphs</span> +<span id="cb449-18"><a href="#cb449-18" aria-hidden="true" tabindex="-1"></a>- third item</span> +<span id="cb449-19"><a href="#cb449-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb449-20"><a href="#cb449-20" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-21"><a href="#cb449-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[tightLists=false]</span> +<span id="cb449-22"><a href="#cb449-22" aria-hidden="true" tabindex="-1"></a>The following list is now also loose:</span> +<span id="cb449-23"><a href="#cb449-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-24"><a href="#cb449-24" aria-hidden="true" tabindex="-1"></a>- first item</span> +<span id="cb449-25"><a href="#cb449-25" aria-hidden="true" tabindex="-1"></a>- second item</span> +<span id="cb449-26"><a href="#cb449-26" aria-hidden="true" tabindex="-1"></a>- third item</span> +<span id="cb449-27"><a href="#cb449-27" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb449-28"><a href="#cb449-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb449-29"><a href="#cb449-29" aria-hidden="true" tabindex="-1"></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" tabindex="-1"></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> @@ -7717,8 +7806,8 @@ contain the following text:</p> <li><p>third item</p></li> </ul> </blockquote> -<h4 data-number="2.2.1.62" id="option-underscores"><span -class="header-section-number">2.2.1.62</span> Option +<h4 data-number="2.2.1.64" id="option-underscores"><span +class="header-section-number">2.2.1.64</span> Option <code>underscores</code></h4> <dl> <dt><code>underscores</code> (default value: <code>true</code>)</dt> @@ -7728,11 +7817,11 @@ class="header-section-number">2.2.1.62</span> Option <dd> <p>Both underscores and asterisks can be used to denote emphasis and strong emphasis:</p> -<div class="sourceCode" id="cb450"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb450-1"><a href="#cb450-1" aria-hidden="true" tabindex="-1"></a>*single asterisks*</span> -<span id="cb450-2"><a href="#cb450-2" aria-hidden="true" tabindex="-1"></a>_single underscores_</span> -<span id="cb450-3"><a href="#cb450-3" aria-hidden="true" tabindex="-1"></a>**double asterisks**</span> -<span id="cb450-4"><a href="#cb450-4" aria-hidden="true" tabindex="-1"></a>__double underscores__</span></code></pre></div> +<div class="sourceCode" id="cb451"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb451-1"><a href="#cb451-1" aria-hidden="true" tabindex="-1"></a>*single asterisks*</span> +<span id="cb451-2"><a href="#cb451-2" aria-hidden="true" tabindex="-1"></a>_single underscores_</span> +<span id="cb451-3"><a href="#cb451-3" aria-hidden="true" tabindex="-1"></a>**double asterisks**</span> +<span id="cb451-4"><a href="#cb451-4" aria-hidden="true" tabindex="-1"></a>__double underscores__</span></code></pre></div> </dd> </dl> </dd> @@ -7752,23 +7841,23 @@ constantly escape subscripts.</p> 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="cb451"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb451-1"><a href="#cb451-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb451-2"><a href="#cb451-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span> -<span id="cb451-3"><a href="#cb451-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb451-4"><a href="#cb451-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb451-5"><a href="#cb451-5" aria-hidden="true" tabindex="-1"></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="cb451-6"><a href="#cb451-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb451-7"><a href="#cb451-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb451-8"><a href="#cb451-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionUnderscores</span>{false}</span> -<span id="cb451-9"><a href="#cb451-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb451-10"><a href="#cb451-10" aria-hidden="true" tabindex="-1"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span> -<span id="cb451-11"><a href="#cb451-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb451-12"><a href="#cb451-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb451-13"><a href="#cb451-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb452"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb452-1"><a href="#cb452-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb452-1"><a href="#cb452-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb452-2"><a href="#cb452-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span> +<span id="cb452-3"><a href="#cb452-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb452-4"><a href="#cb452-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb452-5"><a href="#cb452-5" aria-hidden="true" tabindex="-1"></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="cb452-6"><a href="#cb452-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb452-7"><a href="#cb452-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb452-8"><a href="#cb452-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionUnderscores</span>{false}</span> +<span id="cb452-9"><a href="#cb452-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb452-10"><a href="#cb452-10" aria-hidden="true" tabindex="-1"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span> +<span id="cb452-11"><a href="#cb452-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb452-12"><a href="#cb452-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb452-13"><a href="#cb452-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></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> @@ -7781,23 +7870,23 @@ contain the following text:</p> 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="cb453"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb453-1"><a href="#cb453-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb453-2"><a href="#cb453-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[hybrid]{<span class="ex">markdown</span>}</span> -<span id="cb453-3"><a href="#cb453-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb453-4"><a href="#cb453-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb453-5"><a href="#cb453-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb453-6"><a href="#cb453-6" aria-hidden="true" tabindex="-1"></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="cb453-7"><a href="#cb453-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb453-8"><a href="#cb453-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb453-9"><a href="#cb453-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[underscores=false]</span> -<span id="cb453-10"><a href="#cb453-10" aria-hidden="true" tabindex="-1"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span> -<span id="cb453-11"><a href="#cb453-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb453-12"><a href="#cb453-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb453-13"><a href="#cb453-13" aria-hidden="true" tabindex="-1"></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="cb454"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb454-1"><a href="#cb454-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb454-1"><a href="#cb454-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb454-2"><a href="#cb454-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[hybrid]{<span class="ex">markdown</span>}</span> +<span id="cb454-3"><a href="#cb454-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb454-4"><a href="#cb454-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb454-5"><a href="#cb454-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb454-6"><a href="#cb454-6" aria-hidden="true" tabindex="-1"></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="cb454-7"><a href="#cb454-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb454-8"><a href="#cb454-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb454-9"><a href="#cb454-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[underscores=false]</span> +<span id="cb454-10"><a href="#cb454-10" aria-hidden="true" tabindex="-1"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span> +<span id="cb454-11"><a href="#cb454-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb454-12"><a href="#cb454-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb454-13"><a href="#cb454-13" aria-hidden="true" tabindex="-1"></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="cb455"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb455-1"><a href="#cb455-1" aria-hidden="true" tabindex="-1"></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> @@ -7810,24 +7899,24 @@ contain the following text:</p> 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="cb455"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb455-1"><a href="#cb455-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb455-2"><a href="#cb455-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hybrid = yes]</span> -<span id="cb455-3"><a href="#cb455-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb455-4"><a href="#cb455-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb455-5"><a href="#cb455-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb455-6"><a href="#cb455-6" aria-hidden="true" tabindex="-1"></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="cb455-7"><a href="#cb455-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb455-8"><a href="#cb455-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb455-9"><a href="#cb455-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[underscores = yes]</span> -<span id="cb455-10"><a href="#cb455-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb455-11"><a href="#cb455-11" aria-hidden="true" tabindex="-1"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span> -<span id="cb455-12"><a href="#cb455-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb455-13"><a href="#cb455-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb455-14"><a href="#cb455-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb456-1"><a href="#cb456-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb456-2"><a href="#cb456-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hybrid = yes]</span> +<span id="cb456-3"><a href="#cb456-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb456-4"><a href="#cb456-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb456-5"><a href="#cb456-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb456-6"><a href="#cb456-6" aria-hidden="true" tabindex="-1"></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="cb456-7"><a href="#cb456-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb456-8"><a href="#cb456-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb456-9"><a href="#cb456-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[underscores = yes]</span> +<span id="cb456-10"><a href="#cb456-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb456-11"><a href="#cb456-11" aria-hidden="true" tabindex="-1"></a>This is *emphasized text* and this is a math subscript: <span class="ss">$m_n$</span>.</span> +<span id="cb456-12"><a href="#cb456-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb456-13"><a href="#cb456-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb456-14"><a href="#cb456-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</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" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -7854,16 +7943,16 @@ plain <span class="tex">T<sub>e</sub>X</span></h4> <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="cb457"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb457-1"><a href="#cb457-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span></code></pre></div> +<div class="sourceCode" id="cb458"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb458-1"><a href="#cb458-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTaskLists</span>{true}</span></code></pre></div> <p>Alternatively, you can also set plain <span class="tex">T<sub>e</sub>X</span> options using the <code>\markdownSetup</code> <span class="tex">T<sub>e</sub>X</span> macro. 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="cb458"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb458-1"><a href="#cb458-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{taskLists = true}</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" tabindex="-1"></a><span class="fu">\markdownSetup</span>{taskLists = 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> @@ -7910,22 +7999,22 @@ 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="cb459"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb459-1"><a href="#cb459-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb459-2"><a href="#cb459-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb459-3"><a href="#cb459-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionInputTempFileName</span>{temporary-input.md}</span> -<span id="cb459-4"><a href="#cb459-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionOutputDir</span>{output-directory}</span> -<span id="cb459-5"><a href="#cb459-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionCacheDir</span>{output-directory/cache-directory}</span> -<span id="cb459-6"><a href="#cb459-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionEagerCache</span>{true}</span> -<span id="cb459-7"><a href="#cb459-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFinalizeCache</span>{true}</span> -<span id="cb459-8"><a href="#cb459-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{output-directory/cache-directory/frozen-cache.tex}</span> -<span id="cb459-9"><a href="#cb459-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb459-10"><a href="#cb459-10" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb459-11"><a href="#cb459-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb459-12"><a href="#cb459-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> <span class="at">--output-directory</span> output-directory document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb460-1"><a href="#cb460-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb460-2"><a href="#cb460-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb460-3"><a href="#cb460-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionInputTempFileName</span>{temporary-input.md}</span> +<span id="cb460-4"><a href="#cb460-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionOutputDir</span>{output-directory}</span> +<span id="cb460-5"><a href="#cb460-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionCacheDir</span>{output-directory/cache-directory}</span> +<span id="cb460-6"><a href="#cb460-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionEagerCache</span>{true}</span> +<span id="cb460-7"><a href="#cb460-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFinalizeCache</span>{true}</span> +<span id="cb460-8"><a href="#cb460-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionFrozenCacheFileName</span>{output-directory/cache-directory/frozen-cache.tex}</span> +<span id="cb460-9"><a href="#cb460-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb460-10"><a href="#cb460-10" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb460-11"><a href="#cb460-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb460-12"><a href="#cb460-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> <span class="at">--output-directory</span> 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> @@ -7938,8 +8027,8 @@ 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="cb461"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb461-1"><a href="#cb461-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">--output-directory</span> output-directory <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb462"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb462-1"><a href="#cb462-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pdftex</span> <span class="at">--output-directory</span> output-directory <span class="at">--shell-escape</span> document.tex</span></code></pre></div> <p>Text document named <code>temporary-output.md</code> should be produced in the folder named <code>output-directory</code>. The document will contain the input markdown document converted to <span @@ -7971,13 +8060,13 @@ definitions load extra resources and are subject to a more rapid change.</p> <p>Here is how you would enable the macro in a <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> document:</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" tabindex="-1"></a><span class="bu">\usepackage</span>[plain]{<span class="ex">markdown</span>}</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" tabindex="-1"></a><span class="bu">\usepackage</span>[plain]{<span class="ex">markdown</span>}</span></code></pre></div> <p>Here is how you would enable the macro in a Con<span class="tex">T<sub>e</sub>X</span>t document:</p> -<div class="sourceCode" id="cb463"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb463-1"><a href="#cb463-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionPlain</span>{true}</span> -<span id="cb463-2"><a href="#cb463-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span></code></pre></div> +<div class="sourceCode" id="cb464"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb464-1"><a href="#cb464-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionPlain</span>{true}</span> +<span id="cb464-2"><a href="#cb464-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span></code></pre></div> <p>The macro must be set before or during the loading of the package. Setting the macro after loading the package has no effect.</p> <p>The <code>\markdownOptionNoDefaults</code> macro specifies whether we @@ -7986,13 +8075,13 @@ in contexts, where we want to have total control over how all elements are rendered.</p> <p>Here is how you would enable the macro in a <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> document:</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" tabindex="-1"></a><span class="bu">\usepackage</span>[noDefaults]{<span class="ex">markdown</span>}</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" tabindex="-1"></a><span class="bu">\usepackage</span>[noDefaults]{<span class="ex">markdown</span>}</span></code></pre></div> <p>Here is how you would enable the macro in a Con<span class="tex">T<sub>e</sub>X</span>t document:</p> -<div class="sourceCode" id="cb465"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb465-1"><a href="#cb465-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionNoDefaults</span>{true}</span> -<span id="cb465-2"><a href="#cb465-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span></code></pre></div> +<div class="sourceCode" id="cb466"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb466-1"><a href="#cb466-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionNoDefaults</span>{true}</span> +<span id="cb466-2"><a href="#cb466-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span></code></pre></div> <p>The macro must be set before or during the loading of the package. Setting the macro after loading the package has no effect.</p> <h4 data-number="2.2.2.5" id="package-documentation"><span @@ -8010,21 +8099,21 @@ Mittelbach. The recognized values of the macro are <code>true</code> <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="cb466"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb466-1"><a href="#cb466-1" aria-hidden="true" tabindex="-1"></a><span class="co">% \iffalse</span></span> -<span id="cb466-2"><a href="#cb466-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">ltxdoc</span>}</span> -<span id="cb466-3"><a href="#cb466-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[stripPercentSigns]{<span class="ex">markdown</span>}</span> -<span id="cb466-4"><a href="#cb466-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb466-5"><a href="#cb466-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\DocInput</span>{document.dtx}</span> -<span id="cb466-6"><a href="#cb466-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span> -<span id="cb466-7"><a href="#cb466-7" aria-hidden="true" tabindex="-1"></a><span class="co">% \fi</span></span> -<span id="cb466-8"><a href="#cb466-8" aria-hidden="true" tabindex="-1"></a><span class="co">%</span></span> -<span id="cb466-9"><a href="#cb466-9" aria-hidden="true" tabindex="-1"></a><span class="co">% \begin{markdown}</span></span> -<span id="cb466-10"><a href="#cb466-10" aria-hidden="true" tabindex="-1"></a><span class="co">% Hello *world*!</span></span> -<span id="cb466-11"><a href="#cb466-11" aria-hidden="true" tabindex="-1"></a><span class="co">% \end{markdown}</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" tabindex="-1"></a><span class="ex">lualatex</span> document.dtx</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb467-1"><a href="#cb467-1" aria-hidden="true" tabindex="-1"></a><span class="co">% \iffalse</span></span> +<span id="cb467-2"><a href="#cb467-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">ltxdoc</span>}</span> +<span id="cb467-3"><a href="#cb467-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[stripPercentSigns]{<span class="ex">markdown</span>}</span> +<span id="cb467-4"><a href="#cb467-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb467-5"><a href="#cb467-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\DocInput</span>{document.dtx}</span> +<span id="cb467-6"><a href="#cb467-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span> +<span id="cb467-7"><a href="#cb467-7" aria-hidden="true" tabindex="-1"></a><span class="co">% \fi</span></span> +<span id="cb467-8"><a href="#cb467-8" aria-hidden="true" tabindex="-1"></a><span class="co">%</span></span> +<span id="cb467-9"><a href="#cb467-9" aria-hidden="true" tabindex="-1"></a><span class="co">% \begin{markdown}</span></span> +<span id="cb467-10"><a href="#cb467-10" aria-hidden="true" tabindex="-1"></a><span class="co">% Hello *world*!</span></span> +<span id="cb467-11"><a href="#cb467-11" aria-hidden="true" tabindex="-1"></a><span class="co">% \end{markdown}</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb468"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb468-1"><a href="#cb468-1" aria-hidden="true" tabindex="-1"></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="themes"><span @@ -8047,16 +8136,16 @@ Lua option is disabled.</p> 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="cb468"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb468-1"><a href="#cb468-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb468-2"><a href="#cb468-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{import=witiko/tilde}</span> -<span id="cb468-3"><a href="#cb468-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb468-4"><a href="#cb468-4" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> -<span id="cb468-5"><a href="#cb468-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb468-6"><a href="#cb468-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</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" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb469-1"><a href="#cb469-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb469-2"><a href="#cb469-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{import=witiko/tilde}</span> +<span id="cb469-3"><a href="#cb469-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb469-4"><a href="#cb469-4" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> +<span id="cb469-5"><a href="#cb469-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb469-6"><a href="#cb469-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb470"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb470-1"><a href="#cb470-1" aria-hidden="true" tabindex="-1"></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> @@ -8080,75 +8169,56 @@ document. Snippets provide syntactic sugar for defining and invoking various options locally.</p> <p>Here is how we can use snippets to store options and invoke them later in <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>:</p> -<div class="sourceCode" id="cb470"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb470-1"><a href="#cb470-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetupSnippet</span>{romanNumerals}{</span> -<span id="cb470-2"><a href="#cb470-2" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb470-3"><a href="#cb470-3" aria-hidden="true" tabindex="-1"></a> olItemWithNumber = {<span class="co">%</span></span> -<span id="cb470-4"><a href="#cb470-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\item</span>[<span class="fu">\romannumeral</span>#1<span class="fu">\relax</span>.]<span class="co">%</span></span> -<span id="cb470-5"><a href="#cb470-5" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb470-6"><a href="#cb470-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb470-7"><a href="#cb470-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb470-8"><a href="#cb470-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb470-9"><a href="#cb470-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb470-10"><a href="#cb470-10" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by arabic numerals:</span> -<span id="cb470-11"><a href="#cb470-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb470-12"><a href="#cb470-12" aria-hidden="true" tabindex="-1"></a>1. wahid</span> -<span id="cb470-13"><a href="#cb470-13" aria-hidden="true" tabindex="-1"></a>2. aithnayn</span> -<span id="cb470-14"><a href="#cb470-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb470-15"><a href="#cb470-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb470-16"><a href="#cb470-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=romanNumerals]</span> -<span id="cb470-17"><a href="#cb470-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb470-18"><a href="#cb470-18" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> -<span id="cb470-19"><a href="#cb470-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb470-20"><a href="#cb470-20" aria-hidden="true" tabindex="-1"></a>3. tres</span> -<span id="cb470-21"><a href="#cb470-21" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> -<span id="cb470-22"><a href="#cb470-22" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb470-23"><a href="#cb470-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> +<div class="sourceCode" id="cb471"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb471-1"><a href="#cb471-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetupSnippet</span>{romanNumerals}{</span> +<span id="cb471-2"><a href="#cb471-2" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb471-3"><a href="#cb471-3" aria-hidden="true" tabindex="-1"></a> olItemWithNumber = {<span class="co">%</span></span> +<span id="cb471-4"><a href="#cb471-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\item</span>[<span class="fu">\romannumeral</span>#1<span class="fu">\relax</span>.]<span class="co">%</span></span> +<span id="cb471-5"><a href="#cb471-5" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb471-6"><a href="#cb471-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb471-7"><a href="#cb471-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb471-8"><a href="#cb471-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb471-9"><a href="#cb471-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb471-10"><a href="#cb471-10" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by arabic numerals:</span> +<span id="cb471-11"><a href="#cb471-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb471-12"><a href="#cb471-12" aria-hidden="true" tabindex="-1"></a>1. wahid</span> +<span id="cb471-13"><a href="#cb471-13" aria-hidden="true" tabindex="-1"></a>2. aithnayn</span> +<span id="cb471-14"><a href="#cb471-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb471-15"><a href="#cb471-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb471-16"><a href="#cb471-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=romanNumerals]</span> +<span id="cb471-17"><a href="#cb471-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb471-18"><a href="#cb471-18" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> +<span id="cb471-19"><a href="#cb471-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb471-20"><a href="#cb471-20" aria-hidden="true" tabindex="-1"></a>3. tres</span> +<span id="cb471-21"><a href="#cb471-21" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> +<span id="cb471-22"><a href="#cb471-22" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb471-23"><a href="#cb471-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> <p>If the <code>romanNumerals</code> snippet were defined in the <code>jdoe/lists</code> theme, we could import the <code>jdoe/lists</code> theme and use the qualified name <code>jdoe/lists/romanNumerals</code> to invoke the snippet:</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" tabindex="-1"></a><span class="fu">\markdownSetup</span>{import=jdoe/lists}</span> -<span id="cb471-2"><a href="#cb471-2" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=jdoe/lists/romanNumerals]</span> -<span id="cb471-3"><a href="#cb471-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb471-4"><a href="#cb471-4" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> -<span id="cb471-5"><a href="#cb471-5" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb471-6"><a href="#cb471-6" aria-hidden="true" tabindex="-1"></a>3. tres</span> -<span id="cb471-7"><a href="#cb471-7" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> -<span id="cb471-8"><a href="#cb471-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb471-9"><a href="#cb471-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> +<div class="sourceCode" id="cb472"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb472-1"><a href="#cb472-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{import=jdoe/lists}</span> +<span id="cb472-2"><a href="#cb472-2" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=jdoe/lists/romanNumerals]</span> +<span id="cb472-3"><a href="#cb472-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb472-4"><a href="#cb472-4" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> +<span id="cb472-5"><a href="#cb472-5" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb472-6"><a href="#cb472-6" aria-hidden="true" tabindex="-1"></a>3. tres</span> +<span id="cb472-7"><a href="#cb472-7" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> +<span id="cb472-8"><a href="#cb472-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb472-9"><a href="#cb472-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> <p>Alternatively, we can use the extended variant of the <code>import</code> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> option that allows us to import the <code>romanNumerals</code> snippet to the current namespace for easier access:</p> -<div class="sourceCode" id="cb472"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb472-1"><a href="#cb472-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb472-2"><a href="#cb472-2" aria-hidden="true" tabindex="-1"></a> import = {</span> -<span id="cb472-3"><a href="#cb472-3" aria-hidden="true" tabindex="-1"></a> jdoe/lists = romanNumerals,</span> -<span id="cb472-4"><a href="#cb472-4" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb472-5"><a href="#cb472-5" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb472-6"><a href="#cb472-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=romanNumerals]</span> -<span id="cb472-7"><a href="#cb472-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb472-8"><a href="#cb472-8" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> -<span id="cb472-9"><a href="#cb472-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb472-10"><a href="#cb472-10" aria-hidden="true" tabindex="-1"></a>3. tres</span> -<span id="cb472-11"><a href="#cb472-11" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> -<span id="cb472-12"><a href="#cb472-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb472-13"><a href="#cb472-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> -<p>Furthermore, we can also specify the name of the snippet in the -current namespace, which can be different from the name of the snippet -in the <code>jdoe/lists</code> theme. For example, we can make the -snippet <code>jdoe/lists/romanNumerals</code> available under the name -<code>roman</code>.</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" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> <span id="cb473-2"><a href="#cb473-2" aria-hidden="true" tabindex="-1"></a> import = {</span> -<span id="cb473-3"><a href="#cb473-3" aria-hidden="true" tabindex="-1"></a> jdoe/lists = romanNumerals as roman,</span> +<span id="cb473-3"><a href="#cb473-3" aria-hidden="true" tabindex="-1"></a> jdoe/lists = romanNumerals,</span> <span id="cb473-4"><a href="#cb473-4" aria-hidden="true" tabindex="-1"></a> },</span> <span id="cb473-5"><a href="#cb473-5" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb473-6"><a href="#cb473-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=roman]</span> +<span id="cb473-6"><a href="#cb473-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=romanNumerals]</span> <span id="cb473-7"><a href="#cb473-7" aria-hidden="true" tabindex="-1"></a></span> <span id="cb473-8"><a href="#cb473-8" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> <span id="cb473-9"><a href="#cb473-9" aria-hidden="true" tabindex="-1"></a></span> @@ -8156,23 +8226,42 @@ class="sourceCode tex"><code class="sourceCode latex"><span id="cb473-1"><a href <span id="cb473-11"><a href="#cb473-11" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> <span id="cb473-12"><a href="#cb473-12" aria-hidden="true" tabindex="-1"></a></span> <span id="cb473-13"><a href="#cb473-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> -<p>Several themes and/or snippets can be loaded at once using the -extended variant of the <code>import</code> <span -class="latex">L<sup>a</sup>T<sub>e</sub>X</span> option:</p> +<p>Furthermore, we can also specify the name of the snippet in the +current namespace, which can be different from the name of the snippet +in the <code>jdoe/lists</code> theme. For example, we can make the +snippet <code>jdoe/lists/romanNumerals</code> available under the name +<code>roman</code>.</p> <div class="sourceCode" id="cb474"><pre class="sourceCode tex"><code class="sourceCode latex"><span id="cb474-1"><a href="#cb474-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> <span id="cb474-2"><a href="#cb474-2" aria-hidden="true" tabindex="-1"></a> import = {</span> -<span id="cb474-3"><a href="#cb474-3" aria-hidden="true" tabindex="-1"></a> jdoe/longpackagename/lists = {</span> -<span id="cb474-4"><a href="#cb474-4" aria-hidden="true" tabindex="-1"></a> arabic as arabic1,</span> -<span id="cb474-5"><a href="#cb474-5" aria-hidden="true" tabindex="-1"></a> roman,</span> -<span id="cb474-6"><a href="#cb474-6" aria-hidden="true" tabindex="-1"></a> alphabetic,</span> -<span id="cb474-7"><a href="#cb474-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb474-8"><a href="#cb474-8" aria-hidden="true" tabindex="-1"></a> jdoe/anotherlongpackagename/lists = {</span> -<span id="cb474-9"><a href="#cb474-9" aria-hidden="true" tabindex="-1"></a> arabic as arabic2,</span> -<span id="cb474-10"><a href="#cb474-10" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb474-11"><a href="#cb474-11" aria-hidden="true" tabindex="-1"></a> jdoe/yetanotherlongpackagename,</span> -<span id="cb474-12"><a href="#cb474-12" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb474-13"><a href="#cb474-13" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<span id="cb474-3"><a href="#cb474-3" aria-hidden="true" tabindex="-1"></a> jdoe/lists = romanNumerals as roman,</span> +<span id="cb474-4"><a href="#cb474-4" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb474-5"><a href="#cb474-5" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb474-6"><a href="#cb474-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[snippet=roman]</span> +<span id="cb474-7"><a href="#cb474-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb474-8"><a href="#cb474-8" aria-hidden="true" tabindex="-1"></a>The following ordered list will be preceded by roman numerals:</span> +<span id="cb474-9"><a href="#cb474-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb474-10"><a href="#cb474-10" aria-hidden="true" tabindex="-1"></a>3. tres</span> +<span id="cb474-11"><a href="#cb474-11" aria-hidden="true" tabindex="-1"></a>4. quattuor</span> +<span id="cb474-12"><a href="#cb474-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb474-13"><a href="#cb474-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span></code></pre></div> +<p>Several themes and/or snippets can be loaded at once using the +extended variant of the <code>import</code> <span +class="latex">L<sup>a</sup>T<sub>e</sub>X</span> option:</p> +<div class="sourceCode" id="cb475"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb475-1"><a href="#cb475-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb475-2"><a href="#cb475-2" aria-hidden="true" tabindex="-1"></a> import = {</span> +<span id="cb475-3"><a href="#cb475-3" aria-hidden="true" tabindex="-1"></a> jdoe/longpackagename/lists = {</span> +<span id="cb475-4"><a href="#cb475-4" aria-hidden="true" tabindex="-1"></a> arabic as arabic1,</span> +<span id="cb475-5"><a href="#cb475-5" aria-hidden="true" tabindex="-1"></a> roman,</span> +<span id="cb475-6"><a href="#cb475-6" aria-hidden="true" tabindex="-1"></a> alphabetic,</span> +<span id="cb475-7"><a href="#cb475-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb475-8"><a href="#cb475-8" aria-hidden="true" tabindex="-1"></a> jdoe/anotherlongpackagename/lists = {</span> +<span id="cb475-9"><a href="#cb475-9" aria-hidden="true" tabindex="-1"></a> arabic as arabic2,</span> +<span id="cb475-10"><a href="#cb475-10" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb475-11"><a href="#cb475-11" aria-hidden="true" tabindex="-1"></a> jdoe/yetanotherlongpackagename,</span> +<span id="cb475-12"><a href="#cb475-12" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb475-13"><a href="#cb475-13" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <h3 data-number="2.2.5" id="latex-1"><span class="header-section-number">2.2.5</span> <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span></h3> @@ -8190,21 +8279,21 @@ 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="cb475"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb475-1"><a href="#cb475-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb475-2"><a href="#cb475-2" aria-hidden="true" tabindex="-1"></a> taskLists = true,</span> -<span id="cb475-3"><a href="#cb475-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb476"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb476-1"><a href="#cb476-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb476-2"><a href="#cb476-2" aria-hidden="true" tabindex="-1"></a> taskLists = true,</span> +<span id="cb476-3"><a href="#cb476-3" aria-hidden="true" tabindex="-1"></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>\markdownOptionInputTempFileName</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 +<code>helper-script.lua</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="cb476"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb476-1"><a href="#cb476-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb476-2"><a href="#cb476-2" aria-hidden="true" tabindex="-1"></a> inputTempFileName = temporary-input.md,</span> -<span id="cb476-3"><a href="#cb476-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb477"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb477-1"><a href="#cb477-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb477-2"><a href="#cb477-2" aria-hidden="true" tabindex="-1"></a> inputTempFileName = temporary-input.md,</span> +<span id="cb477-3"><a href="#cb477-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> <h3 data-number="2.2.6" id="latexthemes"><span class="header-section-number">2.2.6</span> Themes</h3> <p>In <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>, we expand @@ -8233,11 +8322,11 @@ developers can load the <code>.tex</code> theme file from the <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="cb477"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb477-1"><a href="#cb477-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> -<span id="cb477-2"><a href="#cb477-2" aria-hidden="true" tabindex="-1"></a> import=witiko/beamer/MU,</span> -<span id="cb477-3"><a href="#cb477-3" aria-hidden="true" tabindex="-1"></a> import=witiko/dot,</span> -<span id="cb477-4"><a href="#cb477-4" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span></code></pre></div> +<div class="sourceCode" id="cb478"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb478-1"><a href="#cb478-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> +<span id="cb478-2"><a href="#cb478-2" aria-hidden="true" tabindex="-1"></a> import=witiko/beamer/MU,</span> +<span id="cb478-3"><a href="#cb478-3" aria-hidden="true" tabindex="-1"></a> import=witiko/dot,</span> +<span id="cb478-4"><a href="#cb478-4" aria-hidden="true" tabindex="-1"></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 @@ -8260,44 +8349,44 @@ class="tex">T<sub>e</sub>X</span> option is enabled.</p> 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="cb478"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb478-1"><a href="#cb478-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb478-2"><a href="#cb478-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[import=witiko/dot]{<span class="ex">markdown</span>}</span> -<span id="cb478-3"><a href="#cb478-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\setkeys</span>{Gin}{</span> -<span id="cb478-4"><a href="#cb478-4" aria-hidden="true" tabindex="-1"></a> width=<span class="fu">\columnwidth</span>,</span> -<span id="cb478-5"><a href="#cb478-5" aria-hidden="true" tabindex="-1"></a> height=0.65<span class="fu">\paperheight</span>,</span> -<span id="cb478-6"><a href="#cb478-6" aria-hidden="true" tabindex="-1"></a> keepaspectratio}</span> -<span id="cb478-7"><a href="#cb478-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb478-8"><a href="#cb478-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb478-9"><a href="#cb478-9" aria-hidden="true" tabindex="-1"></a>``` dot Various formats of mathemathical formulae</span> -<span id="cb478-10"><a href="#cb478-10" aria-hidden="true" tabindex="-1"></a>digraph tree {</span> -<span id="cb478-11"><a href="#cb478-11" aria-hidden="true" tabindex="-1"></a> margin = 0;</span> -<span id="cb478-12"><a href="#cb478-12" aria-hidden="true" tabindex="-1"></a> rankdir = "LR";</span> -<span id="cb478-13"><a href="#cb478-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb478-14"><a href="#cb478-14" aria-hidden="true" tabindex="-1"></a> latex -> pmml;</span> -<span id="cb478-15"><a href="#cb478-15" aria-hidden="true" tabindex="-1"></a> latex -> cmml;</span> -<span id="cb478-16"><a href="#cb478-16" aria-hidden="true" tabindex="-1"></a> pmml -> slt;</span> -<span id="cb478-17"><a href="#cb478-17" aria-hidden="true" tabindex="-1"></a> cmml -> opt;</span> -<span id="cb478-18"><a href="#cb478-18" aria-hidden="true" tabindex="-1"></a> cmml -> prefix;</span> -<span id="cb478-19"><a href="#cb478-19" aria-hidden="true" tabindex="-1"></a> cmml -> infix;</span> -<span id="cb478-20"><a href="#cb478-20" aria-hidden="true" tabindex="-1"></a> pmml -> mterms [style=dashed];</span> -<span id="cb478-21"><a href="#cb478-21" aria-hidden="true" tabindex="-1"></a> cmml -> mterms;</span> -<span id="cb478-22"><a href="#cb478-22" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb478-23"><a href="#cb478-23" aria-hidden="true" tabindex="-1"></a> latex [label = "LaTeX"];</span> -<span id="cb478-24"><a href="#cb478-24" aria-hidden="true" tabindex="-1"></a> pmml [label = "Presentation MathML"];</span> -<span id="cb478-25"><a href="#cb478-25" aria-hidden="true" tabindex="-1"></a> cmml [label = "Content MathML"];</span> -<span id="cb478-26"><a href="#cb478-26" aria-hidden="true" tabindex="-1"></a> slt [label = "Symbol Layout Tree"];</span> -<span id="cb478-27"><a href="#cb478-27" aria-hidden="true" tabindex="-1"></a> opt [label = "Operator Tree"];</span> -<span id="cb478-28"><a href="#cb478-28" aria-hidden="true" tabindex="-1"></a> prefix [label = "Prefix"];</span> -<span id="cb478-29"><a href="#cb478-29" aria-hidden="true" tabindex="-1"></a> infix [label = "Infix"];</span> -<span id="cb478-30"><a href="#cb478-30" aria-hidden="true" tabindex="-1"></a> mterms [label = "M-Terms"];</span> -<span id="cb478-31"><a href="#cb478-31" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb478-32"><a href="#cb478-32" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb478-33"><a href="#cb478-33" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb478-34"><a href="#cb478-34" aria-hidden="true" tabindex="-1"></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="cb479"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb479-1"><a href="#cb479-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb479-1"><a href="#cb479-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb479-2"><a href="#cb479-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[import=witiko/dot]{<span class="ex">markdown</span>}</span> +<span id="cb479-3"><a href="#cb479-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\setkeys</span>{Gin}{</span> +<span id="cb479-4"><a href="#cb479-4" aria-hidden="true" tabindex="-1"></a> width=<span class="fu">\columnwidth</span>,</span> +<span id="cb479-5"><a href="#cb479-5" aria-hidden="true" tabindex="-1"></a> height=0.65<span class="fu">\paperheight</span>,</span> +<span id="cb479-6"><a href="#cb479-6" aria-hidden="true" tabindex="-1"></a> keepaspectratio}</span> +<span id="cb479-7"><a href="#cb479-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb479-8"><a href="#cb479-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb479-9"><a href="#cb479-9" aria-hidden="true" tabindex="-1"></a>``` dot Various formats of mathemathical formulae</span> +<span id="cb479-10"><a href="#cb479-10" aria-hidden="true" tabindex="-1"></a>digraph tree {</span> +<span id="cb479-11"><a href="#cb479-11" aria-hidden="true" tabindex="-1"></a> margin = 0;</span> +<span id="cb479-12"><a href="#cb479-12" aria-hidden="true" tabindex="-1"></a> rankdir = "LR";</span> +<span id="cb479-13"><a href="#cb479-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb479-14"><a href="#cb479-14" aria-hidden="true" tabindex="-1"></a> latex -> pmml;</span> +<span id="cb479-15"><a href="#cb479-15" aria-hidden="true" tabindex="-1"></a> latex -> cmml;</span> +<span id="cb479-16"><a href="#cb479-16" aria-hidden="true" tabindex="-1"></a> pmml -> slt;</span> +<span id="cb479-17"><a href="#cb479-17" aria-hidden="true" tabindex="-1"></a> cmml -> opt;</span> +<span id="cb479-18"><a href="#cb479-18" aria-hidden="true" tabindex="-1"></a> cmml -> prefix;</span> +<span id="cb479-19"><a href="#cb479-19" aria-hidden="true" tabindex="-1"></a> cmml -> infix;</span> +<span id="cb479-20"><a href="#cb479-20" aria-hidden="true" tabindex="-1"></a> pmml -> mterms [style=dashed];</span> +<span id="cb479-21"><a href="#cb479-21" aria-hidden="true" tabindex="-1"></a> cmml -> mterms;</span> +<span id="cb479-22"><a href="#cb479-22" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb479-23"><a href="#cb479-23" aria-hidden="true" tabindex="-1"></a> latex [label = "LaTeX"];</span> +<span id="cb479-24"><a href="#cb479-24" aria-hidden="true" tabindex="-1"></a> pmml [label = "Presentation MathML"];</span> +<span id="cb479-25"><a href="#cb479-25" aria-hidden="true" tabindex="-1"></a> cmml [label = "Content MathML"];</span> +<span id="cb479-26"><a href="#cb479-26" aria-hidden="true" tabindex="-1"></a> slt [label = "Symbol Layout Tree"];</span> +<span id="cb479-27"><a href="#cb479-27" aria-hidden="true" tabindex="-1"></a> opt [label = "Operator Tree"];</span> +<span id="cb479-28"><a href="#cb479-28" aria-hidden="true" tabindex="-1"></a> prefix [label = "Prefix"];</span> +<span id="cb479-29"><a href="#cb479-29" aria-hidden="true" tabindex="-1"></a> infix [label = "Infix"];</span> +<span id="cb479-30"><a href="#cb479-30" aria-hidden="true" tabindex="-1"></a> mterms [label = "M-Terms"];</span> +<span id="cb479-31"><a href="#cb479-31" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb479-32"><a href="#cb479-32" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb479-33"><a href="#cb479-33" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb479-34"><a href="#cb479-34" aria-hidden="true" tabindex="-1"></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="cb480"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb480-1"><a href="#cb480-1" aria-hidden="true" tabindex="-1"></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> @@ -8327,18 +8416,18 @@ class="tex">T<sub>e</sub>X</span> option is enabled.</p> 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="cb480"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb480-1"><a href="#cb480-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb480-2"><a href="#cb480-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[import=witiko/graphicx/http]{<span class="ex">markdown</span>}</span> -<span id="cb480-3"><a href="#cb480-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb480-4"><a href="#cb480-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb480-5"><a href="#cb480-5" aria-hidden="true" tabindex="-1"></a>![img](https://github.com/witiko/markdown/raw/main/markdown.png</span> -<span id="cb480-6"><a href="#cb480-6" aria-hidden="true" tabindex="-1"></a> "The banner of the Markdown package")</span> -<span id="cb480-7"><a href="#cb480-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb480-8"><a href="#cb480-8" aria-hidden="true" tabindex="-1"></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="cb481"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb481-1"><a href="#cb481-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb481-1"><a href="#cb481-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb481-2"><a href="#cb481-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[import=witiko/graphicx/http]{<span class="ex">markdown</span>}</span> +<span id="cb481-3"><a href="#cb481-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb481-4"><a href="#cb481-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb481-5"><a href="#cb481-5" aria-hidden="true" tabindex="-1"></a>![img](https://github.com/witiko/markdown/raw/main/markdown.png</span> +<span id="cb481-6"><a href="#cb481-6" aria-hidden="true" tabindex="-1"></a> "The banner of the Markdown package")</span> +<span id="cb481-7"><a href="#cb481-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb481-8"><a href="#cb481-8" aria-hidden="true" tabindex="-1"></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="cb482"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb482-1"><a href="#cb482-1" aria-hidden="true" tabindex="-1"></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> @@ -8385,9 +8474,9 @@ developers can load the <code>.tex</code> theme file from the <code>\markdownLoadPlainTeXTheme</code> macro.</p> <p>For example, to load a theme named <code>witiko/tilde</code> in your document:</p> -<div class="sourceCode" id="cb482"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb482-1"><a href="#cb482-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb482-2"><a href="#cb482-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[import=witiko/tilde]</span></code></pre></div> +<div class="sourceCode" id="cb483"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb483-1"><a href="#cb483-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb483-2"><a href="#cb483-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[import=witiko/tilde]</span></code></pre></div> <p>Built-in Con<span class="tex">T<sub>e</sub>X</span>t themes provided with the Markdown package include:</p> <dl> @@ -8446,42 +8535,42 @@ attributes that correspond to the â¨<em>key</em>⊠and the 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="cb483"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb483-1"><a href="#cb483-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb483-2"><a href="#cb483-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes, underscores=false]{<span class="ex">markdown</span>}</span> -<span id="cb483-3"><a href="#cb483-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb483-4"><a href="#cb483-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb483-5"><a href="#cb483-5" aria-hidden="true" tabindex="-1"></a> attributeIdentifier = {<span class="co">%</span></span> -<span id="cb483-6"><a href="#cb483-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb483-7"><a href="#cb483-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(Identifier: #1)}</span> -<span id="cb483-8"><a href="#cb483-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb483-9"><a href="#cb483-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb483-10"><a href="#cb483-10" aria-hidden="true" tabindex="-1"></a> attributeClassName = {<span class="co">%</span></span> -<span id="cb483-11"><a href="#cb483-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb483-12"><a href="#cb483-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(Class name: #1)}</span> -<span id="cb483-13"><a href="#cb483-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb483-14"><a href="#cb483-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb483-15"><a href="#cb483-15" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {<span class="co">%</span></span> -<span id="cb483-16"><a href="#cb483-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb483-17"><a href="#cb483-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(Key: #1, Value: #2)}</span> -<span id="cb483-18"><a href="#cb483-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb483-19"><a href="#cb483-19" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb483-20"><a href="#cb483-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb483-21"><a href="#cb483-21" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb483-22"><a href="#cb483-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb483-23"><a href="#cb483-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb483-24"><a href="#cb483-24" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb483-25"><a href="#cb483-25" aria-hidden="true" tabindex="-1"></a># First top-level heading {jane=doe}</span> -<span id="cb483-26"><a href="#cb483-26" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb483-27"><a href="#cb483-27" aria-hidden="true" tabindex="-1"></a>## A subheading {#identifier}</span> -<span id="cb483-28"><a href="#cb483-28" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb483-29"><a href="#cb483-29" aria-hidden="true" tabindex="-1"></a># Second top-level heading {.class_name}</span> -<span id="cb483-30"><a href="#cb483-30" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb483-31"><a href="#cb483-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb483-32"><a href="#cb483-32" aria-hidden="true" tabindex="-1"></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="cb484"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb484-1"><a href="#cb484-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb484-1"><a href="#cb484-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb484-2"><a href="#cb484-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes, underscores=false]{<span class="ex">markdown</span>}</span> +<span id="cb484-3"><a href="#cb484-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb484-4"><a href="#cb484-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb484-5"><a href="#cb484-5" aria-hidden="true" tabindex="-1"></a> attributeIdentifier = {<span class="co">%</span></span> +<span id="cb484-6"><a href="#cb484-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb484-7"><a href="#cb484-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(Identifier: #1)}</span> +<span id="cb484-8"><a href="#cb484-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb484-9"><a href="#cb484-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb484-10"><a href="#cb484-10" aria-hidden="true" tabindex="-1"></a> attributeClassName = {<span class="co">%</span></span> +<span id="cb484-11"><a href="#cb484-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb484-12"><a href="#cb484-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(Class name: #1)}</span> +<span id="cb484-13"><a href="#cb484-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb484-14"><a href="#cb484-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb484-15"><a href="#cb484-15" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {<span class="co">%</span></span> +<span id="cb484-16"><a href="#cb484-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb484-17"><a href="#cb484-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(Key: #1, Value: #2)}</span> +<span id="cb484-18"><a href="#cb484-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb484-19"><a href="#cb484-19" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb484-20"><a href="#cb484-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb484-21"><a href="#cb484-21" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb484-22"><a href="#cb484-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb484-23"><a href="#cb484-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb484-24"><a href="#cb484-24" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb484-25"><a href="#cb484-25" aria-hidden="true" tabindex="-1"></a># First top-level heading {jane=doe}</span> +<span id="cb484-26"><a href="#cb484-26" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb484-27"><a href="#cb484-27" aria-hidden="true" tabindex="-1"></a>## A subheading {#identifier}</span> +<span id="cb484-28"><a href="#cb484-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb484-29"><a href="#cb484-29" aria-hidden="true" tabindex="-1"></a># Second top-level heading {.class_name}</span> +<span id="cb484-30"><a href="#cb484-30" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb484-31"><a href="#cb484-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb484-32"><a href="#cb484-32" aria-hidden="true" tabindex="-1"></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="cb485"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb485-1"><a href="#cb485-1" aria-hidden="true" tabindex="-1"></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> @@ -8502,31 +8591,31 @@ end of a block quote. The macro receives no arguments.</p> 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="cb485"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb485-1"><a href="#cb485-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb485-2"><a href="#cb485-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="co">%</span></span> -<span id="cb485-3"><a href="#cb485-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb485-4"><a href="#cb485-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\vskip\parindent</span></span> -<span id="cb485-5"><a href="#cb485-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\leftskip</span>=2<span class="fu">\parindent</span></span> -<span id="cb485-6"><a href="#cb485-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\parindent</span>=0pt</span> -<span id="cb485-7"><a href="#cb485-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb485-8"><a href="#cb485-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="co">%</span></span> -<span id="cb485-9"><a href="#cb485-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb485-10"><a href="#cb485-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\vskip\parindent</span></span> -<span id="cb485-11"><a href="#cb485-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> -<span id="cb485-12"><a href="#cb485-12" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb485-13"><a href="#cb485-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb485-14"><a href="#cb485-14" aria-hidden="true" tabindex="-1"></a>A quote from William Shakespeare's King Lear:</span> -<span id="cb485-15"><a href="#cb485-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb485-16"><a href="#cb485-16" aria-hidden="true" tabindex="-1"></a>> This is the excellent foppery of the world that when we are</span> -<span id="cb485-17"><a href="#cb485-17" aria-hidden="true" tabindex="-1"></a>> sick in fortune---often the surfeit of our own behavior---we</span> -<span id="cb485-18"><a href="#cb485-18" aria-hidden="true" tabindex="-1"></a>> make guilty of our disasters the sun, the moon, and the</span> -<span id="cb485-19"><a href="#cb485-19" aria-hidden="true" tabindex="-1"></a>> stars [...]</span> -<span id="cb485-20"><a href="#cb485-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb485-21"><a href="#cb485-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb486"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb486-1"><a href="#cb486-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb486-1"><a href="#cb486-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb486-2"><a href="#cb486-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="co">%</span></span> +<span id="cb486-3"><a href="#cb486-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb486-4"><a href="#cb486-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\vskip\parindent</span></span> +<span id="cb486-5"><a href="#cb486-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\leftskip</span>=2<span class="fu">\parindent</span></span> +<span id="cb486-6"><a href="#cb486-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\parindent</span>=0pt</span> +<span id="cb486-7"><a href="#cb486-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb486-8"><a href="#cb486-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="co">%</span></span> +<span id="cb486-9"><a href="#cb486-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb486-10"><a href="#cb486-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\vskip\parindent</span></span> +<span id="cb486-11"><a href="#cb486-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> +<span id="cb486-12"><a href="#cb486-12" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb486-13"><a href="#cb486-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb486-14"><a href="#cb486-14" aria-hidden="true" tabindex="-1"></a>A quote from William Shakespeare's King Lear:</span> +<span id="cb486-15"><a href="#cb486-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb486-16"><a href="#cb486-16" aria-hidden="true" tabindex="-1"></a>> This is the excellent foppery of the world that when we are</span> +<span id="cb486-17"><a href="#cb486-17" aria-hidden="true" tabindex="-1"></a>> sick in fortune---often the surfeit of our own behavior---we</span> +<span id="cb486-18"><a href="#cb486-18" aria-hidden="true" tabindex="-1"></a>> make guilty of our disasters the sun, the moon, and the</span> +<span id="cb486-19"><a href="#cb486-19" aria-hidden="true" tabindex="-1"></a>> stars [...]</span> +<span id="cb486-20"><a href="#cb486-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb486-21"><a href="#cb486-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb487"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb487-1"><a href="#cb487-1" aria-hidden="true" tabindex="-1"></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> @@ -8541,28 +8630,28 @@ disasters the sun, the moon, and the stars [âŚ]</p> 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="cb487"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb487-1"><a href="#cb487-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb487-2"><a href="#cb487-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb487-3"><a href="#cb487-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb487-4"><a href="#cb487-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb487-5"><a href="#cb487-5" aria-hidden="true" tabindex="-1"></a> blockQuoteBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</span> -<span id="cb487-6"><a href="#cb487-6" aria-hidden="true" tabindex="-1"></a> blockQuoteEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</span> -<span id="cb487-7"><a href="#cb487-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb487-8"><a href="#cb487-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb487-9"><a href="#cb487-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb487-10"><a href="#cb487-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb487-11"><a href="#cb487-11" aria-hidden="true" tabindex="-1"></a>A quote from William Shakespeare's King Lear:</span> -<span id="cb487-12"><a href="#cb487-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb487-13"><a href="#cb487-13" aria-hidden="true" tabindex="-1"></a>> This is the excellent foppery of the world that when we are</span> -<span id="cb487-14"><a href="#cb487-14" aria-hidden="true" tabindex="-1"></a>> sick in fortune---often the surfeit of our own behavior---we</span> -<span id="cb487-15"><a href="#cb487-15" aria-hidden="true" tabindex="-1"></a>> make guilty of our disasters the sun, the moon, and the</span> -<span id="cb487-16"><a href="#cb487-16" aria-hidden="true" tabindex="-1"></a>> stars [...]</span> -<span id="cb487-17"><a href="#cb487-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb487-18"><a href="#cb487-18" aria-hidden="true" tabindex="-1"></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="cb488"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb488-1"><a href="#cb488-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb488-1"><a href="#cb488-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb488-2"><a href="#cb488-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb488-3"><a href="#cb488-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb488-4"><a href="#cb488-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb488-5"><a href="#cb488-5" aria-hidden="true" tabindex="-1"></a> blockQuoteBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</span> +<span id="cb488-6"><a href="#cb488-6" aria-hidden="true" tabindex="-1"></a> blockQuoteEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</span> +<span id="cb488-7"><a href="#cb488-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb488-8"><a href="#cb488-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb488-9"><a href="#cb488-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb488-10"><a href="#cb488-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb488-11"><a href="#cb488-11" aria-hidden="true" tabindex="-1"></a>A quote from William Shakespeare's King Lear:</span> +<span id="cb488-12"><a href="#cb488-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb488-13"><a href="#cb488-13" aria-hidden="true" tabindex="-1"></a>> This is the excellent foppery of the world that when we are</span> +<span id="cb488-14"><a href="#cb488-14" aria-hidden="true" tabindex="-1"></a>> sick in fortune---often the surfeit of our own behavior---we</span> +<span id="cb488-15"><a href="#cb488-15" aria-hidden="true" tabindex="-1"></a>> make guilty of our disasters the sun, the moon, and the</span> +<span id="cb488-16"><a href="#cb488-16" aria-hidden="true" tabindex="-1"></a>> stars [...]</span> +<span id="cb488-17"><a href="#cb488-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb488-18"><a href="#cb488-18" aria-hidden="true" tabindex="-1"></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="cb489"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb489-1"><a href="#cb489-1" aria-hidden="true" tabindex="-1"></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> @@ -8577,23 +8666,23 @@ disasters the sun, the moon, and the stars [âŚ]</p> 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="cb489"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb489-1"><a href="#cb489-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb489-2"><a href="#cb489-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="fu">\startquotation</span>}</span> -<span id="cb489-3"><a href="#cb489-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="fu">\stopquotation</span>}</span> -<span id="cb489-4"><a href="#cb489-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb489-5"><a href="#cb489-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb489-6"><a href="#cb489-6" aria-hidden="true" tabindex="-1"></a>A quote from William Shakespeare's King Lear:</span> -<span id="cb489-7"><a href="#cb489-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb489-8"><a href="#cb489-8" aria-hidden="true" tabindex="-1"></a>> This is the excellent foppery of the world that when we are</span> -<span id="cb489-9"><a href="#cb489-9" aria-hidden="true" tabindex="-1"></a>> sick in fortune---often the surfeit of our own behavior---we</span> -<span id="cb489-10"><a href="#cb489-10" aria-hidden="true" tabindex="-1"></a>> make guilty of our disasters the sun, the moon, and the</span> -<span id="cb489-11"><a href="#cb489-11" aria-hidden="true" tabindex="-1"></a>> stars [...]</span> -<span id="cb489-12"><a href="#cb489-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb489-13"><a href="#cb489-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb490"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb490-1"><a href="#cb490-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb490-1"><a href="#cb490-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb490-2"><a href="#cb490-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteBegin</span>{<span class="fu">\startquotation</span>}</span> +<span id="cb490-3"><a href="#cb490-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererBlockQuoteEnd</span>{<span class="fu">\stopquotation</span>}</span> +<span id="cb490-4"><a href="#cb490-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb490-5"><a href="#cb490-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb490-6"><a href="#cb490-6" aria-hidden="true" tabindex="-1"></a>A quote from William Shakespeare's King Lear:</span> +<span id="cb490-7"><a href="#cb490-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb490-8"><a href="#cb490-8" aria-hidden="true" tabindex="-1"></a>> This is the excellent foppery of the world that when we are</span> +<span id="cb490-9"><a href="#cb490-9" aria-hidden="true" tabindex="-1"></a>> sick in fortune---often the surfeit of our own behavior---we</span> +<span id="cb490-10"><a href="#cb490-10" aria-hidden="true" tabindex="-1"></a>> make guilty of our disasters the sun, the moon, and the</span> +<span id="cb490-11"><a href="#cb490-11" aria-hidden="true" tabindex="-1"></a>> stars [...]</span> +<span id="cb490-12"><a href="#cb490-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb490-13"><a href="#cb490-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb491"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb491-1"><a href="#cb491-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -8619,25 +8708,25 @@ arguments.</p> 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="cb491"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb491-1"><a href="#cb491-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb491-2"><a href="#cb491-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[bracketedSpans]{<span class="ex">markdown</span>}</span> -<span id="cb491-3"><a href="#cb491-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb491-4"><a href="#cb491-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb491-5"><a href="#cb491-5" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextBegin = {(},</span> -<span id="cb491-6"><a href="#cb491-6" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextEnd = {)},</span> -<span id="cb491-7"><a href="#cb491-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb491-8"><a href="#cb491-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb491-9"><a href="#cb491-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb491-10"><a href="#cb491-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb491-11"><a href="#cb491-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb491-12"><a href="#cb491-12" aria-hidden="true" tabindex="-1"></a>[foo [bar]{#identifier}]{key=value} [baz]{.class_name}</span> -<span id="cb491-13"><a href="#cb491-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb491-14"><a href="#cb491-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb491-15"><a href="#cb491-15" aria-hidden="true" tabindex="-1"></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="cb492"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb492-1"><a href="#cb492-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb492-1"><a href="#cb492-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb492-2"><a href="#cb492-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[bracketedSpans]{<span class="ex">markdown</span>}</span> +<span id="cb492-3"><a href="#cb492-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb492-4"><a href="#cb492-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb492-5"><a href="#cb492-5" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextBegin = {(},</span> +<span id="cb492-6"><a href="#cb492-6" aria-hidden="true" tabindex="-1"></a> bracketedSpanAttributeContextEnd = {)},</span> +<span id="cb492-7"><a href="#cb492-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb492-8"><a href="#cb492-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb492-9"><a href="#cb492-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb492-10"><a href="#cb492-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb492-11"><a href="#cb492-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb492-12"><a href="#cb492-12" aria-hidden="true" tabindex="-1"></a>[foo [bar]{#identifier}]{key=value} [baz]{.class_name}</span> +<span id="cb492-13"><a href="#cb492-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb492-14"><a href="#cb492-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb492-15"><a href="#cb492-15" aria-hidden="true" tabindex="-1"></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="cb493"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb493-1"><a href="#cb493-1" aria-hidden="true" tabindex="-1"></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> @@ -8670,52 +8759,52 @@ receives no arguments.</p> 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="cb493"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb493-1"><a href="#cb493-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb493-2"><a href="#cb493-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span> -<span id="cb493-3"><a href="#cb493-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-4"><a href="#cb493-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> -<span id="cb493-5"><a href="#cb493-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span> -<span id="cb493-6"><a href="#cb493-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> -<span id="cb493-7"><a href="#cb493-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> -<span id="cb493-8"><a href="#cb493-8" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb493-9"><a href="#cb493-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span> -<span id="cb493-10"><a href="#cb493-10" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb493-11"><a href="#cb493-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb493-12"><a href="#cb493-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span> -<span id="cb493-13"><a href="#cb493-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span> -<span id="cb493-14"><a href="#cb493-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-15"><a href="#cb493-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb493-16"><a href="#cb493-16" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> -<span id="cb493-17"><a href="#cb493-17" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-18"><a href="#cb493-18" aria-hidden="true" tabindex="-1"></a>- the first item</span> -<span id="cb493-19"><a href="#cb493-19" aria-hidden="true" tabindex="-1"></a>- the second item</span> -<span id="cb493-20"><a href="#cb493-20" aria-hidden="true" tabindex="-1"></a>- the third item</span> -<span id="cb493-21"><a href="#cb493-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb493-22"><a href="#cb493-22" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-23"><a href="#cb493-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb493-24"><a href="#cb493-24" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> -<span id="cb493-25"><a href="#cb493-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb493-26"><a href="#cb493-26" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb493-27"><a href="#cb493-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBegin</span>{}</span> -<span id="cb493-28"><a href="#cb493-28" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{--<span class="fu">\kern</span> 0.5em}</span> -<span id="cb493-29"><a href="#cb493-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.<span class="fu">\par</span>}</span> -<span id="cb493-30"><a href="#cb493-30" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEnd</span>{}</span> -<span id="cb493-31"><a href="#cb493-31" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-32"><a href="#cb493-32" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb493-33"><a href="#cb493-33" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> -<span id="cb493-34"><a href="#cb493-34" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-35"><a href="#cb493-35" aria-hidden="true" tabindex="-1"></a>- This is the first item</span> -<span id="cb493-36"><a href="#cb493-36" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-37"><a href="#cb493-37" aria-hidden="true" tabindex="-1"></a>- This is the second item</span> -<span id="cb493-38"><a href="#cb493-38" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-39"><a href="#cb493-39" aria-hidden="true" tabindex="-1"></a>- This is the third item</span> -<span id="cb493-40"><a href="#cb493-40" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb493-41"><a href="#cb493-41" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb493-42"><a href="#cb493-42" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb494"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb494-1"><a href="#cb494-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb494-1"><a href="#cb494-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb494-2"><a href="#cb494-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span> +<span id="cb494-3"><a href="#cb494-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-4"><a href="#cb494-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> +<span id="cb494-5"><a href="#cb494-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span> +<span id="cb494-6"><a href="#cb494-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> +<span id="cb494-7"><a href="#cb494-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> +<span id="cb494-8"><a href="#cb494-8" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb494-9"><a href="#cb494-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span> +<span id="cb494-10"><a href="#cb494-10" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb494-11"><a href="#cb494-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb494-12"><a href="#cb494-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span> +<span id="cb494-13"><a href="#cb494-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span> +<span id="cb494-14"><a href="#cb494-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-15"><a href="#cb494-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb494-16"><a href="#cb494-16" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> +<span id="cb494-17"><a href="#cb494-17" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-18"><a href="#cb494-18" aria-hidden="true" tabindex="-1"></a>- the first item</span> +<span id="cb494-19"><a href="#cb494-19" aria-hidden="true" tabindex="-1"></a>- the second item</span> +<span id="cb494-20"><a href="#cb494-20" aria-hidden="true" tabindex="-1"></a>- the third item</span> +<span id="cb494-21"><a href="#cb494-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb494-22"><a href="#cb494-22" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-23"><a href="#cb494-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb494-24"><a href="#cb494-24" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> +<span id="cb494-25"><a href="#cb494-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb494-26"><a href="#cb494-26" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb494-27"><a href="#cb494-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBegin</span>{}</span> +<span id="cb494-28"><a href="#cb494-28" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{--<span class="fu">\kern</span> 0.5em}</span> +<span id="cb494-29"><a href="#cb494-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.<span class="fu">\par</span>}</span> +<span id="cb494-30"><a href="#cb494-30" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEnd</span>{}</span> +<span id="cb494-31"><a href="#cb494-31" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-32"><a href="#cb494-32" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb494-33"><a href="#cb494-33" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> +<span id="cb494-34"><a href="#cb494-34" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-35"><a href="#cb494-35" aria-hidden="true" tabindex="-1"></a>- This is the first item</span> +<span id="cb494-36"><a href="#cb494-36" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-37"><a href="#cb494-37" aria-hidden="true" tabindex="-1"></a>- This is the second item</span> +<span id="cb494-38"><a href="#cb494-38" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-39"><a href="#cb494-39" aria-hidden="true" tabindex="-1"></a>- This is the third item</span> +<span id="cb494-40"><a href="#cb494-40" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb494-41"><a href="#cb494-41" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb494-42"><a href="#cb494-42" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb495"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb495-1"><a href="#cb495-1" aria-hidden="true" tabindex="-1"></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> @@ -8732,57 +8821,57 @@ item).</p> 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="cb495"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb495-1"><a href="#cb495-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb495-2"><a href="#cb495-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[tightLists]{<span class="ex">markdown</span>}</span> -<span id="cb495-3"><a href="#cb495-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb495-4"><a href="#cb495-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-5"><a href="#cb495-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb495-6"><a href="#cb495-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb495-7"><a href="#cb495-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {},</span> -<span id="cb495-8"><a href="#cb495-8" aria-hidden="true" tabindex="-1"></a> ulBeginTight = { (},</span> -<span id="cb495-9"><a href="#cb495-9" aria-hidden="true" tabindex="-1"></a> ulItem = {<span class="co">%</span></span> -<span id="cb495-10"><a href="#cb495-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> -<span id="cb495-11"><a href="#cb495-11" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb495-12"><a href="#cb495-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span> -<span id="cb495-13"><a href="#cb495-13" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb495-14"><a href="#cb495-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb495-15"><a href="#cb495-15" aria-hidden="true" tabindex="-1"></a> ulItemEnd = {},</span> -<span id="cb495-16"><a href="#cb495-16" aria-hidden="true" tabindex="-1"></a> ulEndTight = {).},</span> -<span id="cb495-17"><a href="#cb495-17" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb495-18"><a href="#cb495-18" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb495-19"><a href="#cb495-19" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> -<span id="cb495-20"><a href="#cb495-20" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-21"><a href="#cb495-21" aria-hidden="true" tabindex="-1"></a>- the first item</span> -<span id="cb495-22"><a href="#cb495-22" aria-hidden="true" tabindex="-1"></a>- the second item</span> -<span id="cb495-23"><a href="#cb495-23" aria-hidden="true" tabindex="-1"></a>- the third item</span> -<span id="cb495-24"><a href="#cb495-24" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb495-25"><a href="#cb495-25" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-26"><a href="#cb495-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb495-27"><a href="#cb495-27" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb495-28"><a href="#cb495-28" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> -<span id="cb495-29"><a href="#cb495-29" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> -<span id="cb495-30"><a href="#cb495-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb495-31"><a href="#cb495-31" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb495-32"><a href="#cb495-32" aria-hidden="true" tabindex="-1"></a> ulBeginTight = {<span class="kw">\begin</span>{<span class="ex">itemize</span>}},</span> -<span id="cb495-33"><a href="#cb495-33" aria-hidden="true" tabindex="-1"></a> ulItem = {<span class="fu">\item</span>},</span> -<span id="cb495-34"><a href="#cb495-34" aria-hidden="true" tabindex="-1"></a> ulItemEnd = {.},</span> -<span id="cb495-35"><a href="#cb495-35" aria-hidden="true" tabindex="-1"></a> ulEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span> -<span id="cb495-36"><a href="#cb495-36" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb495-37"><a href="#cb495-37" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb495-38"><a href="#cb495-38" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> -<span id="cb495-39"><a href="#cb495-39" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-40"><a href="#cb495-40" aria-hidden="true" tabindex="-1"></a>- This is the first item</span> -<span id="cb495-41"><a href="#cb495-41" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-42"><a href="#cb495-42" aria-hidden="true" tabindex="-1"></a>- This is the second item</span> -<span id="cb495-43"><a href="#cb495-43" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-44"><a href="#cb495-44" aria-hidden="true" tabindex="-1"></a>- This is the third item</span> -<span id="cb495-45"><a href="#cb495-45" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb495-46"><a href="#cb495-46" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb495-47"><a href="#cb495-47" aria-hidden="true" tabindex="-1"></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="cb496"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb496-1"><a href="#cb496-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb496-1"><a href="#cb496-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb496-2"><a href="#cb496-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[tightLists]{<span class="ex">markdown</span>}</span> +<span id="cb496-3"><a href="#cb496-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb496-4"><a href="#cb496-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-5"><a href="#cb496-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb496-6"><a href="#cb496-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb496-7"><a href="#cb496-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {},</span> +<span id="cb496-8"><a href="#cb496-8" aria-hidden="true" tabindex="-1"></a> ulBeginTight = { (},</span> +<span id="cb496-9"><a href="#cb496-9" aria-hidden="true" tabindex="-1"></a> ulItem = {<span class="co">%</span></span> +<span id="cb496-10"><a href="#cb496-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> +<span id="cb496-11"><a href="#cb496-11" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb496-12"><a href="#cb496-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span> +<span id="cb496-13"><a href="#cb496-13" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb496-14"><a href="#cb496-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb496-15"><a href="#cb496-15" aria-hidden="true" tabindex="-1"></a> ulItemEnd = {},</span> +<span id="cb496-16"><a href="#cb496-16" aria-hidden="true" tabindex="-1"></a> ulEndTight = {).},</span> +<span id="cb496-17"><a href="#cb496-17" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb496-18"><a href="#cb496-18" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb496-19"><a href="#cb496-19" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> +<span id="cb496-20"><a href="#cb496-20" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-21"><a href="#cb496-21" aria-hidden="true" tabindex="-1"></a>- the first item</span> +<span id="cb496-22"><a href="#cb496-22" aria-hidden="true" tabindex="-1"></a>- the second item</span> +<span id="cb496-23"><a href="#cb496-23" aria-hidden="true" tabindex="-1"></a>- the third item</span> +<span id="cb496-24"><a href="#cb496-24" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb496-25"><a href="#cb496-25" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-26"><a href="#cb496-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb496-27"><a href="#cb496-27" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb496-28"><a href="#cb496-28" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> +<span id="cb496-29"><a href="#cb496-29" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> +<span id="cb496-30"><a href="#cb496-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb496-31"><a href="#cb496-31" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb496-32"><a href="#cb496-32" aria-hidden="true" tabindex="-1"></a> ulBeginTight = {<span class="kw">\begin</span>{<span class="ex">itemize</span>}},</span> +<span id="cb496-33"><a href="#cb496-33" aria-hidden="true" tabindex="-1"></a> ulItem = {<span class="fu">\item</span>},</span> +<span id="cb496-34"><a href="#cb496-34" aria-hidden="true" tabindex="-1"></a> ulItemEnd = {.},</span> +<span id="cb496-35"><a href="#cb496-35" aria-hidden="true" tabindex="-1"></a> ulEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span> +<span id="cb496-36"><a href="#cb496-36" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb496-37"><a href="#cb496-37" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb496-38"><a href="#cb496-38" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> +<span id="cb496-39"><a href="#cb496-39" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-40"><a href="#cb496-40" aria-hidden="true" tabindex="-1"></a>- This is the first item</span> +<span id="cb496-41"><a href="#cb496-41" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-42"><a href="#cb496-42" aria-hidden="true" tabindex="-1"></a>- This is the second item</span> +<span id="cb496-43"><a href="#cb496-43" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-44"><a href="#cb496-44" aria-hidden="true" tabindex="-1"></a>- This is the third item</span> +<span id="cb496-45"><a href="#cb496-45" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb496-46"><a href="#cb496-46" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb496-47"><a href="#cb496-47" aria-hidden="true" tabindex="-1"></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="cb497"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb497-1"><a href="#cb497-1" aria-hidden="true" tabindex="-1"></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> @@ -8799,53 +8888,53 @@ item).</p> 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="cb497"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb497-1"><a href="#cb497-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb497-2"><a href="#cb497-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[tightLists = yes]</span> -<span id="cb497-3"><a href="#cb497-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb497-4"><a href="#cb497-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-5"><a href="#cb497-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> -<span id="cb497-6"><a href="#cb497-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span> -<span id="cb497-7"><a href="#cb497-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> -<span id="cb497-8"><a href="#cb497-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> -<span id="cb497-9"><a href="#cb497-9" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb497-10"><a href="#cb497-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span> -<span id="cb497-11"><a href="#cb497-11" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb497-12"><a href="#cb497-12" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb497-13"><a href="#cb497-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span> -<span id="cb497-14"><a href="#cb497-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span> -<span id="cb497-15"><a href="#cb497-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-16"><a href="#cb497-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb497-17"><a href="#cb497-17" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> -<span id="cb497-18"><a href="#cb497-18" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-19"><a href="#cb497-19" aria-hidden="true" tabindex="-1"></a>- the first item</span> -<span id="cb497-20"><a href="#cb497-20" aria-hidden="true" tabindex="-1"></a>- the second item</span> -<span id="cb497-21"><a href="#cb497-21" aria-hidden="true" tabindex="-1"></a>- the third item</span> -<span id="cb497-22"><a href="#cb497-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb497-23"><a href="#cb497-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-24"><a href="#cb497-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb497-25"><a href="#cb497-25" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> -<span id="cb497-26"><a href="#cb497-26" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb497-27"><a href="#cb497-27" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb497-28"><a href="#cb497-28" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBegin</span>{<span class="fu">\startitemize</span>}</span> -<span id="cb497-29"><a href="#cb497-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="fu">\item</span>}</span> -<span id="cb497-30"><a href="#cb497-30" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.}</span> -<span id="cb497-31"><a href="#cb497-31" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEnd</span>{<span class="fu">\stopitemize</span>}</span> -<span id="cb497-32"><a href="#cb497-32" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-33"><a href="#cb497-33" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb497-34"><a href="#cb497-34" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> -<span id="cb497-35"><a href="#cb497-35" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-36"><a href="#cb497-36" aria-hidden="true" tabindex="-1"></a>- This is the first item</span> -<span id="cb497-37"><a href="#cb497-37" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-38"><a href="#cb497-38" aria-hidden="true" tabindex="-1"></a>- This is the second item</span> -<span id="cb497-39"><a href="#cb497-39" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-40"><a href="#cb497-40" aria-hidden="true" tabindex="-1"></a>- This is the third item</span> -<span id="cb497-41"><a href="#cb497-41" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb497-42"><a href="#cb497-42" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb497-43"><a href="#cb497-43" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb498"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb498-1"><a href="#cb498-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb498-1"><a href="#cb498-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb498-2"><a href="#cb498-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[tightLists = yes]</span> +<span id="cb498-3"><a href="#cb498-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb498-4"><a href="#cb498-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-5"><a href="#cb498-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> +<span id="cb498-6"><a href="#cb498-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBeginTight</span>{ (}</span> +<span id="cb498-7"><a href="#cb498-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> +<span id="cb498-8"><a href="#cb498-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{<span class="co">%</span></span> +<span id="cb498-9"><a href="#cb498-9" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb498-10"><a href="#cb498-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererUlItem</span>{, and }<span class="co">%</span></span> +<span id="cb498-11"><a href="#cb498-11" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb498-12"><a href="#cb498-12" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb498-13"><a href="#cb498-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{}</span> +<span id="cb498-14"><a href="#cb498-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEndTight</span>{).}</span> +<span id="cb498-15"><a href="#cb498-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-16"><a href="#cb498-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb498-17"><a href="#cb498-17" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> +<span id="cb498-18"><a href="#cb498-18" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-19"><a href="#cb498-19" aria-hidden="true" tabindex="-1"></a>- the first item</span> +<span id="cb498-20"><a href="#cb498-20" aria-hidden="true" tabindex="-1"></a>- the second item</span> +<span id="cb498-21"><a href="#cb498-21" aria-hidden="true" tabindex="-1"></a>- the third item</span> +<span id="cb498-22"><a href="#cb498-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb498-23"><a href="#cb498-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-24"><a href="#cb498-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb498-25"><a href="#cb498-25" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> +<span id="cb498-26"><a href="#cb498-26" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb498-27"><a href="#cb498-27" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb498-28"><a href="#cb498-28" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlBegin</span>{<span class="fu">\startitemize</span>}</span> +<span id="cb498-29"><a href="#cb498-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItem</span>{<span class="fu">\item</span>}</span> +<span id="cb498-30"><a href="#cb498-30" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlItemEnd</span>{.}</span> +<span id="cb498-31"><a href="#cb498-31" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUlEnd</span>{<span class="fu">\stopitemize</span>}</span> +<span id="cb498-32"><a href="#cb498-32" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-33"><a href="#cb498-33" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb498-34"><a href="#cb498-34" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> +<span id="cb498-35"><a href="#cb498-35" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-36"><a href="#cb498-36" aria-hidden="true" tabindex="-1"></a>- This is the first item</span> +<span id="cb498-37"><a href="#cb498-37" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-38"><a href="#cb498-38" aria-hidden="true" tabindex="-1"></a>- This is the second item</span> +<span id="cb498-39"><a href="#cb498-39" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-40"><a href="#cb498-40" aria-hidden="true" tabindex="-1"></a>- This is the third item</span> +<span id="cb498-41"><a href="#cb498-41" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb498-42"><a href="#cb498-42" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb498-43"><a href="#cb498-43" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb499"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb499-1"><a href="#cb499-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -8873,50 +8962,50 @@ authorâs name is to be suppressed, or <code>+</code> otherwise.</p> 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="cb499"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb499-1"><a href="#cb499-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb499-2"><a href="#cb499-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> -<span id="cb499-3"><a href="#cb499-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsCounter</span></span> -<span id="cb499-4"><a href="#cb499-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsTotal</span></span> -<span id="cb499-5"><a href="#cb499-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatletter</span></span> -<span id="cb499-6"><a href="#cb499-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb499-7"><a href="#cb499-7" aria-hidden="true" tabindex="-1"></a> a parenthesized citation <span class="fu">\emph</span>{#4}</span> -<span id="cb499-8"><a href="#cb499-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span> -<span id="cb499-9"><a href="#cb499-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span> -<span id="cb499-10"><a href="#cb499-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> -<span id="cb499-11"><a href="#cb499-11" aria-hidden="true" tabindex="-1"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> -<span id="cb499-12"><a href="#cb499-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb499-13"><a href="#cb499-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb499-14"><a href="#cb499-14" aria-hidden="true" tabindex="-1"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span> -<span id="cb499-15"><a href="#cb499-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> -<span id="cb499-16"><a href="#cb499-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> -<span id="cb499-17"><a href="#cb499-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb499-18"><a href="#cb499-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb499-19"><a href="#cb499-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\citationsCounter</span>><span class="fu">\citationsTotal\relax</span></span> -<span id="cb499-20"><a href="#cb499-20" aria-hidden="true" tabindex="-1"></a> .<span class="co">%</span></span> -<span id="cb499-21"><a href="#cb499-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\@gobble</span></span> -<span id="cb499-22"><a href="#cb499-22" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb499-23"><a href="#cb499-23" aria-hidden="true" tabindex="-1"></a> , and</span> -<span id="cb499-24"><a href="#cb499-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\citations</span>}</span> -<span id="cb499-25"><a href="#cb499-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatother</span></span> -<span id="cb499-26"><a href="#cb499-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb499-27"><a href="#cb499-27" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb499-28"><a href="#cb499-28" aria-hidden="true" tabindex="-1"></a> cite = {<span class="co">%</span></span> -<span id="cb499-29"><a href="#cb499-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span> -<span id="cb499-30"><a href="#cb499-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span> -<span id="cb499-31"><a href="#cb499-31" aria-hidden="true" tabindex="-1"></a> This is</span> -<span id="cb499-32"><a href="#cb499-32" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\citations</span></span> -<span id="cb499-33"><a href="#cb499-33" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb499-34"><a href="#cb499-34" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb499-35"><a href="#cb499-35" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb499-36"><a href="#cb499-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb499-37"><a href="#cb499-37" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb499-38"><a href="#cb499-38" aria-hidden="true" tabindex="-1"></a>[see @abrahams90, pp. 12; @eijkhout91, pp. 34]</span> -<span id="cb499-39"><a href="#cb499-39" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb499-40"><a href="#cb499-40" aria-hidden="true" tabindex="-1"></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="cb500"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb500-1"><a href="#cb500-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb500-1"><a href="#cb500-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb500-2"><a href="#cb500-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> +<span id="cb500-3"><a href="#cb500-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsCounter</span></span> +<span id="cb500-4"><a href="#cb500-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsTotal</span></span> +<span id="cb500-5"><a href="#cb500-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatletter</span></span> +<span id="cb500-6"><a href="#cb500-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb500-7"><a href="#cb500-7" aria-hidden="true" tabindex="-1"></a> a parenthesized citation <span class="fu">\emph</span>{#4}</span> +<span id="cb500-8"><a href="#cb500-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span> +<span id="cb500-9"><a href="#cb500-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span> +<span id="cb500-10"><a href="#cb500-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> +<span id="cb500-11"><a href="#cb500-11" aria-hidden="true" tabindex="-1"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> +<span id="cb500-12"><a href="#cb500-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb500-13"><a href="#cb500-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb500-14"><a href="#cb500-14" aria-hidden="true" tabindex="-1"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span> +<span id="cb500-15"><a href="#cb500-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> +<span id="cb500-16"><a href="#cb500-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> +<span id="cb500-17"><a href="#cb500-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb500-18"><a href="#cb500-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb500-19"><a href="#cb500-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\citationsCounter</span>><span class="fu">\citationsTotal\relax</span></span> +<span id="cb500-20"><a href="#cb500-20" aria-hidden="true" tabindex="-1"></a> .<span class="co">%</span></span> +<span id="cb500-21"><a href="#cb500-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\@gobble</span></span> +<span id="cb500-22"><a href="#cb500-22" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb500-23"><a href="#cb500-23" aria-hidden="true" tabindex="-1"></a> , and</span> +<span id="cb500-24"><a href="#cb500-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\citations</span>}</span> +<span id="cb500-25"><a href="#cb500-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatother</span></span> +<span id="cb500-26"><a href="#cb500-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb500-27"><a href="#cb500-27" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb500-28"><a href="#cb500-28" aria-hidden="true" tabindex="-1"></a> cite = {<span class="co">%</span></span> +<span id="cb500-29"><a href="#cb500-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span> +<span id="cb500-30"><a href="#cb500-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span> +<span id="cb500-31"><a href="#cb500-31" aria-hidden="true" tabindex="-1"></a> This is</span> +<span id="cb500-32"><a href="#cb500-32" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\citations</span></span> +<span id="cb500-33"><a href="#cb500-33" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb500-34"><a href="#cb500-34" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb500-35"><a href="#cb500-35" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb500-36"><a href="#cb500-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb500-37"><a href="#cb500-37" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb500-38"><a href="#cb500-38" aria-hidden="true" tabindex="-1"></a>[see @abrahams90, pp. 12; @eijkhout91, pp. 34]</span> +<span id="cb500-39"><a href="#cb500-39" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb500-40"><a href="#cb500-40" aria-hidden="true" tabindex="-1"></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="cb501"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb501-1"><a href="#cb501-1" aria-hidden="true" tabindex="-1"></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> @@ -8933,50 +9022,50 @@ receives parameters in the same format as the 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="cb501"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb501-1"><a href="#cb501-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb501-2"><a href="#cb501-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> -<span id="cb501-3"><a href="#cb501-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsCounter</span></span> -<span id="cb501-4"><a href="#cb501-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsTotal</span></span> -<span id="cb501-5"><a href="#cb501-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatletter</span></span> -<span id="cb501-6"><a href="#cb501-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb501-7"><a href="#cb501-7" aria-hidden="true" tabindex="-1"></a> a text citation <span class="fu">\emph</span>{#4}</span> -<span id="cb501-8"><a href="#cb501-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span> -<span id="cb501-9"><a href="#cb501-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span> -<span id="cb501-10"><a href="#cb501-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> -<span id="cb501-11"><a href="#cb501-11" aria-hidden="true" tabindex="-1"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> -<span id="cb501-12"><a href="#cb501-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb501-13"><a href="#cb501-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb501-14"><a href="#cb501-14" aria-hidden="true" tabindex="-1"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span> -<span id="cb501-15"><a href="#cb501-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> -<span id="cb501-16"><a href="#cb501-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> -<span id="cb501-17"><a href="#cb501-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb501-18"><a href="#cb501-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb501-19"><a href="#cb501-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\citationsCounter</span>><span class="fu">\citationsTotal\relax</span></span> -<span id="cb501-20"><a href="#cb501-20" aria-hidden="true" tabindex="-1"></a> .<span class="co">%</span></span> -<span id="cb501-21"><a href="#cb501-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\@gobble</span></span> -<span id="cb501-22"><a href="#cb501-22" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb501-23"><a href="#cb501-23" aria-hidden="true" tabindex="-1"></a> , and</span> -<span id="cb501-24"><a href="#cb501-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\citations</span>}</span> -<span id="cb501-25"><a href="#cb501-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatother</span></span> -<span id="cb501-26"><a href="#cb501-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb501-27"><a href="#cb501-27" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb501-28"><a href="#cb501-28" aria-hidden="true" tabindex="-1"></a> textCite = {<span class="co">%</span></span> -<span id="cb501-29"><a href="#cb501-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span> -<span id="cb501-30"><a href="#cb501-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span> -<span id="cb501-31"><a href="#cb501-31" aria-hidden="true" tabindex="-1"></a> This is</span> -<span id="cb501-32"><a href="#cb501-32" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\citations</span></span> -<span id="cb501-33"><a href="#cb501-33" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb501-34"><a href="#cb501-34" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb501-35"><a href="#cb501-35" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb501-36"><a href="#cb501-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb501-37"><a href="#cb501-37" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb501-38"><a href="#cb501-38" aria-hidden="true" tabindex="-1"></a>@abrahams90 [pp. 12; also @eijkhout91]</span> -<span id="cb501-39"><a href="#cb501-39" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb501-40"><a href="#cb501-40" aria-hidden="true" tabindex="-1"></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="cb502"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb502-1"><a href="#cb502-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb502-1"><a href="#cb502-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb502-2"><a href="#cb502-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</span> +<span id="cb502-3"><a href="#cb502-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsCounter</span></span> +<span id="cb502-4"><a href="#cb502-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\citationsTotal</span></span> +<span id="cb502-5"><a href="#cb502-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatletter</span></span> +<span id="cb502-6"><a href="#cb502-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\citations</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb502-7"><a href="#cb502-7" aria-hidden="true" tabindex="-1"></a> a text citation <span class="fu">\emph</span>{#4}</span> +<span id="cb502-8"><a href="#cb502-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\citationsCounter</span> by 1<span class="fu">\relax</span></span> +<span id="cb502-9"><a href="#cb502-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#2<span class="fu">\relax</span></span> +<span id="cb502-10"><a href="#cb502-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> +<span id="cb502-11"><a href="#cb502-11" aria-hidden="true" tabindex="-1"></a> with a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> +<span id="cb502-12"><a href="#cb502-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb502-13"><a href="#cb502-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb502-14"><a href="#cb502-14" aria-hidden="true" tabindex="-1"></a> with a prefix <span class="fu">\emph</span>{#2}<span class="co">%</span></span> +<span id="cb502-15"><a href="#cb502-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifx\relax</span>#3<span class="fu">\relax\else</span></span> +<span id="cb502-16"><a href="#cb502-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ </span>and a postfix <span class="fu">\emph</span>{#3}<span class="co">%</span></span> +<span id="cb502-17"><a href="#cb502-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb502-18"><a href="#cb502-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb502-19"><a href="#cb502-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\citationsCounter</span>><span class="fu">\citationsTotal\relax</span></span> +<span id="cb502-20"><a href="#cb502-20" aria-hidden="true" tabindex="-1"></a> .<span class="co">%</span></span> +<span id="cb502-21"><a href="#cb502-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\@gobble</span></span> +<span id="cb502-22"><a href="#cb502-22" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb502-23"><a href="#cb502-23" aria-hidden="true" tabindex="-1"></a> , and</span> +<span id="cb502-24"><a href="#cb502-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\citations</span>}</span> +<span id="cb502-25"><a href="#cb502-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatother</span></span> +<span id="cb502-26"><a href="#cb502-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb502-27"><a href="#cb502-27" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb502-28"><a href="#cb502-28" aria-hidden="true" tabindex="-1"></a> textCite = {<span class="co">%</span></span> +<span id="cb502-29"><a href="#cb502-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></span> +<span id="cb502-30"><a href="#cb502-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></span> +<span id="cb502-31"><a href="#cb502-31" aria-hidden="true" tabindex="-1"></a> This is</span> +<span id="cb502-32"><a href="#cb502-32" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\citations</span></span> +<span id="cb502-33"><a href="#cb502-33" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb502-34"><a href="#cb502-34" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb502-35"><a href="#cb502-35" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb502-36"><a href="#cb502-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb502-37"><a href="#cb502-37" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb502-38"><a href="#cb502-38" aria-hidden="true" tabindex="-1"></a>@abrahams90 [pp. 12; also @eijkhout91]</span> +<span id="cb502-39"><a href="#cb502-39" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb502-40"><a href="#cb502-40" aria-hidden="true" tabindex="-1"></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="cb503"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb503-1"><a href="#cb503-1" aria-hidden="true" tabindex="-1"></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> @@ -8988,91 +9077,91 @@ contain the following text:</p> class="header-section-number">2.3.1.6</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> +filename of a file containing 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 three arguments that correspond to the filename of a file -contaning the code block contents, the fully escaped code fence +containing the code block contents, the fully escaped code fence infostring that can be directly typeset, and the raw code fence infostring that can be used outside typesetting.</p> <h5 class="unnumbered" 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="cb503"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb503-1"><a href="#cb503-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb503-2"><a href="#cb503-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span> -<span id="cb503-3"><a href="#cb503-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[hyphens]{<span class="ex">url</span>}</span> -<span id="cb503-4"><a href="#cb503-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</span> -<span id="cb503-5"><a href="#cb503-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb503-6"><a href="#cb503-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb503-7"><a href="#cb503-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {</span> -<span id="cb503-8"><a href="#cb503-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb503-9"><a href="#cb503-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb503-10"><a href="#cb503-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb503-11"><a href="#cb503-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb503-12"><a href="#cb503-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb503-13"><a href="#cb503-13" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb503-14"><a href="#cb503-14" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb503-15"><a href="#cb503-15" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb503-16"><a href="#cb503-16" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb503-17"><a href="#cb503-17" aria-hidden="true" tabindex="-1"></a> inputVerbatim = {</span> -<span id="cb503-18"><a href="#cb503-18" aria-hidden="true" tabindex="-1"></a> is contained in file <span class="fu">\url</span>{#1}:<span class="co">%</span></span> -<span id="cb503-19"><a href="#cb503-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\verbatiminput</span>{#1}<span class="co">%</span></span> -<span id="cb503-20"><a href="#cb503-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb503-21"><a href="#cb503-21" aria-hidden="true" tabindex="-1"></a> inputFencedCode = {</span> -<span id="cb503-22"><a href="#cb503-22" aria-hidden="true" tabindex="-1"></a> in #2 <span class="fu">\markdownRendererInputVerbatim</span>{#1}<span class="co">%</span></span> -<span id="cb503-23"><a href="#cb503-23" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb503-24"><a href="#cb503-24" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb503-25"><a href="#cb503-25" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb503-26"><a href="#cb503-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb503-27"><a href="#cb503-27" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb503-28"><a href="#cb503-28" aria-hidden="true" tabindex="-1"></a>The following code</span> -<span id="cb503-29"><a href="#cb503-29" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb503-30"><a href="#cb503-30" aria-hidden="true" tabindex="-1"></a> def foo(bar):</span> -<span id="cb503-31"><a href="#cb503-31" aria-hidden="true" tabindex="-1"></a> if len(bar) <= 1:</span> -<span id="cb503-32"><a href="#cb503-32" aria-hidden="true" tabindex="-1"></a> return bar[0]</span> -<span id="cb503-33"><a href="#cb503-33" aria-hidden="true" tabindex="-1"></a> elif len(bar) == 2:</span> -<span id="cb503-34"><a href="#cb503-34" aria-hidden="true" tabindex="-1"></a> return sorted(bar)</span> -<span id="cb503-35"><a href="#cb503-35" aria-hidden="true" tabindex="-1"></a> else:</span> -<span id="cb503-36"><a href="#cb503-36" aria-hidden="true" tabindex="-1"></a> baz = len(bar) // 2</span> -<span id="cb503-37"><a href="#cb503-37" aria-hidden="true" tabindex="-1"></a> return foo(bar[baz:], bar[:baz])</span> -<span id="cb503-38"><a href="#cb503-38" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb503-39"><a href="#cb503-39" aria-hidden="true" tabindex="-1"></a>The following code</span> -<span id="cb503-40"><a href="#cb503-40" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb503-41"><a href="#cb503-41" aria-hidden="true" tabindex="-1"></a>~~~ Python</span> -<span id="cb503-42"><a href="#cb503-42" aria-hidden="true" tabindex="-1"></a>>>> foo([4, 2, 1, 3])</span> -<span id="cb503-43"><a href="#cb503-43" aria-hidden="true" tabindex="-1"></a>[1, 2, 3, 4]</span> -<span id="cb503-44"><a href="#cb503-44" aria-hidden="true" tabindex="-1"></a>~~~~~~~~~~</span> -<span id="cb503-45"><a href="#cb503-45" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb503-46"><a href="#cb503-46" aria-hidden="true" tabindex="-1"></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="cb504"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb504-1"><a href="#cb504-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb504-1"><a href="#cb504-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb504-2"><a href="#cb504-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span> +<span id="cb504-3"><a href="#cb504-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[hyphens]{<span class="ex">url</span>}</span> +<span id="cb504-4"><a href="#cb504-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</span> +<span id="cb504-5"><a href="#cb504-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb504-6"><a href="#cb504-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb504-7"><a href="#cb504-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {</span> +<span id="cb504-8"><a href="#cb504-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb504-9"><a href="#cb504-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb504-10"><a href="#cb504-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb504-11"><a href="#cb504-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb504-12"><a href="#cb504-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb504-13"><a href="#cb504-13" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb504-14"><a href="#cb504-14" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb504-15"><a href="#cb504-15" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb504-16"><a href="#cb504-16" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb504-17"><a href="#cb504-17" aria-hidden="true" tabindex="-1"></a> inputVerbatim = {</span> +<span id="cb504-18"><a href="#cb504-18" aria-hidden="true" tabindex="-1"></a> is contained in file <span class="fu">\url</span>{#1}:<span class="co">%</span></span> +<span id="cb504-19"><a href="#cb504-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\verbatiminput</span>{#1}<span class="co">%</span></span> +<span id="cb504-20"><a href="#cb504-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb504-21"><a href="#cb504-21" aria-hidden="true" tabindex="-1"></a> inputFencedCode = {</span> +<span id="cb504-22"><a href="#cb504-22" aria-hidden="true" tabindex="-1"></a> in #2 <span class="fu">\markdownRendererInputVerbatim</span>{#1}<span class="co">%</span></span> +<span id="cb504-23"><a href="#cb504-23" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb504-24"><a href="#cb504-24" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb504-25"><a href="#cb504-25" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb504-26"><a href="#cb504-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb504-27"><a href="#cb504-27" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb504-28"><a href="#cb504-28" aria-hidden="true" tabindex="-1"></a>The following code</span> +<span id="cb504-29"><a href="#cb504-29" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb504-30"><a href="#cb504-30" aria-hidden="true" tabindex="-1"></a> def foo(bar):</span> +<span id="cb504-31"><a href="#cb504-31" aria-hidden="true" tabindex="-1"></a> if len(bar) <= 1:</span> +<span id="cb504-32"><a href="#cb504-32" aria-hidden="true" tabindex="-1"></a> return bar[0]</span> +<span id="cb504-33"><a href="#cb504-33" aria-hidden="true" tabindex="-1"></a> elif len(bar) == 2:</span> +<span id="cb504-34"><a href="#cb504-34" aria-hidden="true" tabindex="-1"></a> return sorted(bar)</span> +<span id="cb504-35"><a href="#cb504-35" aria-hidden="true" tabindex="-1"></a> else:</span> +<span id="cb504-36"><a href="#cb504-36" aria-hidden="true" tabindex="-1"></a> baz = len(bar) // 2</span> +<span id="cb504-37"><a href="#cb504-37" aria-hidden="true" tabindex="-1"></a> return foo(bar[baz:], bar[:baz])</span> +<span id="cb504-38"><a href="#cb504-38" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb504-39"><a href="#cb504-39" aria-hidden="true" tabindex="-1"></a>The following code</span> +<span id="cb504-40"><a href="#cb504-40" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb504-41"><a href="#cb504-41" aria-hidden="true" tabindex="-1"></a>~~~ Python</span> +<span id="cb504-42"><a href="#cb504-42" aria-hidden="true" tabindex="-1"></a>>>> foo([4, 2, 1, 3])</span> +<span id="cb504-43"><a href="#cb504-43" aria-hidden="true" tabindex="-1"></a>[1, 2, 3, 4]</span> +<span id="cb504-44"><a href="#cb504-44" aria-hidden="true" tabindex="-1"></a>~~~~~~~~~~</span> +<span id="cb504-45"><a href="#cb504-45" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb504-46"><a href="#cb504-46" aria-hidden="true" tabindex="-1"></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="cb505"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb505-1"><a href="#cb505-1" aria-hidden="true" tabindex="-1"></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="cb505"><pre -class="sourceCode py"><code class="sourceCode python"><span id="cb505-1"><a href="#cb505-1" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> foo(bar):</span> -<span id="cb505-2"><a href="#cb505-2" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="bu">len</span>(bar) <span class="op"><=</span> <span class="dv">1</span>:</span> -<span id="cb505-3"><a href="#cb505-3" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> bar[:<span class="dv">1</span>]</span> -<span id="cb505-4"><a href="#cb505-4" aria-hidden="true" tabindex="-1"></a> <span class="cf">elif</span> <span class="bu">len</span>(bar) <span class="op">==</span> <span class="dv">2</span>:</span> -<span id="cb505-5"><a href="#cb505-5" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="bu">sorted</span>(bar)</span> -<span id="cb505-6"><a href="#cb505-6" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span>:</span> -<span id="cb505-7"><a href="#cb505-7" aria-hidden="true" tabindex="-1"></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="cb505-8"><a href="#cb505-8" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> (</span> -<span id="cb505-9"><a href="#cb505-9" aria-hidden="true" tabindex="-1"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op"><</span> baz]) <span class="op">+</span> [baz] <span class="op">+</span></span> -<span id="cb505-10"><a href="#cb505-10" aria-hidden="true" tabindex="-1"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">></span> baz])</span> -<span id="cb505-11"><a href="#cb505-11" aria-hidden="true" tabindex="-1"></a> )</span></code></pre></div> +<div class="sourceCode" id="cb506"><pre +class="sourceCode py"><code class="sourceCode python"><span id="cb506-1"><a href="#cb506-1" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> foo(bar):</span> +<span id="cb506-2"><a href="#cb506-2" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="bu">len</span>(bar) <span class="op"><=</span> <span class="dv">1</span>:</span> +<span id="cb506-3"><a href="#cb506-3" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> bar[:<span class="dv">1</span>]</span> +<span id="cb506-4"><a href="#cb506-4" aria-hidden="true" tabindex="-1"></a> <span class="cf">elif</span> <span class="bu">len</span>(bar) <span class="op">==</span> <span class="dv">2</span>:</span> +<span id="cb506-5"><a href="#cb506-5" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="bu">sorted</span>(bar)</span> +<span id="cb506-6"><a href="#cb506-6" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span>:</span> +<span id="cb506-7"><a href="#cb506-7" aria-hidden="true" tabindex="-1"></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="cb506-8"><a href="#cb506-8" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> (</span> +<span id="cb506-9"><a href="#cb506-9" aria-hidden="true" tabindex="-1"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op"><</span> baz]) <span class="op">+</span> [baz] <span class="op">+</span></span> +<span id="cb506-10"><a href="#cb506-10" aria-hidden="true" tabindex="-1"></a> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">></span> baz])</span> +<span id="cb506-11"><a href="#cb506-11" aria-hidden="true" tabindex="-1"></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="cb506"><pre -class="sourceCode py"><code class="sourceCode python"><span id="cb506-1"><a href="#cb506-1" aria-hidden="true" tabindex="-1"></a><span class="op">>>></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="cb506-2"><a href="#cb506-2" aria-hidden="true" tabindex="-1"></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="cb507"><pre +class="sourceCode py"><code class="sourceCode python"><span id="cb507-1"><a href="#cb507-1" aria-hidden="true" tabindex="-1"></a><span class="op">>>></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="cb507-2"><a href="#cb507-2" aria-hidden="true" tabindex="-1"></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.7" id="code-span-renderer"><span class="header-section-number">2.3.1.7</span> Code Span Renderer</h4> @@ -9083,27 +9172,27 @@ corresponds to the inline code span.</p> 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="cb507"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb507-1"><a href="#cb507-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb507-2"><a href="#cb507-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> -<span id="cb507-3"><a href="#cb507-3" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb507-4"><a href="#cb507-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span> -<span id="cb507-5"><a href="#cb507-5" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb507-6"><a href="#cb507-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb507-7"><a href="#cb507-7" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span> -<span id="cb507-8"><a href="#cb507-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb507-9"><a href="#cb507-9" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb507-10"><a href="#cb507-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb507-11"><a href="#cb507-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb507-12"><a href="#cb507-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span> -<span id="cb507-13"><a href="#cb507-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb507-14"><a href="#cb507-14" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb507-15"><a href="#cb507-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb507-16"><a href="#cb507-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb507-17"><a href="#cb507-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb508"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb508-1"><a href="#cb508-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb508-1"><a href="#cb508-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb508-2"><a href="#cb508-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> lmfonts</span> +<span id="cb508-3"><a href="#cb508-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb508-4"><a href="#cb508-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span> +<span id="cb508-5"><a href="#cb508-5" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb508-6"><a href="#cb508-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb508-7"><a href="#cb508-7" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span> +<span id="cb508-8"><a href="#cb508-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb508-9"><a href="#cb508-9" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb508-10"><a href="#cb508-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb508-11"><a href="#cb508-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb508-12"><a href="#cb508-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionHybrid</span>{true}</span> +<span id="cb508-13"><a href="#cb508-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb508-14"><a href="#cb508-14" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb508-15"><a href="#cb508-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb508-16"><a href="#cb508-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb508-17"><a href="#cb508-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb509"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb509-1"><a href="#cb509-1" aria-hidden="true" tabindex="-1"></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> @@ -9116,30 +9205,30 @@ contain the following text:</p> 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="cb509"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb509-1"><a href="#cb509-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb509-2"><a href="#cb509-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span> -<span id="cb509-3"><a href="#cb509-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb509-4"><a href="#cb509-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb509-5"><a href="#cb509-5" aria-hidden="true" tabindex="-1"></a> codeSpan = {#1},</span> -<span id="cb509-6"><a href="#cb509-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb509-7"><a href="#cb509-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb509-8"><a href="#cb509-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb509-9"><a href="#cb509-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb509-10"><a href="#cb509-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb509-11"><a href="#cb509-11" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span> -<span id="cb509-12"><a href="#cb509-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb509-13"><a href="#cb509-13" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb509-14"><a href="#cb509-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb509-15"><a href="#cb509-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb509-16"><a href="#cb509-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[hybrid]</span> -<span id="cb509-17"><a href="#cb509-17" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb509-18"><a href="#cb509-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb509-19"><a href="#cb509-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb509-20"><a href="#cb509-20" aria-hidden="true" tabindex="-1"></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="cb510"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb510-1"><a href="#cb510-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb510-1"><a href="#cb510-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb510-2"><a href="#cb510-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span> +<span id="cb510-3"><a href="#cb510-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb510-4"><a href="#cb510-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb510-5"><a href="#cb510-5" aria-hidden="true" tabindex="-1"></a> codeSpan = {#1},</span> +<span id="cb510-6"><a href="#cb510-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb510-7"><a href="#cb510-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb510-8"><a href="#cb510-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb510-9"><a href="#cb510-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb510-10"><a href="#cb510-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb510-11"><a href="#cb510-11" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span> +<span id="cb510-12"><a href="#cb510-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb510-13"><a href="#cb510-13" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb510-14"><a href="#cb510-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb510-15"><a href="#cb510-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb510-16"><a href="#cb510-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[hybrid]</span> +<span id="cb510-17"><a href="#cb510-17" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb510-18"><a href="#cb510-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb510-19"><a href="#cb510-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb510-20"><a href="#cb510-20" aria-hidden="true" tabindex="-1"></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="cb511"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb511-1"><a href="#cb511-1" aria-hidden="true" tabindex="-1"></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> @@ -9152,26 +9241,26 @@ contain the following text:</p> 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="cb511"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb511-1"><a href="#cb511-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb511-2"><a href="#cb511-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span> -<span id="cb511-3"><a href="#cb511-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb511-4"><a href="#cb511-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb511-5"><a href="#cb511-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb511-6"><a href="#cb511-6" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span> -<span id="cb511-7"><a href="#cb511-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb511-8"><a href="#cb511-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb511-9"><a href="#cb511-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb511-10"><a href="#cb511-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb511-11"><a href="#cb511-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hybrid = yes]</span> -<span id="cb511-12"><a href="#cb511-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb511-13"><a href="#cb511-13" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> -<span id="cb511-14"><a href="#cb511-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb511-15"><a href="#cb511-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb511-16"><a href="#cb511-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb512"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb512-1"><a href="#cb512-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb512-1"><a href="#cb512-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb512-2"><a href="#cb512-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererCodeSpan</span>#1{#1}</span> +<span id="cb512-3"><a href="#cb512-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb512-4"><a href="#cb512-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb512-5"><a href="#cb512-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb512-6"><a href="#cb512-6" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span>`</span> +<span id="cb512-7"><a href="#cb512-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb512-8"><a href="#cb512-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb512-9"><a href="#cb512-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb512-10"><a href="#cb512-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb512-11"><a href="#cb512-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[hybrid = yes]</span> +<span id="cb512-12"><a href="#cb512-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb512-13"><a href="#cb512-13" aria-hidden="true" tabindex="-1"></a><span class="ss">$</span><span class="sc">\sqrt</span><span class="ss">{-1}$</span> *equals* <span class="ss">$i$</span></span> +<span id="cb512-14"><a href="#cb512-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb512-15"><a href="#cb512-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb512-16"><a href="#cb512-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb513"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb513-1"><a href="#cb513-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -9195,26 +9284,26 @@ of an inline code span apply. The macros receive no arguments.</p> 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="cb513"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb513-1"><a href="#cb513-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb513-2"><a href="#cb513-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[inlineCodeAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb513-3"><a href="#cb513-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb513-4"><a href="#cb513-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb513-5"><a href="#cb513-5" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextBegin = {(},</span> -<span id="cb513-6"><a href="#cb513-6" aria-hidden="true" tabindex="-1"></a> codeSpan = {#1},</span> -<span id="cb513-7"><a href="#cb513-7" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextEnd = {)},</span> -<span id="cb513-8"><a href="#cb513-8" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb513-9"><a href="#cb513-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb513-10"><a href="#cb513-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb513-11"><a href="#cb513-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb513-12"><a href="#cb513-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb513-13"><a href="#cb513-13" aria-hidden="true" tabindex="-1"></a>foo `bar`{key=value} baz</span> -<span id="cb513-14"><a href="#cb513-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb513-15"><a href="#cb513-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb513-16"><a href="#cb513-16" aria-hidden="true" tabindex="-1"></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="cb514"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb514-1"><a href="#cb514-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb514-1"><a href="#cb514-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb514-2"><a href="#cb514-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[inlineCodeAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb514-3"><a href="#cb514-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb514-4"><a href="#cb514-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb514-5"><a href="#cb514-5" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextBegin = {(},</span> +<span id="cb514-6"><a href="#cb514-6" aria-hidden="true" tabindex="-1"></a> codeSpan = {#1},</span> +<span id="cb514-7"><a href="#cb514-7" aria-hidden="true" tabindex="-1"></a> codeSpanAttributeContextEnd = {)},</span> +<span id="cb514-8"><a href="#cb514-8" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb514-9"><a href="#cb514-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb514-10"><a href="#cb514-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb514-11"><a href="#cb514-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb514-12"><a href="#cb514-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb514-13"><a href="#cb514-13" aria-hidden="true" tabindex="-1"></a>foo `bar`{key=value} baz</span> +<span id="cb514-14"><a href="#cb514-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb514-15"><a href="#cb514-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb514-16"><a href="#cb514-16" aria-hidden="true" tabindex="-1"></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="cb515"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb515-1"><a href="#cb515-1" aria-hidden="true" tabindex="-1"></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> @@ -9237,8 +9326,8 @@ 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><a href="#fn7" -class="footnote-ref" id="fnref7" role="doc-noteref"><sup>7</sup></a> +<strong><code>kpathsea</code></strong><a href="#fn3" +class="footnote-ref" id="fnref3" role="doc-noteref"><sup>3</sup></a> 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 @@ -9265,34 +9354,34 @@ starting point.</p> 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="cb515"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb515-1"><a href="#cb515-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb515-2"><a href="#cb515-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionContentBlocks</span>{true}</span> -<span id="cb515-3"><a href="#cb515-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb515-4"><a href="#cb515-4" aria-hidden="true" tabindex="-1"></a> This is {<span class="fu">\tt</span> #2}, #4.</span> -<span id="cb515-5"><a href="#cb515-5" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb515-6"><a href="#cb515-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb515-7"><a href="#cb515-7" aria-hidden="true" tabindex="-1"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span> -<span id="cb515-8"><a href="#cb515-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb515-9"><a href="#cb515-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span> -<span id="cb515-10"><a href="#cb515-10" aria-hidden="true" tabindex="-1"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span> -<span id="cb515-11"><a href="#cb515-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb515-12"><a href="#cb515-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb515-13"><a href="#cb515-13" aria-hidden="true" tabindex="-1"></a>/document.tex (the document that we are currently typesetting)</span> -<span id="cb515-14"><a href="#cb515-14" aria-hidden="true" tabindex="-1"></a>/markdown-languages.json (the mapping between filename extensions</span> -<span id="cb515-15"><a href="#cb515-15" aria-hidden="true" tabindex="-1"></a> and programming language names)</span> -<span id="cb515-16"><a href="#cb515-16" aria-hidden="true" tabindex="-1"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span> -<span id="cb515-17"><a href="#cb515-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb515-18"><a href="#cb515-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb516"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb516-1"><a href="#cb516-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb516-2"><a href="#cb516-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionContentBlocks</span>{true}</span> +<span id="cb516-3"><a href="#cb516-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb516-4"><a href="#cb516-4" aria-hidden="true" tabindex="-1"></a> This is {<span class="fu">\tt</span> #2}, #4.</span> +<span id="cb516-5"><a href="#cb516-5" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb516-6"><a href="#cb516-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb516-7"><a href="#cb516-7" aria-hidden="true" tabindex="-1"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span> +<span id="cb516-8"><a href="#cb516-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb516-9"><a href="#cb516-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span> +<span id="cb516-10"><a href="#cb516-10" aria-hidden="true" tabindex="-1"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span> +<span id="cb516-11"><a href="#cb516-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb516-12"><a href="#cb516-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb516-13"><a href="#cb516-13" aria-hidden="true" tabindex="-1"></a>/document.tex (the document that we are currently typesetting)</span> +<span id="cb516-14"><a href="#cb516-14" aria-hidden="true" tabindex="-1"></a>/markdown-languages.json (the mapping between filename extensions</span> +<span id="cb516-15"><a href="#cb516-15" aria-hidden="true" tabindex="-1"></a> and programming language names)</span> +<span id="cb516-16"><a href="#cb516-16" aria-hidden="true" tabindex="-1"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span> +<span id="cb516-17"><a href="#cb516-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb516-18"><a href="#cb516-18" aria-hidden="true" tabindex="-1"></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="cb516"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb516-1"><a href="#cb516-1" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb516-2"><a href="#cb516-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></span> -<span id="cb516-3"><a href="#cb516-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb517"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb517-1"><a href="#cb517-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode js"><code class="sourceCode javascript"><span id="cb517-1"><a href="#cb517-1" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb517-2"><a href="#cb517-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></span> +<span id="cb517-3"><a href="#cb517-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb518"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb518-1"><a href="#cb518-1" aria-hidden="true" tabindex="-1"></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> @@ -9308,34 +9397,34 @@ the logotype of TUGboat.</p> 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="cb518"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb518-1"><a href="#cb518-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb518-2"><a href="#cb518-2" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{markdown-languages.json}</span> -<span id="cb518-3"><a href="#cb518-3" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb518-4"><a href="#cb518-4" aria-hidden="true" tabindex="-1"></a> "json": "JavaScript Object Notation",</span> -<span id="cb518-5"><a href="#cb518-5" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb518-6"><a href="#cb518-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span> -<span id="cb518-7"><a href="#cb518-7" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> -<span id="cb518-8"><a href="#cb518-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb518-9"><a href="#cb518-9" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb518-10"><a href="#cb518-10" aria-hidden="true" tabindex="-1"></a> contentBlock = {This is <span class="fu">\texttt</span>{#2}, #4.},</span> -<span id="cb518-11"><a href="#cb518-11" aria-hidden="true" tabindex="-1"></a> contentBlockOnlineImage = {This is the image <span class="fu">\texttt</span>{#2}, #4.},</span> -<span id="cb518-12"><a href="#cb518-12" aria-hidden="true" tabindex="-1"></a> contentBlockCode = {<span class="co">%</span></span> -<span id="cb518-13"><a href="#cb518-13" aria-hidden="true" tabindex="-1"></a> This is the #2 (<span class="fu">\MakeUppercase</span>{#1}) document <span class="fu">\texttt</span>{#3}, #5.</span> -<span id="cb518-14"><a href="#cb518-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb518-15"><a href="#cb518-15" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb518-16"><a href="#cb518-16" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb518-17"><a href="#cb518-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb518-18"><a href="#cb518-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb518-19"><a href="#cb518-19" aria-hidden="true" tabindex="-1"></a>/document.tex (the document that we are currently typesetting)</span> -<span id="cb518-20"><a href="#cb518-20" aria-hidden="true" tabindex="-1"></a>/markdown-languages.json (the mapping between filename extensions</span> -<span id="cb518-21"><a href="#cb518-21" aria-hidden="true" tabindex="-1"></a> and programming language names)</span> -<span id="cb518-22"><a href="#cb518-22" aria-hidden="true" tabindex="-1"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span> -<span id="cb518-23"><a href="#cb518-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb518-24"><a href="#cb518-24" aria-hidden="true" tabindex="-1"></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="cb519"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb519-1"><a href="#cb519-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb519-1"><a href="#cb519-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb519-2"><a href="#cb519-2" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">filecontents</span>}[overwrite,nosearch,noheader]{markdown-languages.json}</span> +<span id="cb519-3"><a href="#cb519-3" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb519-4"><a href="#cb519-4" aria-hidden="true" tabindex="-1"></a> "json": "JavaScript Object Notation",</span> +<span id="cb519-5"><a href="#cb519-5" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb519-6"><a href="#cb519-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">filecontents</span>}</span> +<span id="cb519-7"><a href="#cb519-7" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> +<span id="cb519-8"><a href="#cb519-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb519-9"><a href="#cb519-9" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb519-10"><a href="#cb519-10" aria-hidden="true" tabindex="-1"></a> contentBlock = {This is <span class="fu">\texttt</span>{#2}, #4.},</span> +<span id="cb519-11"><a href="#cb519-11" aria-hidden="true" tabindex="-1"></a> contentBlockOnlineImage = {This is the image <span class="fu">\texttt</span>{#2}, #4.},</span> +<span id="cb519-12"><a href="#cb519-12" aria-hidden="true" tabindex="-1"></a> contentBlockCode = {<span class="co">%</span></span> +<span id="cb519-13"><a href="#cb519-13" aria-hidden="true" tabindex="-1"></a> This is the #2 (<span class="fu">\MakeUppercase</span>{#1}) document <span class="fu">\texttt</span>{#3}, #5.</span> +<span id="cb519-14"><a href="#cb519-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb519-15"><a href="#cb519-15" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb519-16"><a href="#cb519-16" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb519-17"><a href="#cb519-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb519-18"><a href="#cb519-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb519-19"><a href="#cb519-19" aria-hidden="true" tabindex="-1"></a>/document.tex (the document that we are currently typesetting)</span> +<span id="cb519-20"><a href="#cb519-20" aria-hidden="true" tabindex="-1"></a>/markdown-languages.json (the mapping between filename extensions</span> +<span id="cb519-21"><a href="#cb519-21" aria-hidden="true" tabindex="-1"></a> and programming language names)</span> +<span id="cb519-22"><a href="#cb519-22" aria-hidden="true" tabindex="-1"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span> +<span id="cb519-23"><a href="#cb519-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb519-24"><a href="#cb519-24" aria-hidden="true" tabindex="-1"></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="cb520"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb520-1"><a href="#cb520-1" aria-hidden="true" tabindex="-1"></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> @@ -9351,35 +9440,35 @@ the logotype of TUGboat.</p> 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="cb520"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb520-1"><a href="#cb520-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb520-2"><a href="#cb520-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[contentBlocks = yes]</span> -<span id="cb520-3"><a href="#cb520-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb520-4"><a href="#cb520-4" aria-hidden="true" tabindex="-1"></a> This is {<span class="fu">\tt</span> #2}, #4.</span> -<span id="cb520-5"><a href="#cb520-5" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb520-6"><a href="#cb520-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb520-7"><a href="#cb520-7" aria-hidden="true" tabindex="-1"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span> -<span id="cb520-8"><a href="#cb520-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb520-9"><a href="#cb520-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span> -<span id="cb520-10"><a href="#cb520-10" aria-hidden="true" tabindex="-1"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span> -<span id="cb520-11"><a href="#cb520-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb520-12"><a href="#cb520-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb520-13"><a href="#cb520-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb520-14"><a href="#cb520-14" aria-hidden="true" tabindex="-1"></a>/document.tex (the document that we are currently typesetting)</span> -<span id="cb520-15"><a href="#cb520-15" aria-hidden="true" tabindex="-1"></a>/markdown-languages.json (the mapping between filename extensions</span> -<span id="cb520-16"><a href="#cb520-16" aria-hidden="true" tabindex="-1"></a> and programming language names)</span> -<span id="cb520-17"><a href="#cb520-17" aria-hidden="true" tabindex="-1"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span> -<span id="cb520-18"><a href="#cb520-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb520-19"><a href="#cb520-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<div class="sourceCode" id="cb521"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb521-1"><a href="#cb521-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb521-2"><a href="#cb521-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[contentBlocks = yes]</span> +<span id="cb521-3"><a href="#cb521-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlock</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb521-4"><a href="#cb521-4" aria-hidden="true" tabindex="-1"></a> This is {<span class="fu">\tt</span> #2}, #4.</span> +<span id="cb521-5"><a href="#cb521-5" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb521-6"><a href="#cb521-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockOnlineImage</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb521-7"><a href="#cb521-7" aria-hidden="true" tabindex="-1"></a> This is the image {<span class="fu">\tt</span> #2}, #4.</span> +<span id="cb521-8"><a href="#cb521-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb521-9"><a href="#cb521-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererContentBlockCode</span>#1#2#3#4#5{<span class="co">%</span></span> +<span id="cb521-10"><a href="#cb521-10" aria-hidden="true" tabindex="-1"></a> This is the #2 (<span class="fu">\uppercase</span>{#1}) document {<span class="fu">\tt</span> #3}, #5.</span> +<span id="cb521-11"><a href="#cb521-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb521-12"><a href="#cb521-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb521-13"><a href="#cb521-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb521-14"><a href="#cb521-14" aria-hidden="true" tabindex="-1"></a>/document.tex (the document that we are currently typesetting)</span> +<span id="cb521-15"><a href="#cb521-15" aria-hidden="true" tabindex="-1"></a>/markdown-languages.json (the mapping between filename extensions</span> +<span id="cb521-16"><a href="#cb521-16" aria-hidden="true" tabindex="-1"></a> and programming language names)</span> +<span id="cb521-17"><a href="#cb521-17" aria-hidden="true" tabindex="-1"></a>https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</span> +<span id="cb521-18"><a href="#cb521-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb521-19"><a href="#cb521-19" aria-hidden="true" tabindex="-1"></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="cb521"><pre -class="sourceCode js"><code class="sourceCode javascript"><span id="cb521-1"><a href="#cb521-1" aria-hidden="true" tabindex="-1"></a>{</span> -<span id="cb521-2"><a href="#cb521-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></span> -<span id="cb521-3"><a href="#cb521-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb522"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb522-1"><a href="#cb522-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode js"><code class="sourceCode javascript"><span id="cb522-1"><a href="#cb522-1" aria-hidden="true" tabindex="-1"></a>{</span> +<span id="cb522-2"><a href="#cb522-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></span> +<span id="cb522-3"><a href="#cb522-3" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb523"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb523-1"><a href="#cb523-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -9428,88 +9517,88 @@ receives no arguments.</p> 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="cb523"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb523-1"><a href="#cb523-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb523-2"><a href="#cb523-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionDefinitionLists</span>{true}</span> -<span id="cb523-3"><a href="#cb523-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span> -<span id="cb523-4"><a href="#cb523-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-5"><a href="#cb523-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb523-6"><a href="#cb523-6" aria-hidden="true" tabindex="-1"></a> :<span class="co">%</span></span> -<span id="cb523-7"><a href="#cb523-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb523-8"><a href="#cb523-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb523-9"><a href="#cb523-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{<span class="co">%</span></span> -<span id="cb523-10"><a href="#cb523-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb523-11"><a href="#cb523-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\parindent</span>=0pt</span> -<span id="cb523-12"><a href="#cb523-12" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb523-13"><a href="#cb523-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> -<span id="cb523-14"><a href="#cb523-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span> -<span id="cb523-15"><a href="#cb523-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> -<span id="cb523-16"><a href="#cb523-16" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb523-17"><a href="#cb523-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> -<span id="cb523-18"><a href="#cb523-18" aria-hidden="true" tabindex="-1"></a> , and</span> -<span id="cb523-19"><a href="#cb523-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span> -<span id="cb523-20"><a href="#cb523-20" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb523-21"><a href="#cb523-21" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb523-22"><a href="#cb523-22" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb523-23"><a href="#cb523-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span> -<span id="cb523-24"><a href="#cb523-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\par</span>--<span class="fu">\kern</span> 0.5em}</span> -<span id="cb523-25"><a href="#cb523-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEndTight</span>{<span class="fu">\endgroup</span>}</span> -<span id="cb523-26"><a href="#cb523-26" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-27"><a href="#cb523-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb523-28"><a href="#cb523-28" aria-hidden="true" tabindex="-1"></a>This is a tight definition list</span> -<span id="cb523-29"><a href="#cb523-29" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-30"><a href="#cb523-30" aria-hidden="true" tabindex="-1"></a>Coffee</span> -<span id="cb523-31"><a href="#cb523-31" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> -<span id="cb523-32"><a href="#cb523-32" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> -<span id="cb523-33"><a href="#cb523-33" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> -<span id="cb523-34"><a href="#cb523-34" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-35"><a href="#cb523-35" aria-hidden="true" tabindex="-1"></a>Milk</span> -<span id="cb523-36"><a href="#cb523-36" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> -<span id="cb523-37"><a href="#cb523-37" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> -<span id="cb523-38"><a href="#cb523-38" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> -<span id="cb523-39"><a href="#cb523-39" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb523-40"><a href="#cb523-40" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-41"><a href="#cb523-41" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb523-42"><a href="#cb523-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb523-43"><a href="#cb523-43" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb523-44"><a href="#cb523-44" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span> -<span id="cb523-45"><a href="#cb523-45" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> -<span id="cb523-46"><a href="#cb523-46" aria-hidden="true" tabindex="-1"></a> . #1 is a</span> -<span id="cb523-47"><a href="#cb523-47" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> -<span id="cb523-48"><a href="#cb523-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> -<span id="cb523-49"><a href="#cb523-49" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb523-50"><a href="#cb523-50" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span> -<span id="cb523-51"><a href="#cb523-51" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb523-52"><a href="#cb523-52" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb523-53"><a href="#cb523-53" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb523-54"><a href="#cb523-54" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span> -<span id="cb523-55"><a href="#cb523-55" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span> -<span id="cb523-56"><a href="#cb523-56" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span> -<span id="cb523-57"><a href="#cb523-57" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-58"><a href="#cb523-58" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb523-59"><a href="#cb523-59" aria-hidden="true" tabindex="-1"></a>This is a loose definition list</span> -<span id="cb523-60"><a href="#cb523-60" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-61"><a href="#cb523-61" aria-hidden="true" tabindex="-1"></a>Coffee</span> -<span id="cb523-62"><a href="#cb523-62" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-63"><a href="#cb523-63" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> -<span id="cb523-64"><a href="#cb523-64" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-65"><a href="#cb523-65" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> -<span id="cb523-66"><a href="#cb523-66" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-67"><a href="#cb523-67" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> -<span id="cb523-68"><a href="#cb523-68" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-69"><a href="#cb523-69" aria-hidden="true" tabindex="-1"></a>Milk</span> -<span id="cb523-70"><a href="#cb523-70" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-71"><a href="#cb523-71" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> -<span id="cb523-72"><a href="#cb523-72" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-73"><a href="#cb523-73" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> -<span id="cb523-74"><a href="#cb523-74" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-75"><a href="#cb523-75" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> -<span id="cb523-76"><a href="#cb523-76" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb523-77"><a href="#cb523-77" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb523-78"><a href="#cb523-78" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb524"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb524-1"><a href="#cb524-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb524-1"><a href="#cb524-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb524-2"><a href="#cb524-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionDefinitionLists</span>{true}</span> +<span id="cb524-3"><a href="#cb524-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span> +<span id="cb524-4"><a href="#cb524-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-5"><a href="#cb524-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb524-6"><a href="#cb524-6" aria-hidden="true" tabindex="-1"></a> :<span class="co">%</span></span> +<span id="cb524-7"><a href="#cb524-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb524-8"><a href="#cb524-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb524-9"><a href="#cb524-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{<span class="co">%</span></span> +<span id="cb524-10"><a href="#cb524-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb524-11"><a href="#cb524-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\parindent</span>=0pt</span> +<span id="cb524-12"><a href="#cb524-12" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb524-13"><a href="#cb524-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> +<span id="cb524-14"><a href="#cb524-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span> +<span id="cb524-15"><a href="#cb524-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> +<span id="cb524-16"><a href="#cb524-16" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb524-17"><a href="#cb524-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> +<span id="cb524-18"><a href="#cb524-18" aria-hidden="true" tabindex="-1"></a> , and</span> +<span id="cb524-19"><a href="#cb524-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span> +<span id="cb524-20"><a href="#cb524-20" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb524-21"><a href="#cb524-21" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb524-22"><a href="#cb524-22" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb524-23"><a href="#cb524-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span> +<span id="cb524-24"><a href="#cb524-24" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\par</span>--<span class="fu">\kern</span> 0.5em}</span> +<span id="cb524-25"><a href="#cb524-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEndTight</span>{<span class="fu">\endgroup</span>}</span> +<span id="cb524-26"><a href="#cb524-26" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-27"><a href="#cb524-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb524-28"><a href="#cb524-28" aria-hidden="true" tabindex="-1"></a>This is a tight definition list</span> +<span id="cb524-29"><a href="#cb524-29" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-30"><a href="#cb524-30" aria-hidden="true" tabindex="-1"></a>Coffee</span> +<span id="cb524-31"><a href="#cb524-31" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> +<span id="cb524-32"><a href="#cb524-32" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> +<span id="cb524-33"><a href="#cb524-33" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> +<span id="cb524-34"><a href="#cb524-34" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-35"><a href="#cb524-35" aria-hidden="true" tabindex="-1"></a>Milk</span> +<span id="cb524-36"><a href="#cb524-36" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> +<span id="cb524-37"><a href="#cb524-37" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> +<span id="cb524-38"><a href="#cb524-38" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> +<span id="cb524-39"><a href="#cb524-39" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb524-40"><a href="#cb524-40" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-41"><a href="#cb524-41" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb524-42"><a href="#cb524-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb524-43"><a href="#cb524-43" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb524-44"><a href="#cb524-44" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span> +<span id="cb524-45"><a href="#cb524-45" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> +<span id="cb524-46"><a href="#cb524-46" aria-hidden="true" tabindex="-1"></a> . #1 is a</span> +<span id="cb524-47"><a href="#cb524-47" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> +<span id="cb524-48"><a href="#cb524-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> +<span id="cb524-49"><a href="#cb524-49" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb524-50"><a href="#cb524-50" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span> +<span id="cb524-51"><a href="#cb524-51" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb524-52"><a href="#cb524-52" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb524-53"><a href="#cb524-53" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb524-54"><a href="#cb524-54" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span> +<span id="cb524-55"><a href="#cb524-55" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span> +<span id="cb524-56"><a href="#cb524-56" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span> +<span id="cb524-57"><a href="#cb524-57" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-58"><a href="#cb524-58" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb524-59"><a href="#cb524-59" aria-hidden="true" tabindex="-1"></a>This is a loose definition list</span> +<span id="cb524-60"><a href="#cb524-60" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-61"><a href="#cb524-61" aria-hidden="true" tabindex="-1"></a>Coffee</span> +<span id="cb524-62"><a href="#cb524-62" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-63"><a href="#cb524-63" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> +<span id="cb524-64"><a href="#cb524-64" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-65"><a href="#cb524-65" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> +<span id="cb524-66"><a href="#cb524-66" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-67"><a href="#cb524-67" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> +<span id="cb524-68"><a href="#cb524-68" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-69"><a href="#cb524-69" aria-hidden="true" tabindex="-1"></a>Milk</span> +<span id="cb524-70"><a href="#cb524-70" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-71"><a href="#cb524-71" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> +<span id="cb524-72"><a href="#cb524-72" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-73"><a href="#cb524-73" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> +<span id="cb524-74"><a href="#cb524-74" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-75"><a href="#cb524-75" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> +<span id="cb524-76"><a href="#cb524-76" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb524-77"><a href="#cb524-77" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb524-78"><a href="#cb524-78" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb525"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb525-1"><a href="#cb525-1" aria-hidden="true" tabindex="-1"></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> @@ -9535,90 +9624,90 @@ nutrient-rich, and produced on an industrial scale.</p> 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="cb525"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb525-1"><a href="#cb525-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb525-2"><a href="#cb525-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[definitionLists, tightLists]{<span class="ex">markdown</span>}</span> -<span id="cb525-3"><a href="#cb525-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb525-4"><a href="#cb525-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-5"><a href="#cb525-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb525-6"><a href="#cb525-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb525-7"><a href="#cb525-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> -<span id="cb525-8"><a href="#cb525-8" aria-hidden="true" tabindex="-1"></a> :<span class="co">%</span></span> -<span id="cb525-9"><a href="#cb525-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb525-10"><a href="#cb525-10" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb525-11"><a href="#cb525-11" aria-hidden="true" tabindex="-1"></a> dlBeginTight = {<span class="kw">\begin</span>{<span class="ex">description</span>}},</span> -<span id="cb525-12"><a href="#cb525-12" aria-hidden="true" tabindex="-1"></a> dlItem = {<span class="co">%</span></span> -<span id="cb525-13"><a href="#cb525-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\item</span>[#1]</span> -<span id="cb525-14"><a href="#cb525-14" aria-hidden="true" tabindex="-1"></a> <span class="kw">\begin</span>{<span class="ex">itemize</span>}</span> -<span id="cb525-15"><a href="#cb525-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> -<span id="cb525-16"><a href="#cb525-16" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb525-17"><a href="#cb525-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> -<span id="cb525-18"><a href="#cb525-18" aria-hidden="true" tabindex="-1"></a> , and</span> -<span id="cb525-19"><a href="#cb525-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span> -<span id="cb525-20"><a href="#cb525-20" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb525-21"><a href="#cb525-21" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb525-22"><a href="#cb525-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb525-23"><a href="#cb525-23" aria-hidden="true" tabindex="-1"></a> dlItemEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span> -<span id="cb525-24"><a href="#cb525-24" aria-hidden="true" tabindex="-1"></a> dlDefinitionBegin = <span class="fu">\item</span>,</span> -<span id="cb525-25"><a href="#cb525-25" aria-hidden="true" tabindex="-1"></a> dlEndTight = {<span class="kw">\end</span>{<span class="ex">description</span>}},</span> -<span id="cb525-26"><a href="#cb525-26" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb525-27"><a href="#cb525-27" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb525-28"><a href="#cb525-28" aria-hidden="true" tabindex="-1"></a>This is a tight definition list</span> -<span id="cb525-29"><a href="#cb525-29" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-30"><a href="#cb525-30" aria-hidden="true" tabindex="-1"></a>Coffee</span> -<span id="cb525-31"><a href="#cb525-31" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> -<span id="cb525-32"><a href="#cb525-32" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> -<span id="cb525-33"><a href="#cb525-33" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> -<span id="cb525-34"><a href="#cb525-34" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-35"><a href="#cb525-35" aria-hidden="true" tabindex="-1"></a>Milk</span> -<span id="cb525-36"><a href="#cb525-36" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> -<span id="cb525-37"><a href="#cb525-37" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> -<span id="cb525-38"><a href="#cb525-38" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> -<span id="cb525-39"><a href="#cb525-39" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb525-40"><a href="#cb525-40" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-41"><a href="#cb525-41" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb525-42"><a href="#cb525-42" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb525-43"><a href="#cb525-43" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> -<span id="cb525-44"><a href="#cb525-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb525-45"><a href="#cb525-45" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb525-46"><a href="#cb525-46" aria-hidden="true" tabindex="-1"></a> dlBegin = {},</span> -<span id="cb525-47"><a href="#cb525-47" aria-hidden="true" tabindex="-1"></a> dlItem = {<span class="co">%</span></span> -<span id="cb525-48"><a href="#cb525-48" aria-hidden="true" tabindex="-1"></a> . #1 is a</span> -<span id="cb525-49"><a href="#cb525-49" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> -<span id="cb525-50"><a href="#cb525-50" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> -<span id="cb525-51"><a href="#cb525-51" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb525-52"><a href="#cb525-52" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span> -<span id="cb525-53"><a href="#cb525-53" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb525-54"><a href="#cb525-54" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb525-55"><a href="#cb525-55" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb525-56"><a href="#cb525-56" aria-hidden="true" tabindex="-1"></a> dlItemEnd = {},</span> -<span id="cb525-57"><a href="#cb525-57" aria-hidden="true" tabindex="-1"></a> dlDefinitionEnd = {},</span> -<span id="cb525-58"><a href="#cb525-58" aria-hidden="true" tabindex="-1"></a> dlEnd = {.},</span> -<span id="cb525-59"><a href="#cb525-59" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb525-60"><a href="#cb525-60" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb525-61"><a href="#cb525-61" aria-hidden="true" tabindex="-1"></a>This is a loose definition list</span> -<span id="cb525-62"><a href="#cb525-62" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-63"><a href="#cb525-63" aria-hidden="true" tabindex="-1"></a>Coffee</span> -<span id="cb525-64"><a href="#cb525-64" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-65"><a href="#cb525-65" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> -<span id="cb525-66"><a href="#cb525-66" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-67"><a href="#cb525-67" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> -<span id="cb525-68"><a href="#cb525-68" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-69"><a href="#cb525-69" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> -<span id="cb525-70"><a href="#cb525-70" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-71"><a href="#cb525-71" aria-hidden="true" tabindex="-1"></a>Milk</span> -<span id="cb525-72"><a href="#cb525-72" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-73"><a href="#cb525-73" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> -<span id="cb525-74"><a href="#cb525-74" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-75"><a href="#cb525-75" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> -<span id="cb525-76"><a href="#cb525-76" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-77"><a href="#cb525-77" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> -<span id="cb525-78"><a href="#cb525-78" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb525-79"><a href="#cb525-79" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb525-80"><a href="#cb525-80" aria-hidden="true" tabindex="-1"></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="cb526"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb526-1"><a href="#cb526-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb526-1"><a href="#cb526-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb526-2"><a href="#cb526-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[definitionLists, tightLists]{<span class="ex">markdown</span>}</span> +<span id="cb526-3"><a href="#cb526-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb526-4"><a href="#cb526-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-5"><a href="#cb526-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb526-6"><a href="#cb526-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb526-7"><a href="#cb526-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> +<span id="cb526-8"><a href="#cb526-8" aria-hidden="true" tabindex="-1"></a> :<span class="co">%</span></span> +<span id="cb526-9"><a href="#cb526-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb526-10"><a href="#cb526-10" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb526-11"><a href="#cb526-11" aria-hidden="true" tabindex="-1"></a> dlBeginTight = {<span class="kw">\begin</span>{<span class="ex">description</span>}},</span> +<span id="cb526-12"><a href="#cb526-12" aria-hidden="true" tabindex="-1"></a> dlItem = {<span class="co">%</span></span> +<span id="cb526-13"><a href="#cb526-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\item</span>[#1]</span> +<span id="cb526-14"><a href="#cb526-14" aria-hidden="true" tabindex="-1"></a> <span class="kw">\begin</span>{<span class="ex">itemize</span>}</span> +<span id="cb526-15"><a href="#cb526-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> +<span id="cb526-16"><a href="#cb526-16" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb526-17"><a href="#cb526-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> +<span id="cb526-18"><a href="#cb526-18" aria-hidden="true" tabindex="-1"></a> , and</span> +<span id="cb526-19"><a href="#cb526-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span> +<span id="cb526-20"><a href="#cb526-20" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb526-21"><a href="#cb526-21" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb526-22"><a href="#cb526-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb526-23"><a href="#cb526-23" aria-hidden="true" tabindex="-1"></a> dlItemEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</span> +<span id="cb526-24"><a href="#cb526-24" aria-hidden="true" tabindex="-1"></a> dlDefinitionBegin = <span class="fu">\item</span>,</span> +<span id="cb526-25"><a href="#cb526-25" aria-hidden="true" tabindex="-1"></a> dlEndTight = {<span class="kw">\end</span>{<span class="ex">description</span>}},</span> +<span id="cb526-26"><a href="#cb526-26" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb526-27"><a href="#cb526-27" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb526-28"><a href="#cb526-28" aria-hidden="true" tabindex="-1"></a>This is a tight definition list</span> +<span id="cb526-29"><a href="#cb526-29" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-30"><a href="#cb526-30" aria-hidden="true" tabindex="-1"></a>Coffee</span> +<span id="cb526-31"><a href="#cb526-31" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> +<span id="cb526-32"><a href="#cb526-32" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> +<span id="cb526-33"><a href="#cb526-33" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> +<span id="cb526-34"><a href="#cb526-34" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-35"><a href="#cb526-35" aria-hidden="true" tabindex="-1"></a>Milk</span> +<span id="cb526-36"><a href="#cb526-36" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> +<span id="cb526-37"><a href="#cb526-37" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> +<span id="cb526-38"><a href="#cb526-38" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> +<span id="cb526-39"><a href="#cb526-39" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb526-40"><a href="#cb526-40" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-41"><a href="#cb526-41" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb526-42"><a href="#cb526-42" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb526-43"><a href="#cb526-43" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> +<span id="cb526-44"><a href="#cb526-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb526-45"><a href="#cb526-45" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb526-46"><a href="#cb526-46" aria-hidden="true" tabindex="-1"></a> dlBegin = {},</span> +<span id="cb526-47"><a href="#cb526-47" aria-hidden="true" tabindex="-1"></a> dlItem = {<span class="co">%</span></span> +<span id="cb526-48"><a href="#cb526-48" aria-hidden="true" tabindex="-1"></a> . #1 is a</span> +<span id="cb526-49"><a href="#cb526-49" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> +<span id="cb526-50"><a href="#cb526-50" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> +<span id="cb526-51"><a href="#cb526-51" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb526-52"><a href="#cb526-52" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span> +<span id="cb526-53"><a href="#cb526-53" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb526-54"><a href="#cb526-54" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb526-55"><a href="#cb526-55" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb526-56"><a href="#cb526-56" aria-hidden="true" tabindex="-1"></a> dlItemEnd = {},</span> +<span id="cb526-57"><a href="#cb526-57" aria-hidden="true" tabindex="-1"></a> dlDefinitionEnd = {},</span> +<span id="cb526-58"><a href="#cb526-58" aria-hidden="true" tabindex="-1"></a> dlEnd = {.},</span> +<span id="cb526-59"><a href="#cb526-59" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb526-60"><a href="#cb526-60" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb526-61"><a href="#cb526-61" aria-hidden="true" tabindex="-1"></a>This is a loose definition list</span> +<span id="cb526-62"><a href="#cb526-62" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-63"><a href="#cb526-63" aria-hidden="true" tabindex="-1"></a>Coffee</span> +<span id="cb526-64"><a href="#cb526-64" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-65"><a href="#cb526-65" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> +<span id="cb526-66"><a href="#cb526-66" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-67"><a href="#cb526-67" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> +<span id="cb526-68"><a href="#cb526-68" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-69"><a href="#cb526-69" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> +<span id="cb526-70"><a href="#cb526-70" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-71"><a href="#cb526-71" aria-hidden="true" tabindex="-1"></a>Milk</span> +<span id="cb526-72"><a href="#cb526-72" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-73"><a href="#cb526-73" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> +<span id="cb526-74"><a href="#cb526-74" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-75"><a href="#cb526-75" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> +<span id="cb526-76"><a href="#cb526-76" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-77"><a href="#cb526-77" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> +<span id="cb526-78"><a href="#cb526-78" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb526-79"><a href="#cb526-79" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb526-80"><a href="#cb526-80" aria-hidden="true" tabindex="-1"></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="cb527"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb527-1"><a href="#cb527-1" aria-hidden="true" tabindex="-1"></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> @@ -9644,90 +9733,90 @@ nutrient-rich, and produced on an industrial scale.</p> 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="cb527"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb527-1"><a href="#cb527-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb527-2"><a href="#cb527-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> -<span id="cb527-3"><a href="#cb527-3" aria-hidden="true" tabindex="-1"></a> [</span> -<span id="cb527-4"><a href="#cb527-4" aria-hidden="true" tabindex="-1"></a> definitionLists = yes,</span> -<span id="cb527-5"><a href="#cb527-5" aria-hidden="true" tabindex="-1"></a> tightLists = yes,</span> -<span id="cb527-6"><a href="#cb527-6" aria-hidden="true" tabindex="-1"></a> ]</span> -<span id="cb527-7"><a href="#cb527-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb527-8"><a href="#cb527-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-9"><a href="#cb527-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb527-10"><a href="#cb527-10" aria-hidden="true" tabindex="-1"></a> :<span class="co">%</span></span> -<span id="cb527-11"><a href="#cb527-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb527-12"><a href="#cb527-12" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb527-13"><a href="#cb527-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{}</span> -<span id="cb527-14"><a href="#cb527-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> -<span id="cb527-15"><a href="#cb527-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span> -<span id="cb527-16"><a href="#cb527-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\startitemize</span></span> -<span id="cb527-17"><a href="#cb527-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> -<span id="cb527-18"><a href="#cb527-18" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb527-19"><a href="#cb527-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> -<span id="cb527-20"><a href="#cb527-20" aria-hidden="true" tabindex="-1"></a> , and</span> -<span id="cb527-21"><a href="#cb527-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span> -<span id="cb527-22"><a href="#cb527-22" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb527-23"><a href="#cb527-23" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb527-24"><a href="#cb527-24" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb527-25"><a href="#cb527-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{<span class="fu">\stopitemize</span>}</span> -<span id="cb527-26"><a href="#cb527-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\item</span>}</span> -<span id="cb527-27"><a href="#cb527-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEndTight</span>{}</span> -<span id="cb527-28"><a href="#cb527-28" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-29"><a href="#cb527-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb527-30"><a href="#cb527-30" aria-hidden="true" tabindex="-1"></a>This is a tight definition list</span> -<span id="cb527-31"><a href="#cb527-31" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-32"><a href="#cb527-32" aria-hidden="true" tabindex="-1"></a>Coffee</span> -<span id="cb527-33"><a href="#cb527-33" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> -<span id="cb527-34"><a href="#cb527-34" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> -<span id="cb527-35"><a href="#cb527-35" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> -<span id="cb527-36"><a href="#cb527-36" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-37"><a href="#cb527-37" aria-hidden="true" tabindex="-1"></a>Milk</span> -<span id="cb527-38"><a href="#cb527-38" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> -<span id="cb527-39"><a href="#cb527-39" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> -<span id="cb527-40"><a href="#cb527-40" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> -<span id="cb527-41"><a href="#cb527-41" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb527-42"><a href="#cb527-42" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-43"><a href="#cb527-43" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb527-44"><a href="#cb527-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb527-45"><a href="#cb527-45" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb527-46"><a href="#cb527-46" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span> -<span id="cb527-47"><a href="#cb527-47" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> -<span id="cb527-48"><a href="#cb527-48" aria-hidden="true" tabindex="-1"></a> . #1 is a</span> -<span id="cb527-49"><a href="#cb527-49" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> -<span id="cb527-50"><a href="#cb527-50" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> -<span id="cb527-51"><a href="#cb527-51" aria-hidden="true" tabindex="-1"></a> ,</span> -<span id="cb527-52"><a href="#cb527-52" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span> -<span id="cb527-53"><a href="#cb527-53" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb527-54"><a href="#cb527-54" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb527-55"><a href="#cb527-55" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb527-56"><a href="#cb527-56" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span> -<span id="cb527-57"><a href="#cb527-57" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span> -<span id="cb527-58"><a href="#cb527-58" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span> -<span id="cb527-59"><a href="#cb527-59" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-60"><a href="#cb527-60" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb527-61"><a href="#cb527-61" aria-hidden="true" tabindex="-1"></a>This is a loose definition list</span> -<span id="cb527-62"><a href="#cb527-62" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-63"><a href="#cb527-63" aria-hidden="true" tabindex="-1"></a>Coffee</span> -<span id="cb527-64"><a href="#cb527-64" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-65"><a href="#cb527-65" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> -<span id="cb527-66"><a href="#cb527-66" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-67"><a href="#cb527-67" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> -<span id="cb527-68"><a href="#cb527-68" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-69"><a href="#cb527-69" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> -<span id="cb527-70"><a href="#cb527-70" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-71"><a href="#cb527-71" aria-hidden="true" tabindex="-1"></a>Milk</span> -<span id="cb527-72"><a href="#cb527-72" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-73"><a href="#cb527-73" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> -<span id="cb527-74"><a href="#cb527-74" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-75"><a href="#cb527-75" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> -<span id="cb527-76"><a href="#cb527-76" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-77"><a href="#cb527-77" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> -<span id="cb527-78"><a href="#cb527-78" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb527-79"><a href="#cb527-79" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb527-80"><a href="#cb527-80" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb528"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb528-1"><a href="#cb528-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb528-1"><a href="#cb528-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb528-2"><a href="#cb528-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> +<span id="cb528-3"><a href="#cb528-3" aria-hidden="true" tabindex="-1"></a> [</span> +<span id="cb528-4"><a href="#cb528-4" aria-hidden="true" tabindex="-1"></a> definitionLists = yes,</span> +<span id="cb528-5"><a href="#cb528-5" aria-hidden="true" tabindex="-1"></a> tightLists = yes,</span> +<span id="cb528-6"><a href="#cb528-6" aria-hidden="true" tabindex="-1"></a> ]</span> +<span id="cb528-7"><a href="#cb528-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb528-8"><a href="#cb528-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-9"><a href="#cb528-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb528-10"><a href="#cb528-10" aria-hidden="true" tabindex="-1"></a> :<span class="co">%</span></span> +<span id="cb528-11"><a href="#cb528-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb528-12"><a href="#cb528-12" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb528-13"><a href="#cb528-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBeginTight</span>{}</span> +<span id="cb528-14"><a href="#cb528-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> +<span id="cb528-15"><a href="#cb528-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span>{<span class="fu">\bf</span>#1}<span class="co">%</span></span> +<span id="cb528-16"><a href="#cb528-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\startitemize</span></span> +<span id="cb528-17"><a href="#cb528-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> +<span id="cb528-18"><a href="#cb528-18" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb528-19"><a href="#cb528-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{<span class="co">%</span></span> +<span id="cb528-20"><a href="#cb528-20" aria-hidden="true" tabindex="-1"></a> , and</span> +<span id="cb528-21"><a href="#cb528-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionEnd</span>{.}<span class="co">%</span></span> +<span id="cb528-22"><a href="#cb528-22" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb528-23"><a href="#cb528-23" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb528-24"><a href="#cb528-24" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb528-25"><a href="#cb528-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{<span class="fu">\stopitemize</span>}</span> +<span id="cb528-26"><a href="#cb528-26" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="fu">\item</span>}</span> +<span id="cb528-27"><a href="#cb528-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEndTight</span>{}</span> +<span id="cb528-28"><a href="#cb528-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-29"><a href="#cb528-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb528-30"><a href="#cb528-30" aria-hidden="true" tabindex="-1"></a>This is a tight definition list</span> +<span id="cb528-31"><a href="#cb528-31" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-32"><a href="#cb528-32" aria-hidden="true" tabindex="-1"></a>Coffee</span> +<span id="cb528-33"><a href="#cb528-33" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> +<span id="cb528-34"><a href="#cb528-34" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> +<span id="cb528-35"><a href="#cb528-35" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> +<span id="cb528-36"><a href="#cb528-36" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-37"><a href="#cb528-37" aria-hidden="true" tabindex="-1"></a>Milk</span> +<span id="cb528-38"><a href="#cb528-38" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> +<span id="cb528-39"><a href="#cb528-39" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> +<span id="cb528-40"><a href="#cb528-40" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> +<span id="cb528-41"><a href="#cb528-41" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb528-42"><a href="#cb528-42" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-43"><a href="#cb528-43" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb528-44"><a href="#cb528-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb528-45"><a href="#cb528-45" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb528-46"><a href="#cb528-46" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlBegin</span>{}</span> +<span id="cb528-47"><a href="#cb528-47" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItem</span>#1{<span class="co">%</span></span> +<span id="cb528-48"><a href="#cb528-48" aria-hidden="true" tabindex="-1"></a> . #1 is a</span> +<span id="cb528-49"><a href="#cb528-49" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> +<span id="cb528-50"><a href="#cb528-50" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{<span class="co">%</span></span> +<span id="cb528-51"><a href="#cb528-51" aria-hidden="true" tabindex="-1"></a> ,</span> +<span id="cb528-52"><a href="#cb528-52" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererDlDefinitionBegin</span>{, and }<span class="co">%</span></span> +<span id="cb528-53"><a href="#cb528-53" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb528-54"><a href="#cb528-54" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb528-55"><a href="#cb528-55" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb528-56"><a href="#cb528-56" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlItemEnd</span>{}</span> +<span id="cb528-57"><a href="#cb528-57" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlDefinitionEnd</span>{}</span> +<span id="cb528-58"><a href="#cb528-58" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDlEnd</span>{.}</span> +<span id="cb528-59"><a href="#cb528-59" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-60"><a href="#cb528-60" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb528-61"><a href="#cb528-61" aria-hidden="true" tabindex="-1"></a>This is a loose definition list</span> +<span id="cb528-62"><a href="#cb528-62" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-63"><a href="#cb528-63" aria-hidden="true" tabindex="-1"></a>Coffee</span> +<span id="cb528-64"><a href="#cb528-64" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-65"><a href="#cb528-65" aria-hidden="true" tabindex="-1"></a>: black hot drink</span> +<span id="cb528-66"><a href="#cb528-66" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-67"><a href="#cb528-67" aria-hidden="true" tabindex="-1"></a>: prepared from roasted coffee beans</span> +<span id="cb528-68"><a href="#cb528-68" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-69"><a href="#cb528-69" aria-hidden="true" tabindex="-1"></a>: one of the most traded agricultural commodities in the world</span> +<span id="cb528-70"><a href="#cb528-70" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-71"><a href="#cb528-71" aria-hidden="true" tabindex="-1"></a>Milk</span> +<span id="cb528-72"><a href="#cb528-72" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-73"><a href="#cb528-73" aria-hidden="true" tabindex="-1"></a>: white cold drink</span> +<span id="cb528-74"><a href="#cb528-74" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-75"><a href="#cb528-75" aria-hidden="true" tabindex="-1"></a>: nutrient-rich</span> +<span id="cb528-76"><a href="#cb528-76" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-77"><a href="#cb528-77" aria-hidden="true" tabindex="-1"></a>: produced on an industrial scale</span> +<span id="cb528-78"><a href="#cb528-78" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb528-79"><a href="#cb528-79" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb528-80"><a href="#cb528-80" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb529"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb529-1"><a href="#cb529-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -9752,24 +9841,24 @@ nutrient-rich, and produced on an industrial scale.</p> <h4 data-number="2.3.1.11" id="ellipsis-renderer"><span class="header-section-number">2.3.1.11</span> Ellipsis Renderer</h4> <p>The <code>\markdownRendererEllipsis</code> macro replaces any -occurance of ASCII ellipses in the input text. This macro will only be +occurrence 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" 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="cb529"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb529-1"><a href="#cb529-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb529-2"><a href="#cb529-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span> -<span id="cb529-3"><a href="#cb529-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{{<span class="fu">\it</span> SHAZAM}!}</span> -<span id="cb529-4"><a href="#cb529-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb529-5"><a href="#cb529-5" aria-hidden="true" tabindex="-1"></a>The secret word is ...</span> -<span id="cb529-6"><a href="#cb529-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb529-7"><a href="#cb529-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb530"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb530-1"><a href="#cb530-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb530-1"><a href="#cb530-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb530-2"><a href="#cb530-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSmartEllipses</span>{true}</span> +<span id="cb530-3"><a href="#cb530-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{{<span class="fu">\it</span> SHAZAM}!}</span> +<span id="cb530-4"><a href="#cb530-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb530-5"><a href="#cb530-5" aria-hidden="true" tabindex="-1"></a>The secret word is ...</span> +<span id="cb530-6"><a href="#cb530-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb530-7"><a href="#cb530-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb531"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb531-1"><a href="#cb531-1" aria-hidden="true" tabindex="-1"></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> @@ -9779,22 +9868,22 @@ contain the following text:</p> 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="cb531"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb531-1"><a href="#cb531-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb531-2"><a href="#cb531-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span> -<span id="cb531-3"><a href="#cb531-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb531-4"><a href="#cb531-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb531-5"><a href="#cb531-5" aria-hidden="true" tabindex="-1"></a> ellipsis = <span class="fu">\emph</span>{SHAZAM}!,</span> -<span id="cb531-6"><a href="#cb531-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb531-7"><a href="#cb531-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb531-8"><a href="#cb531-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb531-9"><a href="#cb531-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb531-10"><a href="#cb531-10" aria-hidden="true" tabindex="-1"></a>The secret word is ...</span> -<span id="cb531-11"><a href="#cb531-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb531-12"><a href="#cb531-12" aria-hidden="true" tabindex="-1"></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="cb532"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb532-1"><a href="#cb532-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb532-1"><a href="#cb532-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb532-2"><a href="#cb532-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[smartEllipses]{<span class="ex">markdown</span>}</span> +<span id="cb532-3"><a href="#cb532-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb532-4"><a href="#cb532-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb532-5"><a href="#cb532-5" aria-hidden="true" tabindex="-1"></a> ellipsis = <span class="fu">\emph</span>{SHAZAM}!,</span> +<span id="cb532-6"><a href="#cb532-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb532-7"><a href="#cb532-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb532-8"><a href="#cb532-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb532-9"><a href="#cb532-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb532-10"><a href="#cb532-10" aria-hidden="true" tabindex="-1"></a>The secret word is ...</span> +<span id="cb532-11"><a href="#cb532-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb532-12"><a href="#cb532-12" aria-hidden="true" tabindex="-1"></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="cb533"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb533-1"><a href="#cb533-1" aria-hidden="true" tabindex="-1"></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> @@ -9804,18 +9893,18 @@ contain the following text:</p> 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="cb533"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb533-1"><a href="#cb533-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb533-2"><a href="#cb533-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[smartEllipses = yes]</span> -<span id="cb533-3"><a href="#cb533-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{<span class="fu">\emph</span>{SHAZAM}!}</span> -<span id="cb533-4"><a href="#cb533-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb533-5"><a href="#cb533-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb533-6"><a href="#cb533-6" aria-hidden="true" tabindex="-1"></a>The secret word is ...</span> -<span id="cb533-7"><a href="#cb533-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb533-8"><a href="#cb533-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb534"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb534-1"><a href="#cb534-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb534-1"><a href="#cb534-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb534-2"><a href="#cb534-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[smartEllipses = yes]</span> +<span id="cb534-3"><a href="#cb534-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEllipsis</span>{<span class="fu">\emph</span>{SHAZAM}!}</span> +<span id="cb534-4"><a href="#cb534-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb534-5"><a href="#cb534-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb534-6"><a href="#cb534-6" aria-hidden="true" tabindex="-1"></a>The secret word is ...</span> +<span id="cb534-7"><a href="#cb534-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb534-8"><a href="#cb534-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb535"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb535-1"><a href="#cb535-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -9835,19 +9924,19 @@ that corresponds to the emphasized span of text.</p> 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="cb535"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb535-1"><a href="#cb535-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb535-2"><a href="#cb535-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{{<span class="fu">\it</span>#1}}</span> -<span id="cb535-3"><a href="#cb535-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{{<span class="fu">\bf</span>#1}}</span> -<span id="cb535-4"><a href="#cb535-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb535-5"><a href="#cb535-5" aria-hidden="true" tabindex="-1"></a>This is *emphasis*.</span> -<span id="cb535-6"><a href="#cb535-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb535-7"><a href="#cb535-7" aria-hidden="true" tabindex="-1"></a>This is **strong emphasis**.</span> -<span id="cb535-8"><a href="#cb535-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb535-9"><a href="#cb535-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb536"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb536-1"><a href="#cb536-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb536-1"><a href="#cb536-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb536-2"><a href="#cb536-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{{<span class="fu">\it</span>#1}}</span> +<span id="cb536-3"><a href="#cb536-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{{<span class="fu">\bf</span>#1}}</span> +<span id="cb536-4"><a href="#cb536-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb536-5"><a href="#cb536-5" aria-hidden="true" tabindex="-1"></a>This is *emphasis*.</span> +<span id="cb536-6"><a href="#cb536-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb536-7"><a href="#cb536-7" aria-hidden="true" tabindex="-1"></a>This is **strong emphasis**.</span> +<span id="cb536-8"><a href="#cb536-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb536-9"><a href="#cb536-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb537"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb537-1"><a href="#cb537-1" aria-hidden="true" tabindex="-1"></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> @@ -9858,25 +9947,25 @@ contain the following text:</p> 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="cb537"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb537-1"><a href="#cb537-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb537-2"><a href="#cb537-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb537-3"><a href="#cb537-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb537-4"><a href="#cb537-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb537-5"><a href="#cb537-5" aria-hidden="true" tabindex="-1"></a> emphasis = {<span class="fu">\emph</span>{#1}},</span> -<span id="cb537-6"><a href="#cb537-6" aria-hidden="true" tabindex="-1"></a> strongEmphasis = {<span class="fu">\textbf</span>{#1}},</span> -<span id="cb537-7"><a href="#cb537-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb537-8"><a href="#cb537-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb537-9"><a href="#cb537-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb537-10"><a href="#cb537-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb537-11"><a href="#cb537-11" aria-hidden="true" tabindex="-1"></a>This is *emphasis*.</span> -<span id="cb537-12"><a href="#cb537-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb537-13"><a href="#cb537-13" aria-hidden="true" tabindex="-1"></a>This is **strong emphasis**.</span> -<span id="cb537-14"><a href="#cb537-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb537-15"><a href="#cb537-15" aria-hidden="true" tabindex="-1"></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="cb538"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb538-1"><a href="#cb538-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb538-1"><a href="#cb538-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb538-2"><a href="#cb538-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb538-3"><a href="#cb538-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb538-4"><a href="#cb538-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb538-5"><a href="#cb538-5" aria-hidden="true" tabindex="-1"></a> emphasis = {<span class="fu">\emph</span>{#1}},</span> +<span id="cb538-6"><a href="#cb538-6" aria-hidden="true" tabindex="-1"></a> strongEmphasis = {<span class="fu">\textbf</span>{#1}},</span> +<span id="cb538-7"><a href="#cb538-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb538-8"><a href="#cb538-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb538-9"><a href="#cb538-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb538-10"><a href="#cb538-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb538-11"><a href="#cb538-11" aria-hidden="true" tabindex="-1"></a>This is *emphasis*.</span> +<span id="cb538-12"><a href="#cb538-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb538-13"><a href="#cb538-13" aria-hidden="true" tabindex="-1"></a>This is **strong emphasis**.</span> +<span id="cb538-14"><a href="#cb538-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb538-15"><a href="#cb538-15" aria-hidden="true" tabindex="-1"></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="cb539"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb539-1"><a href="#cb539-1" aria-hidden="true" tabindex="-1"></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> @@ -9887,20 +9976,20 @@ contain the following text:</p> 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="cb539"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb539-1"><a href="#cb539-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb539-2"><a href="#cb539-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{<span class="fu">\emph</span>{#1}}</span> -<span id="cb539-3"><a href="#cb539-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{<span class="fu">\bold</span>{#1}}</span> -<span id="cb539-4"><a href="#cb539-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb539-5"><a href="#cb539-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb539-6"><a href="#cb539-6" aria-hidden="true" tabindex="-1"></a>This is *emphasis*.</span> -<span id="cb539-7"><a href="#cb539-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb539-8"><a href="#cb539-8" aria-hidden="true" tabindex="-1"></a>This is **strong emphasis**.</span> -<span id="cb539-9"><a href="#cb539-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb539-10"><a href="#cb539-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb540"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb540-1"><a href="#cb540-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb540-1"><a href="#cb540-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb540-2"><a href="#cb540-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererEmphasis</span>#1{<span class="fu">\emph</span>{#1}}</span> +<span id="cb540-3"><a href="#cb540-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrongEmphasis</span>#1{<span class="fu">\bold</span>{#1}}</span> +<span id="cb540-4"><a href="#cb540-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb540-5"><a href="#cb540-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb540-6"><a href="#cb540-6" aria-hidden="true" tabindex="-1"></a>This is *emphasis*.</span> +<span id="cb540-7"><a href="#cb540-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb540-8"><a href="#cb540-8" aria-hidden="true" tabindex="-1"></a>This is **strong emphasis**.</span> +<span id="cb540-9"><a href="#cb540-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb540-10"><a href="#cb540-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb541"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb541-1"><a href="#cb541-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -9921,47 +10010,47 @@ of a fenced code apply. The macros receive no arguments.</p> 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="cb541"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb541-1"><a href="#cb541-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb541-2"><a href="#cb541-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode,</span> -<span id="cb541-3"><a href="#cb541-3" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb541-4"><a href="#cb541-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> -<span id="cb541-5"><a href="#cb541-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb541-6"><a href="#cb541-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb541-7"><a href="#cb541-7" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextBegin = {<span class="co">%</span></span> -<span id="cb541-8"><a href="#cb541-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb541-9"><a href="#cb541-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb541-10"><a href="#cb541-10" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb541-11"><a href="#cb541-11" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {<span class="co">%</span></span> -<span id="cb541-12"><a href="#cb541-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\setminted</span>{{#1} = {#2}}<span class="co">%</span></span> -<span id="cb541-13"><a href="#cb541-13" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb541-14"><a href="#cb541-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb541-15"><a href="#cb541-15" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> -<span id="cb541-16"><a href="#cb541-16" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb541-17"><a href="#cb541-17" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextEnd = {<span class="co">%</span></span> -<span id="cb541-18"><a href="#cb541-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> -<span id="cb541-19"><a href="#cb541-19" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb541-20"><a href="#cb541-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb541-21"><a href="#cb541-21" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb541-22"><a href="#cb541-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb541-23"><a href="#cb541-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb541-24"><a href="#cb541-24" aria-hidden="true" tabindex="-1"></a>~~~ js {linenos=true}</span> -<span id="cb541-25"><a href="#cb541-25" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> -<span id="cb541-26"><a href="#cb541-26" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> -<span id="cb541-27"><a href="#cb541-27" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb541-28"><a href="#cb541-28" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> -<span id="cb541-29"><a href="#cb541-29" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb541-30"><a href="#cb541-30" aria-hidden="true" tabindex="-1"></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="cb542"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb542-1"><a href="#cb542-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb542-1"><a href="#cb542-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb542-2"><a href="#cb542-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedCode,</span> +<span id="cb542-3"><a href="#cb542-3" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb542-4"><a href="#cb542-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">minted</span>}</span> +<span id="cb542-5"><a href="#cb542-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb542-6"><a href="#cb542-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb542-7"><a href="#cb542-7" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextBegin = {<span class="co">%</span></span> +<span id="cb542-8"><a href="#cb542-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb542-9"><a href="#cb542-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb542-10"><a href="#cb542-10" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb542-11"><a href="#cb542-11" aria-hidden="true" tabindex="-1"></a> attributeKeyValue = {<span class="co">%</span></span> +<span id="cb542-12"><a href="#cb542-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\setminted</span>{{#1} = {#2}}<span class="co">%</span></span> +<span id="cb542-13"><a href="#cb542-13" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb542-14"><a href="#cb542-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb542-15"><a href="#cb542-15" aria-hidden="true" tabindex="-1"></a> }<span class="co">%</span></span> +<span id="cb542-16"><a href="#cb542-16" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb542-17"><a href="#cb542-17" aria-hidden="true" tabindex="-1"></a> fencedCodeAttributeContextEnd = {<span class="co">%</span></span> +<span id="cb542-18"><a href="#cb542-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> +<span id="cb542-19"><a href="#cb542-19" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb542-20"><a href="#cb542-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb542-21"><a href="#cb542-21" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb542-22"><a href="#cb542-22" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb542-23"><a href="#cb542-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb542-24"><a href="#cb542-24" aria-hidden="true" tabindex="-1"></a>~~~ js {linenos=true}</span> +<span id="cb542-25"><a href="#cb542-25" aria-hidden="true" tabindex="-1"></a>if (a > 3) {</span> +<span id="cb542-26"><a href="#cb542-26" aria-hidden="true" tabindex="-1"></a> moveShip(5 * gravity, DOWN);</span> +<span id="cb542-27"><a href="#cb542-27" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb542-28"><a href="#cb542-28" aria-hidden="true" tabindex="-1"></a>~~~~~~</span> +<span id="cb542-29"><a href="#cb542-29" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb542-30"><a href="#cb542-30" aria-hidden="true" tabindex="-1"></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="cb543"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb543-1"><a href="#cb543-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</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> -<div class="sourceCode" id="cb543"><pre -class="sourceCode js linenos"><code class="sourceCode javascript"><span id="cb543-1"><a href="#cb543-1" aria-hidden="true" tabindex="-1"></a><span class="fl">1.</span> <span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> -<span id="cb543-2"><a href="#cb543-2" aria-hidden="true" tabindex="-1"></a><span class="fl">2.</span> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> -<span id="cb543-3"><a href="#cb543-3" aria-hidden="true" tabindex="-1"></a><span class="fl">3.</span> }</span></code></pre></div> +<div class="sourceCode" id="cb544"><pre +class="sourceCode js linenos"><code class="sourceCode javascript"><span id="cb544-1"><a href="#cb544-1" aria-hidden="true" tabindex="-1"></a><span class="fl">1.</span> <span class="cf">if</span> (a <span class="op">></span> <span class="dv">3</span>) {</span> +<span id="cb544-2"><a href="#cb544-2" aria-hidden="true" tabindex="-1"></a><span class="fl">2.</span> <span class="fu">moveShip</span>(<span class="dv">5</span> <span class="op">*</span> gravity<span class="op">,</span> DOWN)<span class="op">;</span></span> +<span id="cb544-3"><a href="#cb544-3" aria-hidden="true" tabindex="-1"></a><span class="fl">3.</span> }</span></code></pre></div> </blockquote> <h4 data-number="2.3.1.14" id="fenced-div-attribute-context-renderers"><span @@ -9977,49 +10066,49 @@ of a div apply. The macros receive no arguments.</p> 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="cb544"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb544-1"><a href="#cb544-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb544-2"><a href="#cb544-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedDivs]{<span class="ex">markdown</span>}</span> -<span id="cb544-3"><a href="#cb544-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb544-4"><a href="#cb544-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb544-5"><a href="#cb544-5" aria-hidden="true" tabindex="-1"></a> fencedDivAttributeContextBegin = {<span class="co">%</span></span> -<span id="cb544-6"><a href="#cb544-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb544-7"><a href="#cb544-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a fenced div attribute context)}</span> -<span id="cb544-8"><a href="#cb544-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb544-9"><a href="#cb544-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb544-10"><a href="#cb544-10" aria-hidden="true" tabindex="-1"></a> fencedDivAttributeContextEnd = {<span class="co">%</span></span> -<span id="cb544-11"><a href="#cb544-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb544-12"><a href="#cb544-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a fenced div attribute context)}</span> -<span id="cb544-13"><a href="#cb544-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb544-14"><a href="#cb544-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb544-15"><a href="#cb544-15" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb544-16"><a href="#cb544-16" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb544-17"><a href="#cb544-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb544-18"><a href="#cb544-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb544-19"><a href="#cb544-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-20"><a href="#cb544-20" aria-hidden="true" tabindex="-1"></a>::: {key=value}</span> -<span id="cb544-21"><a href="#cb544-21" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-22"><a href="#cb544-22" aria-hidden="true" tabindex="-1"></a>foo</span> -<span id="cb544-23"><a href="#cb544-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-24"><a href="#cb544-24" aria-hidden="true" tabindex="-1"></a>:::: {#identifier}</span> -<span id="cb544-25"><a href="#cb544-25" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-26"><a href="#cb544-26" aria-hidden="true" tabindex="-1"></a>bar</span> -<span id="cb544-27"><a href="#cb544-27" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-28"><a href="#cb544-28" aria-hidden="true" tabindex="-1"></a>::::</span> -<span id="cb544-29"><a href="#cb544-29" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-30"><a href="#cb544-30" aria-hidden="true" tabindex="-1"></a>:::</span> -<span id="cb544-31"><a href="#cb544-31" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-32"><a href="#cb544-32" aria-hidden="true" tabindex="-1"></a>::: {.class_name}</span> -<span id="cb544-33"><a href="#cb544-33" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-34"><a href="#cb544-34" aria-hidden="true" tabindex="-1"></a>baz</span> -<span id="cb544-35"><a href="#cb544-35" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-36"><a href="#cb544-36" aria-hidden="true" tabindex="-1"></a>:::</span> -<span id="cb544-37"><a href="#cb544-37" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb544-38"><a href="#cb544-38" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb544-39"><a href="#cb544-39" aria-hidden="true" tabindex="-1"></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="cb545"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb545-1"><a href="#cb545-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb545-1"><a href="#cb545-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb545-2"><a href="#cb545-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[fencedDivs]{<span class="ex">markdown</span>}</span> +<span id="cb545-3"><a href="#cb545-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb545-4"><a href="#cb545-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb545-5"><a href="#cb545-5" aria-hidden="true" tabindex="-1"></a> fencedDivAttributeContextBegin = {<span class="co">%</span></span> +<span id="cb545-6"><a href="#cb545-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb545-7"><a href="#cb545-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a fenced div attribute context)}</span> +<span id="cb545-8"><a href="#cb545-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb545-9"><a href="#cb545-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb545-10"><a href="#cb545-10" aria-hidden="true" tabindex="-1"></a> fencedDivAttributeContextEnd = {<span class="co">%</span></span> +<span id="cb545-11"><a href="#cb545-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb545-12"><a href="#cb545-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a fenced div attribute context)}</span> +<span id="cb545-13"><a href="#cb545-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb545-14"><a href="#cb545-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb545-15"><a href="#cb545-15" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb545-16"><a href="#cb545-16" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb545-17"><a href="#cb545-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb545-18"><a href="#cb545-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb545-19"><a href="#cb545-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-20"><a href="#cb545-20" aria-hidden="true" tabindex="-1"></a>::: {key=value}</span> +<span id="cb545-21"><a href="#cb545-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-22"><a href="#cb545-22" aria-hidden="true" tabindex="-1"></a>foo</span> +<span id="cb545-23"><a href="#cb545-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-24"><a href="#cb545-24" aria-hidden="true" tabindex="-1"></a>:::: {#identifier}</span> +<span id="cb545-25"><a href="#cb545-25" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-26"><a href="#cb545-26" aria-hidden="true" tabindex="-1"></a>bar</span> +<span id="cb545-27"><a href="#cb545-27" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-28"><a href="#cb545-28" aria-hidden="true" tabindex="-1"></a>::::</span> +<span id="cb545-29"><a href="#cb545-29" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-30"><a href="#cb545-30" aria-hidden="true" tabindex="-1"></a>:::</span> +<span id="cb545-31"><a href="#cb545-31" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-32"><a href="#cb545-32" aria-hidden="true" tabindex="-1"></a>::: {.class_name}</span> +<span id="cb545-33"><a href="#cb545-33" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-34"><a href="#cb545-34" aria-hidden="true" tabindex="-1"></a>baz</span> +<span id="cb545-35"><a href="#cb545-35" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-36"><a href="#cb545-36" aria-hidden="true" tabindex="-1"></a>:::</span> +<span id="cb545-37"><a href="#cb545-37" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb545-38"><a href="#cb545-38" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb545-39"><a href="#cb545-39" aria-hidden="true" tabindex="-1"></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="cb546"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb546-1"><a href="#cb546-1" aria-hidden="true" tabindex="-1"></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> @@ -10048,37 +10137,37 @@ heading apply. The macros receive no arguments.</p> 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="cb546"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb546-1"><a href="#cb546-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb546-2"><a href="#cb546-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb546-3"><a href="#cb546-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb546-4"><a href="#cb546-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb546-5"><a href="#cb546-5" aria-hidden="true" tabindex="-1"></a> headerAttributeContextBegin = {<span class="co">%</span></span> -<span id="cb546-6"><a href="#cb546-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb546-7"><a href="#cb546-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a header attribute context)}</span> -<span id="cb546-8"><a href="#cb546-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb546-9"><a href="#cb546-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb546-10"><a href="#cb546-10" aria-hidden="true" tabindex="-1"></a> headerAttributeContextEnd = {<span class="co">%</span></span> -<span id="cb546-11"><a href="#cb546-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb546-12"><a href="#cb546-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a header attribute context)}</span> -<span id="cb546-13"><a href="#cb546-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb546-14"><a href="#cb546-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb546-15"><a href="#cb546-15" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb546-16"><a href="#cb546-16" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb546-17"><a href="#cb546-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb546-18"><a href="#cb546-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb546-19"><a href="#cb546-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb546-20"><a href="#cb546-20" aria-hidden="true" tabindex="-1"></a># First top-level heading</span> -<span id="cb546-21"><a href="#cb546-21" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb546-22"><a href="#cb546-22" aria-hidden="true" tabindex="-1"></a>## A subheading {#identifier}</span> -<span id="cb546-23"><a href="#cb546-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb546-24"><a href="#cb546-24" aria-hidden="true" tabindex="-1"></a># Second top-level heading {.class_name}</span> -<span id="cb546-25"><a href="#cb546-25" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb546-26"><a href="#cb546-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb546-27"><a href="#cb546-27" aria-hidden="true" tabindex="-1"></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="cb547"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb547-1"><a href="#cb547-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb547-1"><a href="#cb547-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb547-2"><a href="#cb547-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[headerAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb547-3"><a href="#cb547-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb547-4"><a href="#cb547-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb547-5"><a href="#cb547-5" aria-hidden="true" tabindex="-1"></a> headerAttributeContextBegin = {<span class="co">%</span></span> +<span id="cb547-6"><a href="#cb547-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb547-7"><a href="#cb547-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a header attribute context)}</span> +<span id="cb547-8"><a href="#cb547-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb547-9"><a href="#cb547-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb547-10"><a href="#cb547-10" aria-hidden="true" tabindex="-1"></a> headerAttributeContextEnd = {<span class="co">%</span></span> +<span id="cb547-11"><a href="#cb547-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb547-12"><a href="#cb547-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a header attribute context)}</span> +<span id="cb547-13"><a href="#cb547-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb547-14"><a href="#cb547-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb547-15"><a href="#cb547-15" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb547-16"><a href="#cb547-16" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb547-17"><a href="#cb547-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb547-18"><a href="#cb547-18" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb547-19"><a href="#cb547-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb547-20"><a href="#cb547-20" aria-hidden="true" tabindex="-1"></a># First top-level heading</span> +<span id="cb547-21"><a href="#cb547-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb547-22"><a href="#cb547-22" aria-hidden="true" tabindex="-1"></a>## A subheading {#identifier}</span> +<span id="cb547-23"><a href="#cb547-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb547-24"><a href="#cb547-24" aria-hidden="true" tabindex="-1"></a># Second top-level heading {.class_name}</span> +<span id="cb547-25"><a href="#cb547-25" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb547-26"><a href="#cb547-26" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb547-27"><a href="#cb547-27" aria-hidden="true" tabindex="-1"></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="cb548"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb548-1"><a href="#cb548-1" aria-hidden="true" tabindex="-1"></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> @@ -10114,26 +10203,26 @@ the heading text.</p> 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="cb548"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb548-1"><a href="#cb548-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb548-2"><a href="#cb548-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> -<span id="cb548-3"><a href="#cb548-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span> -<span id="cb548-4"><a href="#cb548-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span> -<span id="cb548-5"><a href="#cb548-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span> -<span id="cb548-6"><a href="#cb548-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span> -<span id="cb548-7"><a href="#cb548-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span> -<span id="cb548-8"><a href="#cb548-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span> -<span id="cb548-9"><a href="#cb548-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb548-10"><a href="#cb548-10" aria-hidden="true" tabindex="-1"></a>######</span> -<span id="cb548-11"><a href="#cb548-11" aria-hidden="true" tabindex="-1"></a>#####</span> -<span id="cb548-12"><a href="#cb548-12" aria-hidden="true" tabindex="-1"></a>#####</span> -<span id="cb548-13"><a href="#cb548-13" aria-hidden="true" tabindex="-1"></a>###</span> -<span id="cb548-14"><a href="#cb548-14" aria-hidden="true" tabindex="-1"></a>######</span> -<span id="cb548-15"><a href="#cb548-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb548-16"><a href="#cb548-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb549"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb549-1"><a href="#cb549-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb549-1"><a href="#cb549-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb549-2"><a href="#cb549-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> +<span id="cb549-3"><a href="#cb549-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span> +<span id="cb549-4"><a href="#cb549-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span> +<span id="cb549-5"><a href="#cb549-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span> +<span id="cb549-6"><a href="#cb549-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span> +<span id="cb549-7"><a href="#cb549-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span> +<span id="cb549-8"><a href="#cb549-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span> +<span id="cb549-9"><a href="#cb549-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb549-10"><a href="#cb549-10" aria-hidden="true" tabindex="-1"></a>######</span> +<span id="cb549-11"><a href="#cb549-11" aria-hidden="true" tabindex="-1"></a>#####</span> +<span id="cb549-12"><a href="#cb549-12" aria-hidden="true" tabindex="-1"></a>#####</span> +<span id="cb549-13"><a href="#cb549-13" aria-hidden="true" tabindex="-1"></a>###</span> +<span id="cb549-14"><a href="#cb549-14" aria-hidden="true" tabindex="-1"></a>######</span> +<span id="cb549-15"><a href="#cb549-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb549-16"><a href="#cb549-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb550"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb550-1"><a href="#cb550-1" aria-hidden="true" tabindex="-1"></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> @@ -10143,32 +10232,32 @@ contain the following text:</p> 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="cb550"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb550-1"><a href="#cb550-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb550-2"><a href="#cb550-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb550-3"><a href="#cb550-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb550-4"><a href="#cb550-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb550-5"><a href="#cb550-5" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {},</span> -<span id="cb550-6"><a href="#cb550-6" aria-hidden="true" tabindex="-1"></a> headingOne = 1,</span> -<span id="cb550-7"><a href="#cb550-7" aria-hidden="true" tabindex="-1"></a> headingTwo = 2,</span> -<span id="cb550-8"><a href="#cb550-8" aria-hidden="true" tabindex="-1"></a> headingThree = 3,</span> -<span id="cb550-9"><a href="#cb550-9" aria-hidden="true" tabindex="-1"></a> headingFour = 4,</span> -<span id="cb550-10"><a href="#cb550-10" aria-hidden="true" tabindex="-1"></a> headingFive = 5,</span> -<span id="cb550-11"><a href="#cb550-11" aria-hidden="true" tabindex="-1"></a> headingSix = 6,</span> -<span id="cb550-12"><a href="#cb550-12" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb550-13"><a href="#cb550-13" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb550-14"><a href="#cb550-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb550-15"><a href="#cb550-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb550-16"><a href="#cb550-16" aria-hidden="true" tabindex="-1"></a>######</span> -<span id="cb550-17"><a href="#cb550-17" aria-hidden="true" tabindex="-1"></a>#####</span> -<span id="cb550-18"><a href="#cb550-18" aria-hidden="true" tabindex="-1"></a>#####</span> -<span id="cb550-19"><a href="#cb550-19" aria-hidden="true" tabindex="-1"></a>###</span> -<span id="cb550-20"><a href="#cb550-20" aria-hidden="true" tabindex="-1"></a>######</span> -<span id="cb550-21"><a href="#cb550-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb550-22"><a href="#cb550-22" aria-hidden="true" tabindex="-1"></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="cb551"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb551-1"><a href="#cb551-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb551-1"><a href="#cb551-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb551-2"><a href="#cb551-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb551-3"><a href="#cb551-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb551-4"><a href="#cb551-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb551-5"><a href="#cb551-5" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {},</span> +<span id="cb551-6"><a href="#cb551-6" aria-hidden="true" tabindex="-1"></a> headingOne = 1,</span> +<span id="cb551-7"><a href="#cb551-7" aria-hidden="true" tabindex="-1"></a> headingTwo = 2,</span> +<span id="cb551-8"><a href="#cb551-8" aria-hidden="true" tabindex="-1"></a> headingThree = 3,</span> +<span id="cb551-9"><a href="#cb551-9" aria-hidden="true" tabindex="-1"></a> headingFour = 4,</span> +<span id="cb551-10"><a href="#cb551-10" aria-hidden="true" tabindex="-1"></a> headingFive = 5,</span> +<span id="cb551-11"><a href="#cb551-11" aria-hidden="true" tabindex="-1"></a> headingSix = 6,</span> +<span id="cb551-12"><a href="#cb551-12" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb551-13"><a href="#cb551-13" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb551-14"><a href="#cb551-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb551-15"><a href="#cb551-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb551-16"><a href="#cb551-16" aria-hidden="true" tabindex="-1"></a>######</span> +<span id="cb551-17"><a href="#cb551-17" aria-hidden="true" tabindex="-1"></a>#####</span> +<span id="cb551-18"><a href="#cb551-18" aria-hidden="true" tabindex="-1"></a>#####</span> +<span id="cb551-19"><a href="#cb551-19" aria-hidden="true" tabindex="-1"></a>###</span> +<span id="cb551-20"><a href="#cb551-20" aria-hidden="true" tabindex="-1"></a>######</span> +<span id="cb551-21"><a href="#cb551-21" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb551-22"><a href="#cb551-22" aria-hidden="true" tabindex="-1"></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="cb552"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb552-1"><a href="#cb552-1" aria-hidden="true" tabindex="-1"></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> @@ -10178,27 +10267,27 @@ contain the following text:</p> 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="cb552"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb552-1"><a href="#cb552-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb552-2"><a href="#cb552-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> -<span id="cb552-3"><a href="#cb552-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span> -<span id="cb552-4"><a href="#cb552-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span> -<span id="cb552-5"><a href="#cb552-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span> -<span id="cb552-6"><a href="#cb552-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span> -<span id="cb552-7"><a href="#cb552-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span> -<span id="cb552-8"><a href="#cb552-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span> -<span id="cb552-9"><a href="#cb552-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb552-10"><a href="#cb552-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb552-11"><a href="#cb552-11" aria-hidden="true" tabindex="-1"></a>######</span> -<span id="cb552-12"><a href="#cb552-12" aria-hidden="true" tabindex="-1"></a>#####</span> -<span id="cb552-13"><a href="#cb552-13" aria-hidden="true" tabindex="-1"></a>#####</span> -<span id="cb552-14"><a href="#cb552-14" aria-hidden="true" tabindex="-1"></a>###</span> -<span id="cb552-15"><a href="#cb552-15" aria-hidden="true" tabindex="-1"></a>######</span> -<span id="cb552-16"><a href="#cb552-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb552-17"><a href="#cb552-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb553"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb553-1"><a href="#cb553-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb553-1"><a href="#cb553-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb553-2"><a href="#cb553-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> +<span id="cb553-3"><a href="#cb553-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingOne</span>{1}</span> +<span id="cb553-4"><a href="#cb553-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingTwo</span>{2}</span> +<span id="cb553-5"><a href="#cb553-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingThree</span>{3}</span> +<span id="cb553-6"><a href="#cb553-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFour</span>{4}</span> +<span id="cb553-7"><a href="#cb553-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingFive</span>{5}</span> +<span id="cb553-8"><a href="#cb553-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHeadingSix</span>{6}</span> +<span id="cb553-9"><a href="#cb553-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb553-10"><a href="#cb553-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb553-11"><a href="#cb553-11" aria-hidden="true" tabindex="-1"></a>######</span> +<span id="cb553-12"><a href="#cb553-12" aria-hidden="true" tabindex="-1"></a>#####</span> +<span id="cb553-13"><a href="#cb553-13" aria-hidden="true" tabindex="-1"></a>#####</span> +<span id="cb553-14"><a href="#cb553-14" aria-hidden="true" tabindex="-1"></a>###</span> +<span id="cb553-15"><a href="#cb553-15" aria-hidden="true" tabindex="-1"></a>######</span> +<span id="cb553-16"><a href="#cb553-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb553-17"><a href="#cb553-17" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb554"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb554-1"><a href="#cb554-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -10216,26 +10305,26 @@ contents of the <abbr>HTML</abbr> comment.</p> 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="cb554"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb554-1"><a href="#cb554-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb554-2"><a href="#cb554-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span> -<span id="cb554-3"><a href="#cb554-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span> -<span id="cb554-4"><a href="#cb554-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb554-5"><a href="#cb554-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb554-6"><a href="#cb554-6" aria-hidden="true" tabindex="-1"></a> inlineHtmlComment = {<span class="fu">\marginnote</span>{#1}},</span> -<span id="cb554-7"><a href="#cb554-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb554-8"><a href="#cb554-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb554-9"><a href="#cb554-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb554-10"><a href="#cb554-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb554-11"><a href="#cb554-11" aria-hidden="true" tabindex="-1"></a>A useful use of inline HTML comments are side notes.</span> -<span id="cb554-12"><a href="#cb554-12" aria-hidden="true" tabindex="-1"></a><!-- Side notes are displayed in the horizontal margins next to the relevant</span> -<span id="cb554-13"><a href="#cb554-13" aria-hidden="true" tabindex="-1"></a>passages, which makes them *easier for the reader to find* than notes. --></span> -<span id="cb554-14"><a href="#cb554-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb554-15"><a href="#cb554-15" aria-hidden="true" tabindex="-1"></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="cb555"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb555-1"><a href="#cb555-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb555-2"><a href="#cb555-2" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb555-1"><a href="#cb555-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb555-2"><a href="#cb555-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span> +<span id="cb555-3"><a href="#cb555-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span> +<span id="cb555-4"><a href="#cb555-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb555-5"><a href="#cb555-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb555-6"><a href="#cb555-6" aria-hidden="true" tabindex="-1"></a> inlineHtmlComment = {<span class="fu">\marginnote</span>{#1}},</span> +<span id="cb555-7"><a href="#cb555-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb555-8"><a href="#cb555-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb555-9"><a href="#cb555-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb555-10"><a href="#cb555-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb555-11"><a href="#cb555-11" aria-hidden="true" tabindex="-1"></a>A useful use of inline HTML comments are side notes.</span> +<span id="cb555-12"><a href="#cb555-12" aria-hidden="true" tabindex="-1"></a><!-- Side notes are displayed in the horizontal margins next to the relevant</span> +<span id="cb555-13"><a href="#cb555-13" aria-hidden="true" tabindex="-1"></a>passages, which makes them *easier for the reader to find* than notes. --></span> +<span id="cb555-14"><a href="#cb555-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb555-15"><a href="#cb555-15" aria-hidden="true" tabindex="-1"></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="cb556"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb556-1"><a href="#cb556-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb556-2"><a href="#cb556-2" aria-hidden="true" tabindex="-1"></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> @@ -10264,28 +10353,28 @@ the contents of the <abbr>HTML</abbr> element.</p> 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="cb556"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb556-1"><a href="#cb556-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb556-2"><a href="#cb556-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span> -<span id="cb556-3"><a href="#cb556-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span> -<span id="cb556-4"><a href="#cb556-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span> -<span id="cb556-5"><a href="#cb556-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb556-6"><a href="#cb556-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb556-7"><a href="#cb556-7" aria-hidden="true" tabindex="-1"></a> inlineHtmlTag = {<span class="fu">\textbf</span>{#1}},</span> -<span id="cb556-8"><a href="#cb556-8" aria-hidden="true" tabindex="-1"></a> inputBlockHtmlElement = {<span class="fu">\verbatiminput</span>{#1}},</span> -<span id="cb556-9"><a href="#cb556-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb556-10"><a href="#cb556-10" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb556-11"><a href="#cb556-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb556-12"><a href="#cb556-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb556-13"><a href="#cb556-13" aria-hidden="true" tabindex="-1"></a><b>_Hello,_ world!</b><br/></span> -<span id="cb556-14"><a href="#cb556-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb556-15"><a href="#cb556-15" aria-hidden="true" tabindex="-1"></a><div>_Hello,_ world!</div></span> -<span id="cb556-16"><a href="#cb556-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb556-17"><a href="#cb556-17" aria-hidden="true" tabindex="-1"></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="cb557"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb557-1"><a href="#cb557-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb557-2"><a href="#cb557-2" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb557-1"><a href="#cb557-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb557-2"><a href="#cb557-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[html]{<span class="ex">markdown</span>}</span> +<span id="cb557-3"><a href="#cb557-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">marginnote</span>}</span> +<span id="cb557-4"><a href="#cb557-4" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</span> +<span id="cb557-5"><a href="#cb557-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb557-6"><a href="#cb557-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb557-7"><a href="#cb557-7" aria-hidden="true" tabindex="-1"></a> inlineHtmlTag = {<span class="fu">\textbf</span>{#1}},</span> +<span id="cb557-8"><a href="#cb557-8" aria-hidden="true" tabindex="-1"></a> inputBlockHtmlElement = {<span class="fu">\verbatiminput</span>{#1}},</span> +<span id="cb557-9"><a href="#cb557-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb557-10"><a href="#cb557-10" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb557-11"><a href="#cb557-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb557-12"><a href="#cb557-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb557-13"><a href="#cb557-13" aria-hidden="true" tabindex="-1"></a><b>_Hello,_ world!</b><br/></span> +<span id="cb557-14"><a href="#cb557-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb557-15"><a href="#cb557-15" aria-hidden="true" tabindex="-1"></a><div>_Hello,_ world!</div></span> +<span id="cb557-16"><a href="#cb557-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb557-17"><a href="#cb557-17" aria-hidden="true" tabindex="-1"></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="cb558"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb558-1"><a href="#cb558-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb558-2"><a href="#cb558-2" aria-hidden="true" tabindex="-1"></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> @@ -10302,44 +10391,44 @@ outside typesetting, and the title of the link.</p> 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="cb559"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb559-1"><a href="#cb559-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb559-2"><a href="#cb559-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb559-3"><a href="#cb559-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> -<span id="cb559-4"><a href="#cb559-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\@</span>=11</span> -<span id="cb559-5"><a href="#cb559-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> -<span id="cb559-6"><a href="#cb559-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\^</span>^A=14</span> -<span id="cb559-7"><a href="#cb559-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\global\def\markdownRendererImage</span>#1#2#3#4{^^A</span> -<span id="cb559-8"><a href="#cb559-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\immediate\write</span>18{^^A</span></code></pre></div> <div class="sourceCode" id="cb560"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb560-1"><a href="#cb560-1" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">grep</span> <span class="at">-q</span> ^http<span class="kw">;</span> <span class="cf">then</span></span> -<span id="cb560-2"><a href="#cb560-2" aria-hidden="true" tabindex="-1"></a> <span class="va">OUTPUT</span><span class="op">=</span><span class="st">"</span><span class="va">$(</span><span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">md5sum</span> <span class="kw">|</span> <span class="fu">cut</span> <span class="at">-d</span><span class="st">' '</span> <span class="at">-f1</span><span class="va">)</span><span class="st">.^^A</span></span> -<span id="cb560-3"><a href="#cb560-3" aria-hidden="true" tabindex="-1"></a><span class="st"> </span><span class="va">$(</span><span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">sed</span> <span class="st">'s/.*[.]//'</span><span class="va">)</span><span class="st">"</span><span class="kw">;</span></span> -<span id="cb560-4"><a href="#cb560-4" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="ot">! </span><span class="bu">[</span> <span class="ot">-e</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="bu">]</span><span class="kw">;</span> <span class="cf">then</span></span> -<span id="cb560-5"><a href="#cb560-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">wget</span> <span class="at">-O</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="st">'#3'</span> <span class="kw">||</span> <span class="fu">rm</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="kw">;</span></span> -<span id="cb560-6"><a href="#cb560-6" aria-hidden="true" tabindex="-1"></a> <span class="ex">convert</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> png:<span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="kw">;</span></span> -<span id="cb560-7"><a href="#cb560-7" aria-hidden="true" tabindex="-1"></a> <span class="cf">fi</span><span class="kw">;</span></span> -<span id="cb560-8"><a href="#cb560-8" aria-hidden="true" tabindex="-1"></a> <span class="bu">printf</span> <span class="st">'%s%%'</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="op">></span> <span class="dt">\j</span>obname.fetched<span class="kw">;</span></span> -<span id="cb560-9"><a href="#cb560-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span></span> -<span id="cb560-10"><a href="#cb560-10" aria-hidden="true" tabindex="-1"></a> <span class="bu">printf</span> <span class="st">'%s%%'</span> <span class="st">"#3"</span> <span class="op">></span> <span class="dt">\j</span>obname.fetched<span class="kw">;</span></span> -<span id="cb560-11"><a href="#cb560-11" aria-hidden="true" tabindex="-1"></a> <span class="ex">fi^^A</span></span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb560-1"><a href="#cb560-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb560-2"><a href="#cb560-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb560-3"><a href="#cb560-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\begingroup</span></span> +<span id="cb560-4"><a href="#cb560-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\@</span>=11</span> +<span id="cb560-5"><a href="#cb560-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</span> +<span id="cb560-6"><a href="#cb560-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\catcode</span>`<span class="fu">\^</span>^A=14</span> +<span id="cb560-7"><a href="#cb560-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\global\def\markdownRendererImage</span>#1#2#3#4{^^A</span> +<span id="cb560-8"><a href="#cb560-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\immediate\write</span>18{^^A</span></code></pre></div> <div class="sourceCode" id="cb561"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb561-1"><a href="#cb561-1" aria-hidden="true" tabindex="-1"></a> }^^A</span> -<span id="cb561-2"><a href="#cb561-2" aria-hidden="true" tabindex="-1"></a> {^^A</span> -<span id="cb561-3"><a href="#cb561-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\everyeof</span>={<span class="fu">\noexpand</span>}^^A</span> -<span id="cb561-4"><a href="#cb561-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\edef\filename</span>{<span class="fu">\@@input</span>"<span class="fu">\jobname</span>.fetched" }^^A</span> -<span id="cb561-5"><a href="#cb561-5" aria-hidden="true" tabindex="-1"></a> <span class="bu">\includegraphics</span>[width=<span class="fu">\textwidth</span>]{<span class="fu">\filename</span>}^^A</span> -<span id="cb561-6"><a href="#cb561-6" aria-hidden="true" tabindex="-1"></a> }^^A</span> -<span id="cb561-7"><a href="#cb561-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb561-8"><a href="#cb561-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> -<span id="cb561-9"><a href="#cb561-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb561-10"><a href="#cb561-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb561-11"><a href="#cb561-11" aria-hidden="true" tabindex="-1"></a>![TUGboat](https://tug.org/tugboat/noword.jpg)</span> -<span id="cb561-12"><a href="#cb561-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb561-13"><a href="#cb561-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> +class="sourceCode sh"><code class="sourceCode bash"><span id="cb561-1"><a href="#cb561-1" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">grep</span> <span class="at">-q</span> ^http<span class="kw">;</span> <span class="cf">then</span></span> +<span id="cb561-2"><a href="#cb561-2" aria-hidden="true" tabindex="-1"></a> <span class="va">OUTPUT</span><span class="op">=</span><span class="st">"</span><span class="va">$(</span><span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">md5sum</span> <span class="kw">|</span> <span class="fu">cut</span> <span class="at">-d</span><span class="st">' '</span> <span class="at">-f1</span><span class="va">)</span><span class="st">.^^A</span></span> +<span id="cb561-3"><a href="#cb561-3" aria-hidden="true" tabindex="-1"></a><span class="st"> </span><span class="va">$(</span><span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">sed</span> <span class="st">'s/.*[.]//'</span><span class="va">)</span><span class="st">"</span><span class="kw">;</span></span> +<span id="cb561-4"><a href="#cb561-4" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="ot">! </span><span class="bu">[</span> <span class="ot">-e</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="bu">]</span><span class="kw">;</span> <span class="cf">then</span></span> +<span id="cb561-5"><a href="#cb561-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">wget</span> <span class="at">-O</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="st">'#3'</span> <span class="kw">||</span> <span class="fu">rm</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="kw">;</span></span> +<span id="cb561-6"><a href="#cb561-6" aria-hidden="true" tabindex="-1"></a> <span class="ex">convert</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> png:<span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="kw">;</span></span> +<span id="cb561-7"><a href="#cb561-7" aria-hidden="true" tabindex="-1"></a> <span class="cf">fi</span><span class="kw">;</span></span> +<span id="cb561-8"><a href="#cb561-8" aria-hidden="true" tabindex="-1"></a> <span class="bu">printf</span> <span class="st">'%s%%'</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="op">></span> <span class="dt">\j</span>obname.fetched<span class="kw">;</span></span> +<span id="cb561-9"><a href="#cb561-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span></span> +<span id="cb561-10"><a href="#cb561-10" aria-hidden="true" tabindex="-1"></a> <span class="bu">printf</span> <span class="st">'%s%%'</span> <span class="st">"#3"</span> <span class="op">></span> <span class="dt">\j</span>obname.fetched<span class="kw">;</span></span> +<span id="cb561-11"><a href="#cb561-11" aria-hidden="true" tabindex="-1"></a> <span class="ex">fi^^A</span></span></code></pre></div> <div class="sourceCode" id="cb562"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb562-1"><a href="#cb562-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb562-1"><a href="#cb562-1" aria-hidden="true" tabindex="-1"></a> }^^A</span> +<span id="cb562-2"><a href="#cb562-2" aria-hidden="true" tabindex="-1"></a> {^^A</span> +<span id="cb562-3"><a href="#cb562-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\everyeof</span>={<span class="fu">\noexpand</span>}^^A</span> +<span id="cb562-4"><a href="#cb562-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\edef\filename</span>{<span class="fu">\@@input</span>"<span class="fu">\jobname</span>.fetched" }^^A</span> +<span id="cb562-5"><a href="#cb562-5" aria-hidden="true" tabindex="-1"></a> <span class="bu">\includegraphics</span>[width=<span class="fu">\textwidth</span>]{<span class="fu">\filename</span>}^^A</span> +<span id="cb562-6"><a href="#cb562-6" aria-hidden="true" tabindex="-1"></a> }^^A</span> +<span id="cb562-7"><a href="#cb562-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb562-8"><a href="#cb562-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\endgroup</span></span> +<span id="cb562-9"><a href="#cb562-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb562-10"><a href="#cb562-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb562-11"><a href="#cb562-11" aria-hidden="true" tabindex="-1"></a>![TUGboat](https://tug.org/tugboat/noword.jpg)</span> +<span id="cb562-12"><a href="#cb562-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb562-13"><a href="#cb562-13" aria-hidden="true" tabindex="-1"></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="cb563"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb563-1"><a href="#cb563-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> <span class="at">--shell-escape</span> 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 @@ -10367,26 +10456,26 @@ image apply. The macros receive no arguments.</p> 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="cb563"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb563-1"><a href="#cb563-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb563-2"><a href="#cb563-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[linkAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb563-3"><a href="#cb563-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb563-4"><a href="#cb563-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb563-5"><a href="#cb563-5" aria-hidden="true" tabindex="-1"></a> imageAttributeContextBegin = {(},</span> -<span id="cb563-6"><a href="#cb563-6" aria-hidden="true" tabindex="-1"></a> image = {#1},</span> -<span id="cb563-7"><a href="#cb563-7" aria-hidden="true" tabindex="-1"></a> imageAttributeContextEnd = {)},</span> -<span id="cb563-8"><a href="#cb563-8" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb563-9"><a href="#cb563-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb563-10"><a href="#cb563-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb563-11"><a href="#cb563-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb563-12"><a href="#cb563-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb563-13"><a href="#cb563-13" aria-hidden="true" tabindex="-1"></a>foo ![bar](#bar){key=value} baz</span> -<span id="cb563-14"><a href="#cb563-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb563-15"><a href="#cb563-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb563-16"><a href="#cb563-16" aria-hidden="true" tabindex="-1"></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="cb564"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb564-1"><a href="#cb564-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb564-1"><a href="#cb564-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb564-2"><a href="#cb564-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[linkAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb564-3"><a href="#cb564-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb564-4"><a href="#cb564-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb564-5"><a href="#cb564-5" aria-hidden="true" tabindex="-1"></a> imageAttributeContextBegin = {(},</span> +<span id="cb564-6"><a href="#cb564-6" aria-hidden="true" tabindex="-1"></a> image = {#1},</span> +<span id="cb564-7"><a href="#cb564-7" aria-hidden="true" tabindex="-1"></a> imageAttributeContextEnd = {)},</span> +<span id="cb564-8"><a href="#cb564-8" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb564-9"><a href="#cb564-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb564-10"><a href="#cb564-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb564-11"><a href="#cb564-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb564-12"><a href="#cb564-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb564-13"><a href="#cb564-13" aria-hidden="true" tabindex="-1"></a>foo ![bar](#bar){key=value} baz</span> +<span id="cb564-14"><a href="#cb564-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb564-15"><a href="#cb564-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb564-16"><a href="#cb564-16" aria-hidden="true" tabindex="-1"></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="cb565"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb565-1"><a href="#cb565-1" aria-hidden="true" tabindex="-1"></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> @@ -10402,22 +10491,22 @@ The macro receives no arguments.</p> 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="cb565"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb565-1"><a href="#cb565-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb565-2"><a href="#cb565-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb565-3"><a href="#cb565-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb565-4"><a href="#cb565-4" aria-hidden="true" tabindex="-1"></a> {<span class="fu">\it</span>(The end of a block)}<span class="co">%</span></span> -<span id="cb565-5"><a href="#cb565-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb565-6"><a href="#cb565-6" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb565-7"><a href="#cb565-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb565-8"><a href="#cb565-8" aria-hidden="true" tabindex="-1"></a>- Hello *world*!</span> -<span id="cb565-9"><a href="#cb565-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb565-10"><a href="#cb565-10" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> -<span id="cb565-11"><a href="#cb565-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb565-12"><a href="#cb565-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb566"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb566-1"><a href="#cb566-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb566-1"><a href="#cb566-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb566-2"><a href="#cb566-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb566-3"><a href="#cb566-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb566-4"><a href="#cb566-4" aria-hidden="true" tabindex="-1"></a> {<span class="fu">\it</span>(The end of a block)}<span class="co">%</span></span> +<span id="cb566-5"><a href="#cb566-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb566-6"><a href="#cb566-6" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb566-7"><a href="#cb566-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb566-8"><a href="#cb566-8" aria-hidden="true" tabindex="-1"></a>- Hello *world*!</span> +<span id="cb566-9"><a href="#cb566-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb566-10"><a href="#cb566-10" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> +<span id="cb566-11"><a href="#cb566-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb566-12"><a href="#cb566-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb567"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb567-1"><a href="#cb567-1" aria-hidden="true" tabindex="-1"></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> @@ -10431,28 +10520,28 @@ contain the following text:</p> 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="cb567"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb567-1"><a href="#cb567-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb567-2"><a href="#cb567-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb567-3"><a href="#cb567-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb567-4"><a href="#cb567-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb567-5"><a href="#cb567-5" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> -<span id="cb567-6"><a href="#cb567-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb567-7"><a href="#cb567-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span> -<span id="cb567-8"><a href="#cb567-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb567-9"><a href="#cb567-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb567-10"><a href="#cb567-10" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb567-11"><a href="#cb567-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb567-12"><a href="#cb567-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb567-13"><a href="#cb567-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb567-14"><a href="#cb567-14" aria-hidden="true" tabindex="-1"></a>- Hello *world*!</span> -<span id="cb567-15"><a href="#cb567-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb567-16"><a href="#cb567-16" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> -<span id="cb567-17"><a href="#cb567-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb567-18"><a href="#cb567-18" aria-hidden="true" tabindex="-1"></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="cb568"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb568-1"><a href="#cb568-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb568-1"><a href="#cb568-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb568-2"><a href="#cb568-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb568-3"><a href="#cb568-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb568-4"><a href="#cb568-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb568-5"><a href="#cb568-5" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> +<span id="cb568-6"><a href="#cb568-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb568-7"><a href="#cb568-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span> +<span id="cb568-8"><a href="#cb568-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb568-9"><a href="#cb568-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb568-10"><a href="#cb568-10" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb568-11"><a href="#cb568-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb568-12"><a href="#cb568-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb568-13"><a href="#cb568-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb568-14"><a href="#cb568-14" aria-hidden="true" tabindex="-1"></a>- Hello *world*!</span> +<span id="cb568-15"><a href="#cb568-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb568-16"><a href="#cb568-16" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> +<span id="cb568-17"><a href="#cb568-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb568-18"><a href="#cb568-18" aria-hidden="true" tabindex="-1"></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="cb569"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb569-1"><a href="#cb569-1" aria-hidden="true" tabindex="-1"></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> @@ -10466,23 +10555,23 @@ contain the following text:</p> 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="cb569"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb569-1"><a href="#cb569-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb569-2"><a href="#cb569-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb569-3"><a href="#cb569-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb569-4"><a href="#cb569-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span> -<span id="cb569-5"><a href="#cb569-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb569-6"><a href="#cb569-6" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb569-7"><a href="#cb569-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb569-8"><a href="#cb569-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb569-9"><a href="#cb569-9" aria-hidden="true" tabindex="-1"></a>- Hello *world*!</span> -<span id="cb569-10"><a href="#cb569-10" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb569-11"><a href="#cb569-11" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> -<span id="cb569-12"><a href="#cb569-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb569-13"><a href="#cb569-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb570"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb570-1"><a href="#cb570-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb570-1"><a href="#cb570-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb570-2"><a href="#cb570-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb570-3"><a href="#cb570-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb570-4"><a href="#cb570-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a block)}<span class="co">%</span></span> +<span id="cb570-5"><a href="#cb570-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb570-6"><a href="#cb570-6" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb570-7"><a href="#cb570-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb570-8"><a href="#cb570-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb570-9"><a href="#cb570-9" aria-hidden="true" tabindex="-1"></a>- Hello *world*!</span> +<span id="cb570-10"><a href="#cb570-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb570-11"><a href="#cb570-11" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> +<span id="cb570-12"><a href="#cb570-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb570-13"><a href="#cb570-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb571"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb571-1"><a href="#cb571-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -10503,28 +10592,28 @@ a paragraph separator. The macro receives no arguments.</p> 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="cb571"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb571-1"><a href="#cb571-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb571-2"><a href="#cb571-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb571-3"><a href="#cb571-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb571-4"><a href="#cb571-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb571-5"><a href="#cb571-5" aria-hidden="true" tabindex="-1"></a> paragraphSeparator = {<span class="co">%</span></span> -<span id="cb571-6"><a href="#cb571-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb571-7"><a href="#cb571-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a paragraph)}<span class="co">%</span></span> -<span id="cb571-8"><a href="#cb571-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb571-9"><a href="#cb571-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb571-10"><a href="#cb571-10" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb571-11"><a href="#cb571-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb571-12"><a href="#cb571-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb571-13"><a href="#cb571-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb571-14"><a href="#cb571-14" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb571-15"><a href="#cb571-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb571-16"><a href="#cb571-16" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> -<span id="cb571-17"><a href="#cb571-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb571-18"><a href="#cb571-18" aria-hidden="true" tabindex="-1"></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="cb572"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb572-1"><a href="#cb572-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb572-1"><a href="#cb572-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb572-2"><a href="#cb572-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb572-3"><a href="#cb572-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb572-4"><a href="#cb572-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb572-5"><a href="#cb572-5" aria-hidden="true" tabindex="-1"></a> paragraphSeparator = {<span class="co">%</span></span> +<span id="cb572-6"><a href="#cb572-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb572-7"><a href="#cb572-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a paragraph)}<span class="co">%</span></span> +<span id="cb572-8"><a href="#cb572-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb572-9"><a href="#cb572-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb572-10"><a href="#cb572-10" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb572-11"><a href="#cb572-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb572-12"><a href="#cb572-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb572-13"><a href="#cb572-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb572-14"><a href="#cb572-14" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb572-15"><a href="#cb572-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb572-16"><a href="#cb572-16" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> +<span id="cb572-17"><a href="#cb572-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb572-18"><a href="#cb572-18" aria-hidden="true" tabindex="-1"></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="cb573"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb573-1"><a href="#cb573-1" aria-hidden="true" tabindex="-1"></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> @@ -10544,19 +10633,19 @@ arguments.</p> 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="cb573"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb573-1"><a href="#cb573-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb573-2"><a href="#cb573-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionLineBlocks</span>{true}</span> -<span id="cb573-3"><a href="#cb573-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb573-4"><a href="#cb573-4" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> -<span id="cb573-5"><a href="#cb573-5" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> -<span id="cb573-6"><a href="#cb573-6" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> -<span id="cb573-7"><a href="#cb573-7" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> -<span id="cb573-8"><a href="#cb573-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb573-9"><a href="#cb573-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb574"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb574-1"><a href="#cb574-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb574-1"><a href="#cb574-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb574-2"><a href="#cb574-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionLineBlocks</span>{true}</span> +<span id="cb574-3"><a href="#cb574-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb574-4"><a href="#cb574-4" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> +<span id="cb574-5"><a href="#cb574-5" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> +<span id="cb574-6"><a href="#cb574-6" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> +<span id="cb574-7"><a href="#cb574-7" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> +<span id="cb574-8"><a href="#cb574-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb574-9"><a href="#cb574-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb575"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb575-1"><a href="#cb575-1" aria-hidden="true" tabindex="-1"></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> @@ -10569,20 +10658,20 @@ Tread softly because you tread on my dreams.</div> 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="cb575"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb575-1"><a href="#cb575-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb575-2"><a href="#cb575-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[lineBlocks]{<span class="ex">markdown</span>}</span> -<span id="cb575-3"><a href="#cb575-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb575-4"><a href="#cb575-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb575-5"><a href="#cb575-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> -<span id="cb575-6"><a href="#cb575-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> -<span id="cb575-7"><a href="#cb575-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> -<span id="cb575-8"><a href="#cb575-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> -<span id="cb575-9"><a href="#cb575-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb575-10"><a href="#cb575-10" aria-hidden="true" tabindex="-1"></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="cb576"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb576-1"><a href="#cb576-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb576-1"><a href="#cb576-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb576-2"><a href="#cb576-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[lineBlocks]{<span class="ex">markdown</span>}</span> +<span id="cb576-3"><a href="#cb576-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb576-4"><a href="#cb576-4" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb576-5"><a href="#cb576-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> +<span id="cb576-6"><a href="#cb576-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> +<span id="cb576-7"><a href="#cb576-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> +<span id="cb576-8"><a href="#cb576-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> +<span id="cb576-9"><a href="#cb576-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb576-10"><a href="#cb576-10" aria-hidden="true" tabindex="-1"></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="cb577"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb577-1"><a href="#cb577-1" aria-hidden="true" tabindex="-1"></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> @@ -10595,20 +10684,20 @@ Tread softly because you tread on my dreams.</div> 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="cb577"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb577-1"><a href="#cb577-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb577-2"><a href="#cb577-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[lineBlocks = yes]</span> -<span id="cb577-3"><a href="#cb577-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb577-4"><a href="#cb577-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb577-5"><a href="#cb577-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> -<span id="cb577-6"><a href="#cb577-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> -<span id="cb577-7"><a href="#cb577-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> -<span id="cb577-8"><a href="#cb577-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> -<span id="cb577-9"><a href="#cb577-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb577-10"><a href="#cb577-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb578"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb578-1"><a href="#cb578-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb578-1"><a href="#cb578-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb578-2"><a href="#cb578-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[lineBlocks = yes]</span> +<span id="cb578-3"><a href="#cb578-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb578-4"><a href="#cb578-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb578-5"><a href="#cb578-5" aria-hidden="true" tabindex="-1"></a>| I would spread the cloths under your feet:</span> +<span id="cb578-6"><a href="#cb578-6" aria-hidden="true" tabindex="-1"></a>| But I, being poor, have only my dreams;</span> +<span id="cb578-7"><a href="#cb578-7" aria-hidden="true" tabindex="-1"></a>| I have spread my dreams under your feet;</span> +<span id="cb578-8"><a href="#cb578-8" aria-hidden="true" tabindex="-1"></a>| Tread softly because you tread on my dreams.</span> +<span id="cb578-9"><a href="#cb578-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb578-10"><a href="#cb578-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb579"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb579-1"><a href="#cb579-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -10625,23 +10714,23 @@ soft line break. The macro receives no arguments.</p> 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="cb579"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb579-1"><a href="#cb579-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb579-2"><a href="#cb579-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSoftLineBreak</span>{<span class="co">%</span></span> -<span id="cb579-3"><a href="#cb579-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb579-4"><a href="#cb579-4" aria-hidden="true" tabindex="-1"></a> {<span class="fu">\it</span>(A soft line break)}<span class="co">%</span></span> -<span id="cb579-5"><a href="#cb579-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb579-6"><a href="#cb579-6" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb579-7"><a href="#cb579-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb579-8"><a href="#cb579-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb580"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb580-1"><a href="#cb580-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb580-2"><a href="#cb580-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSoftLineBreak</span>{<span class="co">%</span></span> +<span id="cb580-3"><a href="#cb580-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb580-4"><a href="#cb580-4" aria-hidden="true" tabindex="-1"></a> {<span class="fu">\it</span>(A soft line break)}<span class="co">%</span></span> +<span id="cb580-5"><a href="#cb580-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb580-6"><a href="#cb580-6" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb580-7"><a href="#cb580-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb580-8"><a href="#cb580-8" aria-hidden="true" tabindex="-1"></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:</p> -<div class="sourceCode" id="cb580"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb580-1"><a href="#cb580-1" aria-hidden="true" tabindex="-1"></a>Hello world!</span> -<span id="cb580-2"><a href="#cb580-2" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb581"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb581-1"><a href="#cb581-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb581-1"><a href="#cb581-1" aria-hidden="true" tabindex="-1"></a>Hello world!</span> +<span id="cb581-2"><a href="#cb581-2" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb582"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb582-1"><a href="#cb582-1" aria-hidden="true" tabindex="-1"></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> @@ -10653,29 +10742,29 @@ contain the following text:</p> 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="cb582"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb582-1"><a href="#cb582-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb582-2"><a href="#cb582-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb582-3"><a href="#cb582-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb582-4"><a href="#cb582-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb582-5"><a href="#cb582-5" aria-hidden="true" tabindex="-1"></a> softLineBreak = {<span class="co">%</span></span> -<span id="cb582-6"><a href="#cb582-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb582-7"><a href="#cb582-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(A soft line break)}<span class="co">%</span></span> -<span id="cb582-8"><a href="#cb582-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb582-9"><a href="#cb582-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb582-10"><a href="#cb582-10" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb582-11"><a href="#cb582-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb582-12"><a href="#cb582-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb582-13"><a href="#cb582-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb582-14"><a href="#cb582-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb583"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb583-1"><a href="#cb583-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb583-2"><a href="#cb583-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb583-3"><a href="#cb583-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb583-4"><a href="#cb583-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb583-5"><a href="#cb583-5" aria-hidden="true" tabindex="-1"></a> softLineBreak = {<span class="co">%</span></span> +<span id="cb583-6"><a href="#cb583-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb583-7"><a href="#cb583-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(A soft line break)}<span class="co">%</span></span> +<span id="cb583-8"><a href="#cb583-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb583-9"><a href="#cb583-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb583-10"><a href="#cb583-10" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb583-11"><a href="#cb583-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb583-12"><a href="#cb583-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb583-13"><a href="#cb583-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb583-14"><a href="#cb583-14" aria-hidden="true" tabindex="-1"></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:</p> -<div class="sourceCode" id="cb583"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb583-1"><a href="#cb583-1" aria-hidden="true" tabindex="-1"></a>Hello world!</span> -<span id="cb583-2"><a href="#cb583-2" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb584"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb584-1"><a href="#cb584-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode md"><code class="sourceCode markdown"><span id="cb584-1"><a href="#cb584-1" aria-hidden="true" tabindex="-1"></a>Hello world!</span> +<span id="cb584-2"><a href="#cb584-2" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb585"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb585-1"><a href="#cb585-1" aria-hidden="true" tabindex="-1"></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> @@ -10689,15 +10778,15 @@ hard line break. The macro receives no arguments.</p> 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="cb585"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb585-1"><a href="#cb585-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb585-2"><a href="#cb585-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHardLineBreak</span>{<span class="co">%</span></span> -<span id="cb585-3"><a href="#cb585-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb585-4"><a href="#cb585-4" aria-hidden="true" tabindex="-1"></a> {<span class="fu">\it</span>(A hard line break)}<span class="co">%</span></span> -<span id="cb585-5"><a href="#cb585-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb585-6"><a href="#cb585-6" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb585-7"><a href="#cb585-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb585-8"><a href="#cb585-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<div class="sourceCode" id="cb586"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb586-1"><a href="#cb586-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb586-2"><a href="#cb586-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererHardLineBreak</span>{<span class="co">%</span></span> +<span id="cb586-3"><a href="#cb586-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb586-4"><a href="#cb586-4" aria-hidden="true" tabindex="-1"></a> {<span class="fu">\it</span>(A hard line break)}<span class="co">%</span></span> +<span id="cb586-5"><a href="#cb586-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb586-6"><a href="#cb586-6" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb586-7"><a href="#cb586-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb586-8"><a href="#cb586-8" aria-hidden="true" tabindex="-1"></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 line break. Due to @@ -10706,8 +10795,8 @@ processor, hard line breaks 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="cb586"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb586-1"><a href="#cb586-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb587"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb587-1"><a href="#cb587-1" aria-hidden="true" tabindex="-1"></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> @@ -10719,21 +10808,21 @@ contain the following text:</p> 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="cb587"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb587-1"><a href="#cb587-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb587-2"><a href="#cb587-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb587-3"><a href="#cb587-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb587-4"><a href="#cb587-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb587-5"><a href="#cb587-5" aria-hidden="true" tabindex="-1"></a> hardLineBreak = {<span class="co">%</span></span> -<span id="cb587-6"><a href="#cb587-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb587-7"><a href="#cb587-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(A hard line break)}<span class="co">%</span></span> -<span id="cb587-8"><a href="#cb587-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb587-9"><a href="#cb587-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb587-10"><a href="#cb587-10" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb587-11"><a href="#cb587-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb587-12"><a href="#cb587-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb587-13"><a href="#cb587-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> -<span id="cb587-14"><a href="#cb587-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">document</span>}</span></code></pre></div> +<div class="sourceCode" id="cb588"><pre +class="sourceCode tex"><code class="sourceCode latex"><span id="cb588-1"><a href="#cb588-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb588-2"><a href="#cb588-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb588-3"><a href="#cb588-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb588-4"><a href="#cb588-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb588-5"><a href="#cb588-5" aria-hidden="true" tabindex="-1"></a> hardLineBreak = {<span class="co">%</span></span> +<span id="cb588-6"><a href="#cb588-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb588-7"><a href="#cb588-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(A hard line break)}<span class="co">%</span></span> +<span id="cb588-8"><a href="#cb588-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb588-9"><a href="#cb588-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb588-10"><a href="#cb588-10" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb588-11"><a href="#cb588-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb588-12"><a href="#cb588-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb588-13"><a href="#cb588-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownInput</span>{example.md}</span> +<span id="cb588-14"><a href="#cb588-14" aria-hidden="true" tabindex="-1"></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 line break. Due to @@ -10742,8 +10831,8 @@ processor, hard line breaks 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="cb588"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb588-1"><a href="#cb588-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +<div class="sourceCode" id="cb589"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb589-1"><a href="#cb589-1" aria-hidden="true" tabindex="-1"></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> @@ -10761,21 +10850,21 @@ that can be used outside typesetting, and the title of the link.</p> 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="cb589"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb589-1"><a href="#cb589-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb589-2"><a href="#cb589-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb589-3"><a href="#cb589-3" aria-hidden="true" tabindex="-1"></a> #1 {<span class="fu">\tt</span>#2} titled {<span class="fu">\it</span>#4}<span class="co">%</span></span> -<span id="cb589-4"><a href="#cb589-4" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb589-5"><a href="#cb589-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb589-6"><a href="#cb589-6" aria-hidden="true" tabindex="-1"></a>Please visit [the link][ctan].</span> -<span id="cb589-7"><a href="#cb589-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb589-8"><a href="#cb589-8" aria-hidden="true" tabindex="-1"></a> [ctan]: https://ctan.org/</span> -<span id="cb589-9"><a href="#cb589-9" aria-hidden="true" tabindex="-1"></a> (the Comprehensive TeX Archive Network)</span> -<span id="cb589-10"><a href="#cb589-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb589-11"><a href="#cb589-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb590"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb590-1"><a href="#cb590-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb590-1"><a href="#cb590-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb590-2"><a href="#cb590-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb590-3"><a href="#cb590-3" aria-hidden="true" tabindex="-1"></a> #1 {<span class="fu">\tt</span>#2} titled {<span class="fu">\it</span>#4}<span class="co">%</span></span> +<span id="cb590-4"><a href="#cb590-4" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb590-5"><a href="#cb590-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb590-6"><a href="#cb590-6" aria-hidden="true" tabindex="-1"></a>Please visit [the link][ctan].</span> +<span id="cb590-7"><a href="#cb590-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb590-8"><a href="#cb590-8" aria-hidden="true" tabindex="-1"></a> [ctan]: https://ctan.org/</span> +<span id="cb590-9"><a href="#cb590-9" aria-hidden="true" tabindex="-1"></a> (the Comprehensive TeX Archive Network)</span> +<span id="cb590-10"><a href="#cb590-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb590-11"><a href="#cb590-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb591"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb591-1"><a href="#cb591-1" aria-hidden="true" tabindex="-1"></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> @@ -10787,27 +10876,27 @@ Archive Network</em>.</p> 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="cb591"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb591-1"><a href="#cb591-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb591-2"><a href="#cb591-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb591-3"><a href="#cb591-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb591-4"><a href="#cb591-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb591-5"><a href="#cb591-5" aria-hidden="true" tabindex="-1"></a> link = {<span class="co">%</span></span> -<span id="cb591-6"><a href="#cb591-6" aria-hidden="true" tabindex="-1"></a> #1 <span class="fu">\texttt</span>{#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span> -<span id="cb591-7"><a href="#cb591-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb591-8"><a href="#cb591-8" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb591-9"><a href="#cb591-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb591-10"><a href="#cb591-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb591-11"><a href="#cb591-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb591-12"><a href="#cb591-12" aria-hidden="true" tabindex="-1"></a>Please visit [the link][ctan].</span> -<span id="cb591-13"><a href="#cb591-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb591-14"><a href="#cb591-14" aria-hidden="true" tabindex="-1"></a> [ctan]: https://ctan.org/</span> -<span id="cb591-15"><a href="#cb591-15" aria-hidden="true" tabindex="-1"></a> (the Comprehensive TeX Archive Network)</span> -<span id="cb591-16"><a href="#cb591-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb591-17"><a href="#cb591-17" aria-hidden="true" tabindex="-1"></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="cb592"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb592-1"><a href="#cb592-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb592-1"><a href="#cb592-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb592-2"><a href="#cb592-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb592-3"><a href="#cb592-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb592-4"><a href="#cb592-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb592-5"><a href="#cb592-5" aria-hidden="true" tabindex="-1"></a> link = {<span class="co">%</span></span> +<span id="cb592-6"><a href="#cb592-6" aria-hidden="true" tabindex="-1"></a> #1 <span class="fu">\texttt</span>{#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span> +<span id="cb592-7"><a href="#cb592-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb592-8"><a href="#cb592-8" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb592-9"><a href="#cb592-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb592-10"><a href="#cb592-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb592-11"><a href="#cb592-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb592-12"><a href="#cb592-12" aria-hidden="true" tabindex="-1"></a>Please visit [the link][ctan].</span> +<span id="cb592-13"><a href="#cb592-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb592-14"><a href="#cb592-14" aria-hidden="true" tabindex="-1"></a> [ctan]: https://ctan.org/</span> +<span id="cb592-15"><a href="#cb592-15" aria-hidden="true" tabindex="-1"></a> (the Comprehensive TeX Archive Network)</span> +<span id="cb592-16"><a href="#cb592-16" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb592-17"><a href="#cb592-17" aria-hidden="true" tabindex="-1"></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="cb593"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb593-1"><a href="#cb593-1" aria-hidden="true" tabindex="-1"></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> @@ -10819,22 +10908,22 @@ Archive Network</em>.</p> 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="cb593"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb593-1"><a href="#cb593-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb593-2"><a href="#cb593-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span> -<span id="cb593-3"><a href="#cb593-3" aria-hidden="true" tabindex="-1"></a> #1 {<span class="fu">\tt</span>#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span> -<span id="cb593-4"><a href="#cb593-4" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb593-5"><a href="#cb593-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb593-6"><a href="#cb593-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb593-7"><a href="#cb593-7" aria-hidden="true" tabindex="-1"></a>Please visit [the link][ctan].</span> -<span id="cb593-8"><a href="#cb593-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb593-9"><a href="#cb593-9" aria-hidden="true" tabindex="-1"></a> [ctan]: https://ctan.org/</span> -<span id="cb593-10"><a href="#cb593-10" aria-hidden="true" tabindex="-1"></a> (the Comprehensive TeX Archive Network)</span> -<span id="cb593-11"><a href="#cb593-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb593-12"><a href="#cb593-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb594"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb594-1"><a href="#cb594-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb594-1"><a href="#cb594-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb594-2"><a href="#cb594-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererLink</span>#1#2#3#4{<span class="co">%</span></span> +<span id="cb594-3"><a href="#cb594-3" aria-hidden="true" tabindex="-1"></a> #1 {<span class="fu">\tt</span>#2} titled <span class="fu">\emph</span>{#4}<span class="co">%</span></span> +<span id="cb594-4"><a href="#cb594-4" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb594-5"><a href="#cb594-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb594-6"><a href="#cb594-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb594-7"><a href="#cb594-7" aria-hidden="true" tabindex="-1"></a>Please visit [the link][ctan].</span> +<span id="cb594-8"><a href="#cb594-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb594-9"><a href="#cb594-9" aria-hidden="true" tabindex="-1"></a> [ctan]: https://ctan.org/</span> +<span id="cb594-10"><a href="#cb594-10" aria-hidden="true" tabindex="-1"></a> (the Comprehensive TeX Archive Network)</span> +<span id="cb594-11"><a href="#cb594-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb594-12"><a href="#cb594-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb595"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb595-1"><a href="#cb595-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -10855,26 +10944,26 @@ hyperlink apply. The macros receive no arguments.</p> 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="cb595"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb595-1"><a href="#cb595-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb595-2"><a href="#cb595-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[linkAttributes]{<span class="ex">markdown</span>}</span> -<span id="cb595-3"><a href="#cb595-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb595-4"><a href="#cb595-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb595-5"><a href="#cb595-5" aria-hidden="true" tabindex="-1"></a> linkAttributeContextBegin = {(},</span> -<span id="cb595-6"><a href="#cb595-6" aria-hidden="true" tabindex="-1"></a> link = {#1},</span> -<span id="cb595-7"><a href="#cb595-7" aria-hidden="true" tabindex="-1"></a> linkAttributeContextEnd = {)},</span> -<span id="cb595-8"><a href="#cb595-8" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb595-9"><a href="#cb595-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb595-10"><a href="#cb595-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb595-11"><a href="#cb595-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb595-12"><a href="#cb595-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb595-13"><a href="#cb595-13" aria-hidden="true" tabindex="-1"></a>foo [bar](#bar){key=value} baz</span> -<span id="cb595-14"><a href="#cb595-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb595-15"><a href="#cb595-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb595-16"><a href="#cb595-16" aria-hidden="true" tabindex="-1"></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="cb596"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb596-1"><a href="#cb596-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb596-1"><a href="#cb596-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb596-2"><a href="#cb596-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[linkAttributes]{<span class="ex">markdown</span>}</span> +<span id="cb596-3"><a href="#cb596-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb596-4"><a href="#cb596-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb596-5"><a href="#cb596-5" aria-hidden="true" tabindex="-1"></a> linkAttributeContextBegin = {(},</span> +<span id="cb596-6"><a href="#cb596-6" aria-hidden="true" tabindex="-1"></a> link = {#1},</span> +<span id="cb596-7"><a href="#cb596-7" aria-hidden="true" tabindex="-1"></a> linkAttributeContextEnd = {)},</span> +<span id="cb596-8"><a href="#cb596-8" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb596-9"><a href="#cb596-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb596-10"><a href="#cb596-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb596-11"><a href="#cb596-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb596-12"><a href="#cb596-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb596-13"><a href="#cb596-13" aria-hidden="true" tabindex="-1"></a>foo [bar](#bar){key=value} baz</span> +<span id="cb596-14"><a href="#cb596-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb596-15"><a href="#cb596-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb596-16"><a href="#cb596-16" aria-hidden="true" tabindex="-1"></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="cb597"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb597-1"><a href="#cb597-1" aria-hidden="true" tabindex="-1"></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> @@ -10891,25 +10980,25 @@ corresponds to the marked text.</p> 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="cb597"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb597-1"><a href="#cb597-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb597-2"><a href="#cb597-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[mark]{<span class="ex">markdown</span>}</span> -<span id="cb597-3"><a href="#cb597-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soul</span>}</span> -<span id="cb597-4"><a href="#cb597-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb597-5"><a href="#cb597-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb597-6"><a href="#cb597-6" aria-hidden="true" tabindex="-1"></a> mark = {<span class="fu">\hl</span>{#1}},</span> -<span id="cb597-7"><a href="#cb597-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb597-8"><a href="#cb597-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb597-9"><a href="#cb597-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb597-10"><a href="#cb597-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb597-11"><a href="#cb597-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb597-12"><a href="#cb597-12" aria-hidden="true" tabindex="-1"></a>This ==is highlighted text.==</span> -<span id="cb597-13"><a href="#cb597-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb597-14"><a href="#cb597-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb597-15"><a href="#cb597-15" aria-hidden="true" tabindex="-1"></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="cb598"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb598-1"><a href="#cb598-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb598-1"><a href="#cb598-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb598-2"><a href="#cb598-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[mark]{<span class="ex">markdown</span>}</span> +<span id="cb598-3"><a href="#cb598-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soul</span>}</span> +<span id="cb598-4"><a href="#cb598-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb598-5"><a href="#cb598-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb598-6"><a href="#cb598-6" aria-hidden="true" tabindex="-1"></a> mark = {<span class="fu">\hl</span>{#1}},</span> +<span id="cb598-7"><a href="#cb598-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb598-8"><a href="#cb598-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb598-9"><a href="#cb598-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb598-10"><a href="#cb598-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb598-11"><a href="#cb598-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb598-12"><a href="#cb598-12" aria-hidden="true" tabindex="-1"></a>This ==is highlighted text.==</span> +<span id="cb598-13"><a href="#cb598-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb598-14"><a href="#cb598-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb598-15"><a href="#cb598-15" aria-hidden="true" tabindex="-1"></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="cb599"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb599-1"><a href="#cb599-1" aria-hidden="true" tabindex="-1"></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> @@ -10931,77 +11020,77 @@ account.</p> 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="cb599"><pre -class="sourceCode md"><code class="sourceCode markdown"><span id="cb599-1"><a href="#cb599-1" aria-hidden="true" tabindex="-1"></a>This is a *nested* markdown document.</span></code></pre></div> +<div class="sourceCode" id="cb600"><pre +class="sourceCode md"><code class="sourceCode markdown"><span id="cb600-1"><a href="#cb600-1" aria-hidden="true" tabindex="-1"></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="cb600"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb600-1"><a href="#cb600-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb600-2"><a href="#cb600-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> -<span id="cb600-3"><a href="#cb600-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb600-4"><a href="#cb600-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb600-5"><a href="#cb600-5" aria-hidden="true" tabindex="-1"></a> contentBlock = {<span class="co">%</span></span> -<span id="cb600-6"><a href="#cb600-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownInput</span>{#3}<span class="co">%</span></span> -<span id="cb600-7"><a href="#cb600-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-8"><a href="#cb600-8" aria-hidden="true" tabindex="-1"></a> documentBegin = {<span class="co">%</span></span> -<span id="cb600-9"><a href="#cb600-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-10"><a href="#cb600-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a document)}</span> -<span id="cb600-11"><a href="#cb600-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-12"><a href="#cb600-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb600-13"><a href="#cb600-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{snippet=first-nesting-level}<span class="co">%</span></span> -<span id="cb600-14"><a href="#cb600-14" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-15"><a href="#cb600-15" aria-hidden="true" tabindex="-1"></a> documentEnd = {<span class="co">%</span></span> -<span id="cb600-16"><a href="#cb600-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> -<span id="cb600-17"><a href="#cb600-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-18"><a href="#cb600-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a document)}</span> -<span id="cb600-19"><a href="#cb600-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-20"><a href="#cb600-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-21"><a href="#cb600-21" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-22"><a href="#cb600-22" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb600-23"><a href="#cb600-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetupSnippet</span>{first-nesting-level}{</span> -<span id="cb600-24"><a href="#cb600-24" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb600-25"><a href="#cb600-25" aria-hidden="true" tabindex="-1"></a> documentBegin = {</span> -<span id="cb600-26"><a href="#cb600-26" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-27"><a href="#cb600-27" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span> -<span id="cb600-28"><a href="#cb600-28" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-29"><a href="#cb600-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb600-30"><a href="#cb600-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{snippet=second-nesting-level-and-below}</span> -<span id="cb600-31"><a href="#cb600-31" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-32"><a href="#cb600-32" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-33"><a href="#cb600-33" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb600-34"><a href="#cb600-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetupSnippet</span>{second-nesting-level-and-below}{</span> -<span id="cb600-35"><a href="#cb600-35" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb600-36"><a href="#cb600-36" aria-hidden="true" tabindex="-1"></a> documentBegin = {</span> -<span id="cb600-37"><a href="#cb600-37" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-38"><a href="#cb600-38" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span> -<span id="cb600-39"><a href="#cb600-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-40"><a href="#cb600-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> -<span id="cb600-41"><a href="#cb600-41" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-42"><a href="#cb600-42" aria-hidden="true" tabindex="-1"></a> documentEnd = {</span> -<span id="cb600-43"><a href="#cb600-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> -<span id="cb600-44"><a href="#cb600-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-45"><a href="#cb600-45" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a nested document)}</span> -<span id="cb600-46"><a href="#cb600-46" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> -<span id="cb600-47"><a href="#cb600-47" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-48"><a href="#cb600-48" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb600-49"><a href="#cb600-49" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb600-50"><a href="#cb600-50" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb600-51"><a href="#cb600-51" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb600-52"><a href="#cb600-52" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> -<span id="cb600-53"><a href="#cb600-53" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb600-54"><a href="#cb600-54" aria-hidden="true" tabindex="-1"></a>/nested.md</span> -<span id="cb600-55"><a href="#cb600-55" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb600-56"><a href="#cb600-56" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> -<span id="cb600-57"><a href="#cb600-57" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb600-58"><a href="#cb600-58" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb600-59"><a href="#cb600-59" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb600-60"><a href="#cb600-60" aria-hidden="true" tabindex="-1"></a>Bar baz!</span> -<span id="cb600-61"><a href="#cb600-61" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb600-62"><a href="#cb600-62" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb600-63"><a href="#cb600-63" aria-hidden="true" tabindex="-1"></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="cb601"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb601-1"><a href="#cb601-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb601-1"><a href="#cb601-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb601-2"><a href="#cb601-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</span> +<span id="cb601-3"><a href="#cb601-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb601-4"><a href="#cb601-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb601-5"><a href="#cb601-5" aria-hidden="true" tabindex="-1"></a> contentBlock = {<span class="co">%</span></span> +<span id="cb601-6"><a href="#cb601-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownInput</span>{#3}<span class="co">%</span></span> +<span id="cb601-7"><a href="#cb601-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-8"><a href="#cb601-8" aria-hidden="true" tabindex="-1"></a> documentBegin = {<span class="co">%</span></span> +<span id="cb601-9"><a href="#cb601-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-10"><a href="#cb601-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a document)}</span> +<span id="cb601-11"><a href="#cb601-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-12"><a href="#cb601-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb601-13"><a href="#cb601-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{snippet=first-nesting-level}<span class="co">%</span></span> +<span id="cb601-14"><a href="#cb601-14" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-15"><a href="#cb601-15" aria-hidden="true" tabindex="-1"></a> documentEnd = {<span class="co">%</span></span> +<span id="cb601-16"><a href="#cb601-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> +<span id="cb601-17"><a href="#cb601-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-18"><a href="#cb601-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a document)}</span> +<span id="cb601-19"><a href="#cb601-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-20"><a href="#cb601-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-21"><a href="#cb601-21" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-22"><a href="#cb601-22" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb601-23"><a href="#cb601-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetupSnippet</span>{first-nesting-level}{</span> +<span id="cb601-24"><a href="#cb601-24" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb601-25"><a href="#cb601-25" aria-hidden="true" tabindex="-1"></a> documentBegin = {</span> +<span id="cb601-26"><a href="#cb601-26" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-27"><a href="#cb601-27" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span> +<span id="cb601-28"><a href="#cb601-28" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-29"><a href="#cb601-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb601-30"><a href="#cb601-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{snippet=second-nesting-level-and-below}</span> +<span id="cb601-31"><a href="#cb601-31" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-32"><a href="#cb601-32" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-33"><a href="#cb601-33" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb601-34"><a href="#cb601-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetupSnippet</span>{second-nesting-level-and-below}{</span> +<span id="cb601-35"><a href="#cb601-35" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb601-36"><a href="#cb601-36" aria-hidden="true" tabindex="-1"></a> documentBegin = {</span> +<span id="cb601-37"><a href="#cb601-37" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-38"><a href="#cb601-38" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The beginning of a nested document)}</span> +<span id="cb601-39"><a href="#cb601-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-40"><a href="#cb601-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\begingroup</span></span> +<span id="cb601-41"><a href="#cb601-41" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-42"><a href="#cb601-42" aria-hidden="true" tabindex="-1"></a> documentEnd = {</span> +<span id="cb601-43"><a href="#cb601-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\endgroup</span></span> +<span id="cb601-44"><a href="#cb601-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-45"><a href="#cb601-45" aria-hidden="true" tabindex="-1"></a> <span class="fu">\emph</span>{(The end of a nested document)}</span> +<span id="cb601-46"><a href="#cb601-46" aria-hidden="true" tabindex="-1"></a> <span class="fu">\par</span></span> +<span id="cb601-47"><a href="#cb601-47" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-48"><a href="#cb601-48" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb601-49"><a href="#cb601-49" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb601-50"><a href="#cb601-50" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb601-51"><a href="#cb601-51" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb601-52"><a href="#cb601-52" aria-hidden="true" tabindex="-1"></a>Hello *world*!</span> +<span id="cb601-53"><a href="#cb601-53" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb601-54"><a href="#cb601-54" aria-hidden="true" tabindex="-1"></a>/nested.md</span> +<span id="cb601-55"><a href="#cb601-55" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb601-56"><a href="#cb601-56" aria-hidden="true" tabindex="-1"></a>_Foo_ bar!</span> +<span id="cb601-57"><a href="#cb601-57" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb601-58"><a href="#cb601-58" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb601-59"><a href="#cb601-59" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb601-60"><a href="#cb601-60" aria-hidden="true" tabindex="-1"></a>Bar baz!</span> +<span id="cb601-61"><a href="#cb601-61" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb601-62"><a href="#cb601-62" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb601-63"><a href="#cb601-63" aria-hidden="true" tabindex="-1"></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="cb602"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb602-1"><a href="#cb602-1" aria-hidden="true" tabindex="-1"></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> @@ -11025,50 +11114,48 @@ non-breaking space.</p> 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="cb602"><pre -class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb602-1"><a href="#cb602-1" aria-hidden="true" tabindex="-1"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span> -<span id="cb602-2"><a href="#cb602-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">author</span> = "<span class="st">Knuth, Donald Ervin</span>",</span> -<span id="cb602-3"><a href="#cb602-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">title</span> = "<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>",</span> -<span id="cb602-4"><a href="#cb602-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">publisher</span> = "<span class="st">Addison-Wesley</span>",</span> -<span id="cb602-5"><a href="#cb602-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">year</span> = "<span class="st">1984</span>"</span> -<span id="cb602-6"><a href="#cb602-6" aria-hidden="true" tabindex="-1"></a>}</span></code></pre></div> +<div class="sourceCode" id="cb603"><pre +class="sourceCode bib"><code class="sourceCode bibtex"><span id="cb603-1"><a href="#cb603-1" aria-hidden="true" tabindex="-1"></a><span class="va">@book</span>{<span class="ot">knuth:tex</span>,</span> +<span id="cb603-2"><a href="#cb603-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">author</span> = "<span class="st">Knuth, Donald Ervin</span>",</span> +<span id="cb603-3"><a href="#cb603-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">title</span> = "<span class="st">The </span><span class="ch">\TeX</span><span class="st"> book, volume A of Computers and typesetting</span>",</span> +<span id="cb603-4"><a href="#cb603-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">publisher</span> = "<span class="st">Addison-Wesley</span>",</span> +<span id="cb603-5"><a href="#cb603-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">year</span> = "<span class="st">1984</span>"</span> +<span id="cb603-6"><a href="#cb603-6" aria-hidden="true" tabindex="-1"></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="cb603"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb603-1"><a href="#cb603-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb603-2"><a href="#cb603-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> -<span id="cb603-3"><a href="#cb603-3" aria-hidden="true" tabindex="-1"></a> citations,</span> -<span id="cb603-4"><a href="#cb603-4" aria-hidden="true" tabindex="-1"></a> citationNbsps,</span> -<span id="cb603-5"><a href="#cb603-5" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span> -<span id="cb603-6"><a href="#cb603-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb603-7"><a href="#cb603-7" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb603-8"><a href="#cb603-8" aria-hidden="true" tabindex="-1"></a> nbsp = {<span class="ss">$</span><span class="sc">\cdot</span><span class="ss">$</span>},</span> -<span id="cb603-9"><a href="#cb603-9" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb603-10"><a href="#cb603-10" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb603-11"><a href="#cb603-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb603-12"><a href="#cb603-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb603-13"><a href="#cb603-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb603-14"><a href="#cb603-14" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span> -<span id="cb603-15"><a href="#cb603-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb603-16"><a href="#cb603-16" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb603-17"><a href="#cb603-17" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliographystyle</span>{<span class="ex">plain</span>}</span> -<span id="cb603-18"><a href="#cb603-18" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliography</span>{<span class="ex">document.bib</span>}</span> -<span id="cb603-19"><a href="#cb603-19" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb603-20"><a href="#cb603-20" aria-hidden="true" tabindex="-1"></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="cb604"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb604-1"><a href="#cb604-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb604-2"><a href="#cb604-2" aria-hidden="true" tabindex="-1"></a><span class="ex">bibtex</span> document.aux</span> -<span id="cb604-3"><a href="#cb604-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> -<span id="cb604-4"><a href="#cb604-4" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb604-1"><a href="#cb604-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb604-2"><a href="#cb604-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> +<span id="cb604-3"><a href="#cb604-3" aria-hidden="true" tabindex="-1"></a> citations,</span> +<span id="cb604-4"><a href="#cb604-4" aria-hidden="true" tabindex="-1"></a> citationNbsps,</span> +<span id="cb604-5"><a href="#cb604-5" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span> +<span id="cb604-6"><a href="#cb604-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb604-7"><a href="#cb604-7" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb604-8"><a href="#cb604-8" aria-hidden="true" tabindex="-1"></a> nbsp = {<span class="ss">$</span><span class="sc">\cdot</span><span class="ss">$</span>},</span> +<span id="cb604-9"><a href="#cb604-9" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb604-10"><a href="#cb604-10" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb604-11"><a href="#cb604-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb604-12"><a href="#cb604-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb604-13"><a href="#cb604-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb604-14"><a href="#cb604-14" aria-hidden="true" tabindex="-1"></a>The TeXbook [@knuth:tex, p. 123 and 130] is good.</span> +<span id="cb604-15"><a href="#cb604-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb604-16"><a href="#cb604-16" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb604-17"><a href="#cb604-17" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliographystyle</span>{<span class="ex">plain</span>}</span> +<span id="cb604-18"><a href="#cb604-18" aria-hidden="true" tabindex="-1"></a><span class="bu">\bibliography</span>{<span class="ex">document.bib</span>}</span> +<span id="cb604-19"><a href="#cb604-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb604-20"><a href="#cb604-20" aria-hidden="true" tabindex="-1"></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="cb605"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb605-1"><a href="#cb605-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb605-2"><a href="#cb605-2" aria-hidden="true" tabindex="-1"></a><span class="ex">bibtex</span> document.aux</span> +<span id="cb605-3"><a href="#cb605-3" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span> +<span id="cb605-4"><a href="#cb605-4" aria-hidden="true" tabindex="-1"></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><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 +<p>[1] Donald Ervin Knuth. <em>The TeXbook, volume A of Computers and typesetting.</em> Addison-Wesley, 1984.</p> </blockquote> <h4 data-number="2.3.1.29" id="note-renderer"><span @@ -11081,21 +11168,21 @@ receives a single argument that corresponds to the note text.</p> 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="cb605"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb605-1"><a href="#cb605-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb605-2"><a href="#cb605-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionNotes</span>{true}</span> -<span id="cb605-3"><a href="#cb605-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererNote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span> -<span id="cb605-4"><a href="#cb605-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb605-5"><a href="#cb605-5" aria-hidden="true" tabindex="-1"></a>This is some text[^1] and this is some other text[^2].</span> -<span id="cb605-6"><a href="#cb605-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb605-7"><a href="#cb605-7" aria-hidden="true" tabindex="-1"></a> [^1]: this is a note</span> -<span id="cb605-8"><a href="#cb605-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb605-9"><a href="#cb605-9" aria-hidden="true" tabindex="-1"></a> [^2]: this is some other note</span> -<span id="cb605-10"><a href="#cb605-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb605-11"><a href="#cb605-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb606"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb606-1"><a href="#cb606-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb606-1"><a href="#cb606-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb606-2"><a href="#cb606-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionNotes</span>{true}</span> +<span id="cb606-3"><a href="#cb606-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererNote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span> +<span id="cb606-4"><a href="#cb606-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb606-5"><a href="#cb606-5" aria-hidden="true" tabindex="-1"></a>This is some text[^1] and this is some other text[^2].</span> +<span id="cb606-6"><a href="#cb606-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb606-7"><a href="#cb606-7" aria-hidden="true" tabindex="-1"></a> [^1]: this is a note</span> +<span id="cb606-8"><a href="#cb606-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb606-9"><a href="#cb606-9" aria-hidden="true" tabindex="-1"></a> [^2]: this is some other note</span> +<span id="cb606-10"><a href="#cb606-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb606-11"><a href="#cb606-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb607"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb607-1"><a href="#cb607-1" aria-hidden="true" tabindex="-1"></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> @@ -11106,26 +11193,26 @@ contain the following text:</p> 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="cb607"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb607-1"><a href="#cb607-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb607-2"><a href="#cb607-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[notes]{<span class="ex">markdown</span>}</span> -<span id="cb607-3"><a href="#cb607-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb607-4"><a href="#cb607-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb607-5"><a href="#cb607-5" aria-hidden="true" tabindex="-1"></a> note = { (and <span class="fu">\MakeLowercase</span>{#1})},</span> -<span id="cb607-6"><a href="#cb607-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb607-7"><a href="#cb607-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb607-8"><a href="#cb607-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb607-9"><a href="#cb607-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb607-10"><a href="#cb607-10" aria-hidden="true" tabindex="-1"></a>This is some text[^1] and this is some other text[^2].</span> -<span id="cb607-11"><a href="#cb607-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb607-12"><a href="#cb607-12" aria-hidden="true" tabindex="-1"></a> [^1]: this is a note</span> -<span id="cb607-13"><a href="#cb607-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb607-14"><a href="#cb607-14" aria-hidden="true" tabindex="-1"></a> [^2]: this is some other note</span> -<span id="cb607-15"><a href="#cb607-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb607-16"><a href="#cb607-16" aria-hidden="true" tabindex="-1"></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="cb608"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb608-1"><a href="#cb608-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb608-1"><a href="#cb608-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb608-2"><a href="#cb608-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[notes]{<span class="ex">markdown</span>}</span> +<span id="cb608-3"><a href="#cb608-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb608-4"><a href="#cb608-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb608-5"><a href="#cb608-5" aria-hidden="true" tabindex="-1"></a> note = { (and <span class="fu">\MakeLowercase</span>{#1})},</span> +<span id="cb608-6"><a href="#cb608-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb608-7"><a href="#cb608-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb608-8"><a href="#cb608-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb608-9"><a href="#cb608-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb608-10"><a href="#cb608-10" aria-hidden="true" tabindex="-1"></a>This is some text[^1] and this is some other text[^2].</span> +<span id="cb608-11"><a href="#cb608-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb608-12"><a href="#cb608-12" aria-hidden="true" tabindex="-1"></a> [^1]: this is a note</span> +<span id="cb608-13"><a href="#cb608-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb608-14"><a href="#cb608-14" aria-hidden="true" tabindex="-1"></a> [^2]: this is some other note</span> +<span id="cb608-15"><a href="#cb608-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb608-16"><a href="#cb608-16" aria-hidden="true" tabindex="-1"></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="cb609"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb609-1"><a href="#cb609-1" aria-hidden="true" tabindex="-1"></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> @@ -11136,22 +11223,22 @@ contain the following text:</p> 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="cb609"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb609-1"><a href="#cb609-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb609-2"><a href="#cb609-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[notes = yes]</span> -<span id="cb609-3"><a href="#cb609-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererNote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span> -<span id="cb609-4"><a href="#cb609-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb609-5"><a href="#cb609-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb609-6"><a href="#cb609-6" aria-hidden="true" tabindex="-1"></a>This is some text[^1] and this is some other text[^2].</span> -<span id="cb609-7"><a href="#cb609-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb609-8"><a href="#cb609-8" aria-hidden="true" tabindex="-1"></a> [^1]: this is a note</span> -<span id="cb609-9"><a href="#cb609-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb609-10"><a href="#cb609-10" aria-hidden="true" tabindex="-1"></a> [^2]: this is some other note</span> -<span id="cb609-11"><a href="#cb609-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb609-12"><a href="#cb609-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb610"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb610-1"><a href="#cb610-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb610-1"><a href="#cb610-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb610-2"><a href="#cb610-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[notes = yes]</span> +<span id="cb610-3"><a href="#cb610-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererNote</span>#1{ (and <span class="fu">\lowercase</span>{#1})}</span> +<span id="cb610-4"><a href="#cb610-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb610-5"><a href="#cb610-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb610-6"><a href="#cb610-6" aria-hidden="true" tabindex="-1"></a>This is some text[^1] and this is some other text[^2].</span> +<span id="cb610-7"><a href="#cb610-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb610-8"><a href="#cb610-8" aria-hidden="true" tabindex="-1"></a> [^1]: this is a note</span> +<span id="cb610-9"><a href="#cb610-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb610-10"><a href="#cb610-10" aria-hidden="true" tabindex="-1"></a> [^2]: this is some other note</span> +<span id="cb610-11"><a href="#cb610-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb610-12"><a href="#cb610-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb611"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb611-1"><a href="#cb611-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -11247,70 +11334,70 @@ receives no arguments.</p> 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="cb611"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb611-1"><a href="#cb611-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb611-2"><a href="#cb611-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span> -<span id="cb611-3"><a href="#cb611-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStartNumber</span>{true}</span> -<span id="cb611-4"><a href="#cb611-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-5"><a href="#cb611-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> -<span id="cb611-6"><a href="#cb611-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span> -<span id="cb611-7"><a href="#cb611-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> -<span id="cb611-8"><a href="#cb611-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> -<span id="cb611-9"><a href="#cb611-9" aria-hidden="true" tabindex="-1"></a> the first</span> -<span id="cb611-10"><a href="#cb611-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb611-11"><a href="#cb611-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> -<span id="cb611-12"><a href="#cb611-12" aria-hidden="true" tabindex="-1"></a> , the second</span> -<span id="cb611-13"><a href="#cb611-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb611-14"><a href="#cb611-14" aria-hidden="true" tabindex="-1"></a> , and the third</span> -<span id="cb611-15"><a href="#cb611-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb611-16"><a href="#cb611-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb611-17"><a href="#cb611-17" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb611-18"><a href="#cb611-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span> -<span id="cb611-19"><a href="#cb611-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span> -<span id="cb611-20"><a href="#cb611-20" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-21"><a href="#cb611-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb611-22"><a href="#cb611-22" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> -<span id="cb611-23"><a href="#cb611-23" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-24"><a href="#cb611-24" aria-hidden="true" tabindex="-1"></a>1. item</span> -<span id="cb611-25"><a href="#cb611-25" aria-hidden="true" tabindex="-1"></a>2. item</span> -<span id="cb611-26"><a href="#cb611-26" aria-hidden="true" tabindex="-1"></a>3. item</span> -<span id="cb611-27"><a href="#cb611-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb611-28"><a href="#cb611-28" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-29"><a href="#cb611-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb611-30"><a href="#cb611-30" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> -<span id="cb611-31"><a href="#cb611-31" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb611-32"><a href="#cb611-32" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb611-33"><a href="#cb611-33" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBegin</span>{}</span> -<span id="cb611-34"><a href="#cb611-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> -<span id="cb611-35"><a href="#cb611-35" aria-hidden="true" tabindex="-1"></a> #1.<span class="fu">\kern</span> 0.5em<span class="co">%</span></span> -<span id="cb611-36"><a href="#cb611-36" aria-hidden="true" tabindex="-1"></a> This is the</span> -<span id="cb611-37"><a href="#cb611-37" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> -<span id="cb611-38"><a href="#cb611-38" aria-hidden="true" tabindex="-1"></a> first</span> -<span id="cb611-39"><a href="#cb611-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb611-40"><a href="#cb611-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> -<span id="cb611-41"><a href="#cb611-41" aria-hidden="true" tabindex="-1"></a> second</span> -<span id="cb611-42"><a href="#cb611-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb611-43"><a href="#cb611-43" aria-hidden="true" tabindex="-1"></a> third</span> -<span id="cb611-44"><a href="#cb611-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb611-45"><a href="#cb611-45" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb611-46"><a href="#cb611-46" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb611-47"><a href="#cb611-47" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span> -<span id="cb611-48"><a href="#cb611-48" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEnd</span>{}</span> -<span id="cb611-49"><a href="#cb611-49" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-50"><a href="#cb611-50" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb611-51"><a href="#cb611-51" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> -<span id="cb611-52"><a href="#cb611-52" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-53"><a href="#cb611-53" aria-hidden="true" tabindex="-1"></a>1. item</span> -<span id="cb611-54"><a href="#cb611-54" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-55"><a href="#cb611-55" aria-hidden="true" tabindex="-1"></a>2. item</span> -<span id="cb611-56"><a href="#cb611-56" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-57"><a href="#cb611-57" aria-hidden="true" tabindex="-1"></a>3. item</span> -<span id="cb611-58"><a href="#cb611-58" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb611-59"><a href="#cb611-59" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb611-60"><a href="#cb611-60" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb612"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb612-1"><a href="#cb612-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb612-1"><a href="#cb612-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb612-2"><a href="#cb612-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTightLists</span>{true}</span> +<span id="cb612-3"><a href="#cb612-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStartNumber</span>{true}</span> +<span id="cb612-4"><a href="#cb612-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-5"><a href="#cb612-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> +<span id="cb612-6"><a href="#cb612-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span> +<span id="cb612-7"><a href="#cb612-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> +<span id="cb612-8"><a href="#cb612-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> +<span id="cb612-9"><a href="#cb612-9" aria-hidden="true" tabindex="-1"></a> the first</span> +<span id="cb612-10"><a href="#cb612-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb612-11"><a href="#cb612-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> +<span id="cb612-12"><a href="#cb612-12" aria-hidden="true" tabindex="-1"></a> , the second</span> +<span id="cb612-13"><a href="#cb612-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb612-14"><a href="#cb612-14" aria-hidden="true" tabindex="-1"></a> , and the third</span> +<span id="cb612-15"><a href="#cb612-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb612-16"><a href="#cb612-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb612-17"><a href="#cb612-17" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb612-18"><a href="#cb612-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span> +<span id="cb612-19"><a href="#cb612-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span> +<span id="cb612-20"><a href="#cb612-20" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-21"><a href="#cb612-21" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb612-22"><a href="#cb612-22" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> +<span id="cb612-23"><a href="#cb612-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-24"><a href="#cb612-24" aria-hidden="true" tabindex="-1"></a>1. item</span> +<span id="cb612-25"><a href="#cb612-25" aria-hidden="true" tabindex="-1"></a>2. item</span> +<span id="cb612-26"><a href="#cb612-26" aria-hidden="true" tabindex="-1"></a>3. item</span> +<span id="cb612-27"><a href="#cb612-27" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb612-28"><a href="#cb612-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-29"><a href="#cb612-29" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb612-30"><a href="#cb612-30" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> +<span id="cb612-31"><a href="#cb612-31" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb612-32"><a href="#cb612-32" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb612-33"><a href="#cb612-33" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBegin</span>{}</span> +<span id="cb612-34"><a href="#cb612-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> +<span id="cb612-35"><a href="#cb612-35" aria-hidden="true" tabindex="-1"></a> #1.<span class="fu">\kern</span> 0.5em<span class="co">%</span></span> +<span id="cb612-36"><a href="#cb612-36" aria-hidden="true" tabindex="-1"></a> This is the</span> +<span id="cb612-37"><a href="#cb612-37" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> +<span id="cb612-38"><a href="#cb612-38" aria-hidden="true" tabindex="-1"></a> first</span> +<span id="cb612-39"><a href="#cb612-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb612-40"><a href="#cb612-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> +<span id="cb612-41"><a href="#cb612-41" aria-hidden="true" tabindex="-1"></a> second</span> +<span id="cb612-42"><a href="#cb612-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb612-43"><a href="#cb612-43" aria-hidden="true" tabindex="-1"></a> third</span> +<span id="cb612-44"><a href="#cb612-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb612-45"><a href="#cb612-45" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb612-46"><a href="#cb612-46" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb612-47"><a href="#cb612-47" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span> +<span id="cb612-48"><a href="#cb612-48" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEnd</span>{}</span> +<span id="cb612-49"><a href="#cb612-49" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-50"><a href="#cb612-50" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb612-51"><a href="#cb612-51" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> +<span id="cb612-52"><a href="#cb612-52" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-53"><a href="#cb612-53" aria-hidden="true" tabindex="-1"></a>1. item</span> +<span id="cb612-54"><a href="#cb612-54" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-55"><a href="#cb612-55" aria-hidden="true" tabindex="-1"></a>2. item</span> +<span id="cb612-56"><a href="#cb612-56" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-57"><a href="#cb612-57" aria-hidden="true" tabindex="-1"></a>3. item</span> +<span id="cb612-58"><a href="#cb612-58" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb612-59"><a href="#cb612-59" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb612-60"><a href="#cb612-60" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb613"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb613-1"><a href="#cb613-1" aria-hidden="true" tabindex="-1"></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> @@ -11327,73 +11414,73 @@ item).</p> 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="cb613"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb613-1"><a href="#cb613-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb613-2"><a href="#cb613-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[tightLists, startNumber]{<span class="ex">markdown</span>}</span> -<span id="cb613-3"><a href="#cb613-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb613-4"><a href="#cb613-4" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-5"><a href="#cb613-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb613-6"><a href="#cb613-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb613-7"><a href="#cb613-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {},</span> -<span id="cb613-8"><a href="#cb613-8" aria-hidden="true" tabindex="-1"></a> olBeginTight = { (},</span> -<span id="cb613-9"><a href="#cb613-9" aria-hidden="true" tabindex="-1"></a> olItemWithNumber = {<span class="co">%</span></span> -<span id="cb613-10"><a href="#cb613-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> -<span id="cb613-11"><a href="#cb613-11" aria-hidden="true" tabindex="-1"></a> the first</span> -<span id="cb613-12"><a href="#cb613-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb613-13"><a href="#cb613-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> -<span id="cb613-14"><a href="#cb613-14" aria-hidden="true" tabindex="-1"></a> , the second</span> -<span id="cb613-15"><a href="#cb613-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb613-16"><a href="#cb613-16" aria-hidden="true" tabindex="-1"></a> , and the third</span> -<span id="cb613-17"><a href="#cb613-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb613-18"><a href="#cb613-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb613-19"><a href="#cb613-19" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb613-20"><a href="#cb613-20" aria-hidden="true" tabindex="-1"></a> olItemEnd = {},</span> -<span id="cb613-21"><a href="#cb613-21" aria-hidden="true" tabindex="-1"></a> olEndTight = {).},</span> -<span id="cb613-22"><a href="#cb613-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb613-23"><a href="#cb613-23" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb613-24"><a href="#cb613-24" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> -<span id="cb613-25"><a href="#cb613-25" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-26"><a href="#cb613-26" aria-hidden="true" tabindex="-1"></a>1. item</span> -<span id="cb613-27"><a href="#cb613-27" aria-hidden="true" tabindex="-1"></a>2. item</span> -<span id="cb613-28"><a href="#cb613-28" aria-hidden="true" tabindex="-1"></a>3. item</span> -<span id="cb613-29"><a href="#cb613-29" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb613-30"><a href="#cb613-30" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-31"><a href="#cb613-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb613-32"><a href="#cb613-32" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb613-33"><a href="#cb613-33" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> -<span id="cb613-34"><a href="#cb613-34" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> -<span id="cb613-35"><a href="#cb613-35" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb613-36"><a href="#cb613-36" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb613-37"><a href="#cb613-37" aria-hidden="true" tabindex="-1"></a> olBeginTight = {<span class="kw">\begin</span>{<span class="ex">enumerate</span>}},</span> -<span id="cb613-38"><a href="#cb613-38" aria-hidden="true" tabindex="-1"></a> olItemWithNumber = {<span class="co">%</span></span> -<span id="cb613-39"><a href="#cb613-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\item</span> This is the</span> -<span id="cb613-40"><a href="#cb613-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> -<span id="cb613-41"><a href="#cb613-41" aria-hidden="true" tabindex="-1"></a> first</span> -<span id="cb613-42"><a href="#cb613-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb613-43"><a href="#cb613-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> -<span id="cb613-44"><a href="#cb613-44" aria-hidden="true" tabindex="-1"></a> second</span> -<span id="cb613-45"><a href="#cb613-45" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb613-46"><a href="#cb613-46" aria-hidden="true" tabindex="-1"></a> third</span> -<span id="cb613-47"><a href="#cb613-47" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb613-48"><a href="#cb613-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb613-49"><a href="#cb613-49" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb613-50"><a href="#cb613-50" aria-hidden="true" tabindex="-1"></a> olItemEnd = {.},</span> -<span id="cb613-51"><a href="#cb613-51" aria-hidden="true" tabindex="-1"></a> olEnd = {<span class="kw">\end</span>{<span class="ex">enumerate</span>}},</span> -<span id="cb613-52"><a href="#cb613-52" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb613-53"><a href="#cb613-53" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb613-54"><a href="#cb613-54" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> -<span id="cb613-55"><a href="#cb613-55" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-56"><a href="#cb613-56" aria-hidden="true" tabindex="-1"></a>1. item</span> -<span id="cb613-57"><a href="#cb613-57" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-58"><a href="#cb613-58" aria-hidden="true" tabindex="-1"></a>2. item</span> -<span id="cb613-59"><a href="#cb613-59" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-60"><a href="#cb613-60" aria-hidden="true" tabindex="-1"></a>3. item</span> -<span id="cb613-61"><a href="#cb613-61" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb613-62"><a href="#cb613-62" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb613-63"><a href="#cb613-63" aria-hidden="true" tabindex="-1"></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="cb614"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb614-1"><a href="#cb614-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb614-1"><a href="#cb614-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb614-2"><a href="#cb614-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[tightLists, startNumber]{<span class="ex">markdown</span>}</span> +<span id="cb614-3"><a href="#cb614-3" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb614-4"><a href="#cb614-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-5"><a href="#cb614-5" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb614-6"><a href="#cb614-6" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb614-7"><a href="#cb614-7" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {},</span> +<span id="cb614-8"><a href="#cb614-8" aria-hidden="true" tabindex="-1"></a> olBeginTight = { (},</span> +<span id="cb614-9"><a href="#cb614-9" aria-hidden="true" tabindex="-1"></a> olItemWithNumber = {<span class="co">%</span></span> +<span id="cb614-10"><a href="#cb614-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> +<span id="cb614-11"><a href="#cb614-11" aria-hidden="true" tabindex="-1"></a> the first</span> +<span id="cb614-12"><a href="#cb614-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb614-13"><a href="#cb614-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> +<span id="cb614-14"><a href="#cb614-14" aria-hidden="true" tabindex="-1"></a> , the second</span> +<span id="cb614-15"><a href="#cb614-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb614-16"><a href="#cb614-16" aria-hidden="true" tabindex="-1"></a> , and the third</span> +<span id="cb614-17"><a href="#cb614-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb614-18"><a href="#cb614-18" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb614-19"><a href="#cb614-19" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb614-20"><a href="#cb614-20" aria-hidden="true" tabindex="-1"></a> olItemEnd = {},</span> +<span id="cb614-21"><a href="#cb614-21" aria-hidden="true" tabindex="-1"></a> olEndTight = {).},</span> +<span id="cb614-22"><a href="#cb614-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb614-23"><a href="#cb614-23" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb614-24"><a href="#cb614-24" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> +<span id="cb614-25"><a href="#cb614-25" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-26"><a href="#cb614-26" aria-hidden="true" tabindex="-1"></a>1. item</span> +<span id="cb614-27"><a href="#cb614-27" aria-hidden="true" tabindex="-1"></a>2. item</span> +<span id="cb614-28"><a href="#cb614-28" aria-hidden="true" tabindex="-1"></a>3. item</span> +<span id="cb614-29"><a href="#cb614-29" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb614-30"><a href="#cb614-30" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-31"><a href="#cb614-31" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb614-32"><a href="#cb614-32" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb614-33"><a href="#cb614-33" aria-hidden="true" tabindex="-1"></a> interblockSeparator = {<span class="co">%</span></span> +<span id="cb614-34"><a href="#cb614-34" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> +<span id="cb614-35"><a href="#cb614-35" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb614-36"><a href="#cb614-36" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb614-37"><a href="#cb614-37" aria-hidden="true" tabindex="-1"></a> olBeginTight = {<span class="kw">\begin</span>{<span class="ex">enumerate</span>}},</span> +<span id="cb614-38"><a href="#cb614-38" aria-hidden="true" tabindex="-1"></a> olItemWithNumber = {<span class="co">%</span></span> +<span id="cb614-39"><a href="#cb614-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\item</span> This is the</span> +<span id="cb614-40"><a href="#cb614-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> +<span id="cb614-41"><a href="#cb614-41" aria-hidden="true" tabindex="-1"></a> first</span> +<span id="cb614-42"><a href="#cb614-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb614-43"><a href="#cb614-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> +<span id="cb614-44"><a href="#cb614-44" aria-hidden="true" tabindex="-1"></a> second</span> +<span id="cb614-45"><a href="#cb614-45" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb614-46"><a href="#cb614-46" aria-hidden="true" tabindex="-1"></a> third</span> +<span id="cb614-47"><a href="#cb614-47" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb614-48"><a href="#cb614-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb614-49"><a href="#cb614-49" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb614-50"><a href="#cb614-50" aria-hidden="true" tabindex="-1"></a> olItemEnd = {.},</span> +<span id="cb614-51"><a href="#cb614-51" aria-hidden="true" tabindex="-1"></a> olEnd = {<span class="kw">\end</span>{<span class="ex">enumerate</span>}},</span> +<span id="cb614-52"><a href="#cb614-52" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb614-53"><a href="#cb614-53" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb614-54"><a href="#cb614-54" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> +<span id="cb614-55"><a href="#cb614-55" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-56"><a href="#cb614-56" aria-hidden="true" tabindex="-1"></a>1. item</span> +<span id="cb614-57"><a href="#cb614-57" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-58"><a href="#cb614-58" aria-hidden="true" tabindex="-1"></a>2. item</span> +<span id="cb614-59"><a href="#cb614-59" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-60"><a href="#cb614-60" aria-hidden="true" tabindex="-1"></a>3. item</span> +<span id="cb614-61"><a href="#cb614-61" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb614-62"><a href="#cb614-62" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb614-63"><a href="#cb614-63" aria-hidden="true" tabindex="-1"></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="cb615"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb615-1"><a href="#cb615-1" aria-hidden="true" tabindex="-1"></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> @@ -11410,74 +11497,74 @@ item).</p> 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="cb615"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb615-1"><a href="#cb615-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb615-2"><a href="#cb615-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> -<span id="cb615-3"><a href="#cb615-3" aria-hidden="true" tabindex="-1"></a> [</span> -<span id="cb615-4"><a href="#cb615-4" aria-hidden="true" tabindex="-1"></a> tightLists = yes,</span> -<span id="cb615-5"><a href="#cb615-5" aria-hidden="true" tabindex="-1"></a> startNumber = yes,</span> -<span id="cb615-6"><a href="#cb615-6" aria-hidden="true" tabindex="-1"></a> ]</span> -<span id="cb615-7"><a href="#cb615-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb615-8"><a href="#cb615-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-9"><a href="#cb615-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> -<span id="cb615-10"><a href="#cb615-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span> -<span id="cb615-11"><a href="#cb615-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> -<span id="cb615-12"><a href="#cb615-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> -<span id="cb615-13"><a href="#cb615-13" aria-hidden="true" tabindex="-1"></a> the first</span> -<span id="cb615-14"><a href="#cb615-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb615-15"><a href="#cb615-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> -<span id="cb615-16"><a href="#cb615-16" aria-hidden="true" tabindex="-1"></a> , the second</span> -<span id="cb615-17"><a href="#cb615-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb615-18"><a href="#cb615-18" aria-hidden="true" tabindex="-1"></a> , and the third</span> -<span id="cb615-19"><a href="#cb615-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb615-20"><a href="#cb615-20" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb615-21"><a href="#cb615-21" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb615-22"><a href="#cb615-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span> -<span id="cb615-23"><a href="#cb615-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span> -<span id="cb615-24"><a href="#cb615-24" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-25"><a href="#cb615-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb615-26"><a href="#cb615-26" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> -<span id="cb615-27"><a href="#cb615-27" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-28"><a href="#cb615-28" aria-hidden="true" tabindex="-1"></a>1. item</span> -<span id="cb615-29"><a href="#cb615-29" aria-hidden="true" tabindex="-1"></a>2. item</span> -<span id="cb615-30"><a href="#cb615-30" aria-hidden="true" tabindex="-1"></a>3. item</span> -<span id="cb615-31"><a href="#cb615-31" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb615-32"><a href="#cb615-32" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-33"><a href="#cb615-33" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> -<span id="cb615-34"><a href="#cb615-34" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> -<span id="cb615-35"><a href="#cb615-35" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> -<span id="cb615-36"><a href="#cb615-36" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb615-37"><a href="#cb615-37" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBegin</span>{<span class="fu">\startitemize</span>}</span> -<span id="cb615-38"><a href="#cb615-38" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> -<span id="cb615-39"><a href="#cb615-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\sym</span>{#1.}</span> -<span id="cb615-40"><a href="#cb615-40" aria-hidden="true" tabindex="-1"></a> This is the</span> -<span id="cb615-41"><a href="#cb615-41" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> -<span id="cb615-42"><a href="#cb615-42" aria-hidden="true" tabindex="-1"></a> first</span> -<span id="cb615-43"><a href="#cb615-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb615-44"><a href="#cb615-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> -<span id="cb615-45"><a href="#cb615-45" aria-hidden="true" tabindex="-1"></a> second</span> -<span id="cb615-46"><a href="#cb615-46" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb615-47"><a href="#cb615-47" aria-hidden="true" tabindex="-1"></a> third</span> -<span id="cb615-48"><a href="#cb615-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb615-49"><a href="#cb615-49" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb615-50"><a href="#cb615-50" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb615-51"><a href="#cb615-51" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span> -<span id="cb615-52"><a href="#cb615-52" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEnd</span>{<span class="fu">\stopitemize</span>}</span> -<span id="cb615-53"><a href="#cb615-53" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-54"><a href="#cb615-54" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb615-55"><a href="#cb615-55" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> -<span id="cb615-56"><a href="#cb615-56" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-57"><a href="#cb615-57" aria-hidden="true" tabindex="-1"></a>1. item</span> -<span id="cb615-58"><a href="#cb615-58" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-59"><a href="#cb615-59" aria-hidden="true" tabindex="-1"></a>2. item</span> -<span id="cb615-60"><a href="#cb615-60" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-61"><a href="#cb615-61" aria-hidden="true" tabindex="-1"></a>3. item</span> -<span id="cb615-62"><a href="#cb615-62" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb615-63"><a href="#cb615-63" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb615-64"><a href="#cb615-64" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb616"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb616-1"><a href="#cb616-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb616-1"><a href="#cb616-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb616-2"><a href="#cb616-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span></span> +<span id="cb616-3"><a href="#cb616-3" aria-hidden="true" tabindex="-1"></a> [</span> +<span id="cb616-4"><a href="#cb616-4" aria-hidden="true" tabindex="-1"></a> tightLists = yes,</span> +<span id="cb616-5"><a href="#cb616-5" aria-hidden="true" tabindex="-1"></a> startNumber = yes,</span> +<span id="cb616-6"><a href="#cb616-6" aria-hidden="true" tabindex="-1"></a> ]</span> +<span id="cb616-7"><a href="#cb616-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb616-8"><a href="#cb616-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-9"><a href="#cb616-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{}</span> +<span id="cb616-10"><a href="#cb616-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBeginTight</span>{ (}</span> +<span id="cb616-11"><a href="#cb616-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> +<span id="cb616-12"><a href="#cb616-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> +<span id="cb616-13"><a href="#cb616-13" aria-hidden="true" tabindex="-1"></a> the first</span> +<span id="cb616-14"><a href="#cb616-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb616-15"><a href="#cb616-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> +<span id="cb616-16"><a href="#cb616-16" aria-hidden="true" tabindex="-1"></a> , the second</span> +<span id="cb616-17"><a href="#cb616-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb616-18"><a href="#cb616-18" aria-hidden="true" tabindex="-1"></a> , and the third</span> +<span id="cb616-19"><a href="#cb616-19" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb616-20"><a href="#cb616-20" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb616-21"><a href="#cb616-21" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb616-22"><a href="#cb616-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{}</span> +<span id="cb616-23"><a href="#cb616-23" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEndTight</span>{).}</span> +<span id="cb616-24"><a href="#cb616-24" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-25"><a href="#cb616-25" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb616-26"><a href="#cb616-26" aria-hidden="true" tabindex="-1"></a>This is a tight list</span> +<span id="cb616-27"><a href="#cb616-27" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-28"><a href="#cb616-28" aria-hidden="true" tabindex="-1"></a>1. item</span> +<span id="cb616-29"><a href="#cb616-29" aria-hidden="true" tabindex="-1"></a>2. item</span> +<span id="cb616-30"><a href="#cb616-30" aria-hidden="true" tabindex="-1"></a>3. item</span> +<span id="cb616-31"><a href="#cb616-31" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb616-32"><a href="#cb616-32" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-33"><a href="#cb616-33" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="co">%</span></span> +<span id="cb616-34"><a href="#cb616-34" aria-hidden="true" tabindex="-1"></a> :<span class="fu">\par</span></span> +<span id="cb616-35"><a href="#cb616-35" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\markdownRendererInterblockSeparator</span>{<span class="fu">\par</span>}<span class="co">%</span></span> +<span id="cb616-36"><a href="#cb616-36" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb616-37"><a href="#cb616-37" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlBegin</span>{<span class="fu">\startitemize</span>}</span> +<span id="cb616-38"><a href="#cb616-38" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemWithNumber</span>#1{<span class="co">%</span></span> +<span id="cb616-39"><a href="#cb616-39" aria-hidden="true" tabindex="-1"></a> <span class="fu">\sym</span>{#1.}</span> +<span id="cb616-40"><a href="#cb616-40" aria-hidden="true" tabindex="-1"></a> This is the</span> +<span id="cb616-41"><a href="#cb616-41" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></span> +<span id="cb616-42"><a href="#cb616-42" aria-hidden="true" tabindex="-1"></a> first</span> +<span id="cb616-43"><a href="#cb616-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb616-44"><a href="#cb616-44" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></span> +<span id="cb616-45"><a href="#cb616-45" aria-hidden="true" tabindex="-1"></a> second</span> +<span id="cb616-46"><a href="#cb616-46" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb616-47"><a href="#cb616-47" aria-hidden="true" tabindex="-1"></a> third</span> +<span id="cb616-48"><a href="#cb616-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb616-49"><a href="#cb616-49" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb616-50"><a href="#cb616-50" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb616-51"><a href="#cb616-51" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlItemEnd</span>{.<span class="fu">\par</span>}</span> +<span id="cb616-52"><a href="#cb616-52" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererOlEnd</span>{<span class="fu">\stopitemize</span>}</span> +<span id="cb616-53"><a href="#cb616-53" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-54"><a href="#cb616-54" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb616-55"><a href="#cb616-55" aria-hidden="true" tabindex="-1"></a>This is a loose list</span> +<span id="cb616-56"><a href="#cb616-56" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-57"><a href="#cb616-57" aria-hidden="true" tabindex="-1"></a>1. item</span> +<span id="cb616-58"><a href="#cb616-58" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-59"><a href="#cb616-59" aria-hidden="true" tabindex="-1"></a>2. item</span> +<span id="cb616-60"><a href="#cb616-60" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-61"><a href="#cb616-61" aria-hidden="true" tabindex="-1"></a>3. item</span> +<span id="cb616-62"><a href="#cb616-62" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb616-63"><a href="#cb616-63" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb616-64"><a href="#cb616-64" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb617"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb617-1"><a href="#cb617-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -11494,55 +11581,55 @@ item).</p> class="header-section-number">2.3.1.31</span> Raw Content Renderers</h4> <p>The <code>\markdownRendererInputRawInline</code> macro represents an inline raw span. The macro receives two arguments: the filename of a -file contaning the inline raw span contents and the raw attribute that +file containing the inline raw span contents and the raw attribute that designates the format of the inline raw span. This macro will only be produced, when the <strong><code>rawAttribute</code></strong> option is enabled.</p> <p>The <code>\markdownRendererInputRawBlock</code> macro represents a raw block. The macro receives two arguments: the filename of a file -contaning the raw block and the raw attribute that designates the format -of the raw block. This macro will only be produced, when the +containing the raw block and the raw attribute that designates the +format of the raw block. This macro will only be produced, when the <strong><code>rawAttribute</code></strong> and <strong><code>fencedCode</code></strong> options are enabled.</p> <h5 class="unnumbered" id="latex-example-89"><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="cb617"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb617-1"><a href="#cb617-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb617-2"><a href="#cb617-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[rawAttribute, fencedCode]{<span class="ex">markdown</span>}</span> -<span id="cb617-3"><a href="#cb617-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> -<span id="cb617-4"><a href="#cb617-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb617-5"><a href="#cb617-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\cs</span>_new:Nn</span> -<span id="cb617-6"><a href="#cb617-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\display</span>_raw_content:nn</span> -<span id="cb617-7"><a href="#cb617-7" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb617-8"><a href="#cb617-8" aria-hidden="true" tabindex="-1"></a> <span class="co">% If the raw attribute is TeX, execute the content as a TeX document.</span></span> -<span id="cb617-9"><a href="#cb617-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\str</span>_if_eq:nnTF</span> -<span id="cb617-10"><a href="#cb617-10" aria-hidden="true" tabindex="-1"></a> { #2 }</span> -<span id="cb617-11"><a href="#cb617-11" aria-hidden="true" tabindex="-1"></a> { tex }</span> -<span id="cb617-12"><a href="#cb617-12" aria-hidden="true" tabindex="-1"></a> { <span class="fu">\markdownEscape</span> { #1 } }</span> -<span id="cb617-13"><a href="#cb617-13" aria-hidden="true" tabindex="-1"></a> <span class="co">% Otherwise, ignore the content.</span></span> -<span id="cb617-14"><a href="#cb617-14" aria-hidden="true" tabindex="-1"></a> { }</span> -<span id="cb617-15"><a href="#cb617-15" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb617-16"><a href="#cb617-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb617-17"><a href="#cb617-17" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb617-18"><a href="#cb617-18" aria-hidden="true" tabindex="-1"></a> rawInline = { <span class="fu">\display</span>_raw_content:nn { #1 } { #2 } },</span> -<span id="cb617-19"><a href="#cb617-19" aria-hidden="true" tabindex="-1"></a> rawBlock = { <span class="fu">\display</span>_raw_content:nn { #1 } { #2 } }</span> -<span id="cb617-20"><a href="#cb617-20" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb617-21"><a href="#cb617-21" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb617-22"><a href="#cb617-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb617-23"><a href="#cb617-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb617-24"><a href="#cb617-24" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb617-25"><a href="#cb617-25" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$H_2 O$</span>`{=tex} is a liquid.</span> -<span id="cb617-26"><a href="#cb617-26" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb617-27"><a href="#cb617-27" aria-hidden="true" tabindex="-1"></a>``` {=html}</span> -<span id="cb617-28"><a href="#cb617-28" aria-hidden="true" tabindex="-1"></a><p>Here is some HTML content that will be ignored.</p></span> -<span id="cb617-29"><a href="#cb617-29" aria-hidden="true" tabindex="-1"></a>```</span> -<span id="cb617-30"><a href="#cb617-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb617-31"><a href="#cb617-31" aria-hidden="true" tabindex="-1"></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="cb618"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb618-1"><a href="#cb618-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb618-1"><a href="#cb618-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb618-2"><a href="#cb618-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[rawAttribute, fencedCode]{<span class="ex">markdown</span>}</span> +<span id="cb618-3"><a href="#cb618-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> +<span id="cb618-4"><a href="#cb618-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb618-5"><a href="#cb618-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\cs</span>_new:Nn</span> +<span id="cb618-6"><a href="#cb618-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\display</span>_raw_content:nn</span> +<span id="cb618-7"><a href="#cb618-7" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb618-8"><a href="#cb618-8" aria-hidden="true" tabindex="-1"></a> <span class="co">% If the raw attribute is TeX, execute the content as a TeX document.</span></span> +<span id="cb618-9"><a href="#cb618-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">\str</span>_if_eq:nnTF</span> +<span id="cb618-10"><a href="#cb618-10" aria-hidden="true" tabindex="-1"></a> { #2 }</span> +<span id="cb618-11"><a href="#cb618-11" aria-hidden="true" tabindex="-1"></a> { tex }</span> +<span id="cb618-12"><a href="#cb618-12" aria-hidden="true" tabindex="-1"></a> { <span class="fu">\markdownEscape</span> { #1 } }</span> +<span id="cb618-13"><a href="#cb618-13" aria-hidden="true" tabindex="-1"></a> <span class="co">% Otherwise, ignore the content.</span></span> +<span id="cb618-14"><a href="#cb618-14" aria-hidden="true" tabindex="-1"></a> { }</span> +<span id="cb618-15"><a href="#cb618-15" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb618-16"><a href="#cb618-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb618-17"><a href="#cb618-17" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb618-18"><a href="#cb618-18" aria-hidden="true" tabindex="-1"></a> rawInline = { <span class="fu">\display</span>_raw_content:nn { #1 } { #2 } },</span> +<span id="cb618-19"><a href="#cb618-19" aria-hidden="true" tabindex="-1"></a> rawBlock = { <span class="fu">\display</span>_raw_content:nn { #1 } { #2 } }</span> +<span id="cb618-20"><a href="#cb618-20" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb618-21"><a href="#cb618-21" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb618-22"><a href="#cb618-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb618-23"><a href="#cb618-23" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb618-24"><a href="#cb618-24" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb618-25"><a href="#cb618-25" aria-hidden="true" tabindex="-1"></a>`<span class="ss">$H_2 O$</span>`{=tex} is a liquid.</span> +<span id="cb618-26"><a href="#cb618-26" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb618-27"><a href="#cb618-27" aria-hidden="true" tabindex="-1"></a>``` {=html}</span> +<span id="cb618-28"><a href="#cb618-28" aria-hidden="true" tabindex="-1"></a><p>Here is some HTML content that will be ignored.</p></span> +<span id="cb618-29"><a href="#cb618-29" aria-hidden="true" tabindex="-1"></a>```</span> +<span id="cb618-30"><a href="#cb618-30" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb618-31"><a href="#cb618-31" aria-hidden="true" tabindex="-1"></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="cb619"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb619-1"><a href="#cb619-1" aria-hidden="true" tabindex="-1"></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> @@ -11597,16 +11684,16 @@ class="tex">T<sub>e</sub>X</span> Example</h5> 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="cb619"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb619-1"><a href="#cb619-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb619-2"><a href="#cb619-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span> -<span id="cb619-3"><a href="#cb619-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb619-4"><a href="#cb619-4" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> -<span id="cb619-5"><a href="#cb619-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb619-6"><a href="#cb619-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb620"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb620-1"><a href="#cb620-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb620-1"><a href="#cb620-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb620-2"><a href="#cb620-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span> +<span id="cb620-3"><a href="#cb620-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb620-4"><a href="#cb620-4" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> +<span id="cb620-5"><a href="#cb620-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb620-6"><a href="#cb620-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb621"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb621-1"><a href="#cb621-1" aria-hidden="true" tabindex="-1"></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> @@ -11620,22 +11707,22 @@ class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> 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="cb621"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb621-1"><a href="#cb621-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb621-2"><a href="#cb621-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb621-3"><a href="#cb621-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb621-4"><a href="#cb621-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb621-5"><a href="#cb621-5" aria-hidden="true" tabindex="-1"></a> tilde = ~,</span> -<span id="cb621-6"><a href="#cb621-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb621-7"><a href="#cb621-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb621-8"><a href="#cb621-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb621-9"><a href="#cb621-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb621-10"><a href="#cb621-10" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> -<span id="cb621-11"><a href="#cb621-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb621-12"><a href="#cb621-12" aria-hidden="true" tabindex="-1"></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="cb622"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb622-1"><a href="#cb622-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb622-1"><a href="#cb622-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb622-2"><a href="#cb622-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb622-3"><a href="#cb622-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb622-4"><a href="#cb622-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb622-5"><a href="#cb622-5" aria-hidden="true" tabindex="-1"></a> tilde = ~,</span> +<span id="cb622-6"><a href="#cb622-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb622-7"><a href="#cb622-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb622-8"><a href="#cb622-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb622-9"><a href="#cb622-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb622-10"><a href="#cb622-10" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> +<span id="cb622-11"><a href="#cb622-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb622-12"><a href="#cb622-12" aria-hidden="true" tabindex="-1"></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="cb623"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb623-1"><a href="#cb623-1" aria-hidden="true" tabindex="-1"></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> @@ -11649,17 +11736,17 @@ class="tex">T<sub>e</sub>X</span>t Example</h5> 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="cb623"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb623-1"><a href="#cb623-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb623-2"><a href="#cb623-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span> -<span id="cb623-3"><a href="#cb623-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb623-4"><a href="#cb623-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb623-5"><a href="#cb623-5" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> -<span id="cb623-6"><a href="#cb623-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb623-7"><a href="#cb623-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb624"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb624-1"><a href="#cb624-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb624-1"><a href="#cb624-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb624-2"><a href="#cb624-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{~}</span> +<span id="cb624-3"><a href="#cb624-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb624-4"><a href="#cb624-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb624-5"><a href="#cb624-5" aria-hidden="true" tabindex="-1"></a>Bartel~Leendert van~der~Waerden</span> +<span id="cb624-6"><a href="#cb624-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb624-7"><a href="#cb624-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb625"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb625-1"><a href="#cb625-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -11678,18 +11765,18 @@ enabled.</p> 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="cb625"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb625-1"><a href="#cb625-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb625-2"><a href="#cb625-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStrikeThrough</span>{true}</span> -<span id="cb625-3"><a href="#cb625-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> soulutf8.sty</span> -<span id="cb625-4"><a href="#cb625-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\st</span>{#1}}</span> -<span id="cb625-5"><a href="#cb625-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb625-6"><a href="#cb625-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> -<span id="cb625-7"><a href="#cb625-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb625-8"><a href="#cb625-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb626"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb626-1"><a href="#cb626-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb626-1"><a href="#cb626-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb626-2"><a href="#cb626-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionStrikeThrough</span>{true}</span> +<span id="cb626-3"><a href="#cb626-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> soulutf8.sty</span> +<span id="cb626-4"><a href="#cb626-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\st</span>{#1}}</span> +<span id="cb626-5"><a href="#cb626-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb626-6"><a href="#cb626-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> +<span id="cb626-7"><a href="#cb626-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb626-8"><a href="#cb626-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb627"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb627-1"><a href="#cb627-1" aria-hidden="true" tabindex="-1"></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> @@ -11699,23 +11786,23 @@ contain the following text:</p> 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="cb627"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb627-1"><a href="#cb627-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb627-2"><a href="#cb627-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[strikeThrough]{<span class="ex">markdown</span>}</span> -<span id="cb627-3"><a href="#cb627-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soulutf8</span>}</span> -<span id="cb627-4"><a href="#cb627-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb627-5"><a href="#cb627-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb627-6"><a href="#cb627-6" aria-hidden="true" tabindex="-1"></a> strikeThrough = {<span class="fu">\st</span>{#1}},</span> -<span id="cb627-7"><a href="#cb627-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb627-8"><a href="#cb627-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb627-9"><a href="#cb627-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb627-10"><a href="#cb627-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb627-11"><a href="#cb627-11" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> -<span id="cb627-12"><a href="#cb627-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb627-13"><a href="#cb627-13" aria-hidden="true" tabindex="-1"></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="cb628"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb628-1"><a href="#cb628-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb628-1"><a href="#cb628-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb628-2"><a href="#cb628-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[strikeThrough]{<span class="ex">markdown</span>}</span> +<span id="cb628-3"><a href="#cb628-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">soulutf8</span>}</span> +<span id="cb628-4"><a href="#cb628-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb628-5"><a href="#cb628-5" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb628-6"><a href="#cb628-6" aria-hidden="true" tabindex="-1"></a> strikeThrough = {<span class="fu">\st</span>{#1}},</span> +<span id="cb628-7"><a href="#cb628-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb628-8"><a href="#cb628-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb628-9"><a href="#cb628-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb628-10"><a href="#cb628-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb628-11"><a href="#cb628-11" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> +<span id="cb628-12"><a href="#cb628-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb628-13"><a href="#cb628-13" aria-hidden="true" tabindex="-1"></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="cb629"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb629-1"><a href="#cb629-1" aria-hidden="true" tabindex="-1"></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> @@ -11725,18 +11812,18 @@ contain the following text:</p> 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="cb629"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb629-1"><a href="#cb629-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb629-2"><a href="#cb629-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[strikeThrough = yes]</span> -<span id="cb629-3"><a href="#cb629-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\overstrikes</span>{#1}}</span> -<span id="cb629-4"><a href="#cb629-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb629-5"><a href="#cb629-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb629-6"><a href="#cb629-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> -<span id="cb629-7"><a href="#cb629-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb629-8"><a href="#cb629-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb630"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb630-1"><a href="#cb630-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb630-1"><a href="#cb630-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb630-2"><a href="#cb630-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[strikeThrough = yes]</span> +<span id="cb630-3"><a href="#cb630-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererStrikeThrough</span>#1{<span class="fu">\overstrikes</span>{#1}}</span> +<span id="cb630-4"><a href="#cb630-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb630-5"><a href="#cb630-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb630-6"><a href="#cb630-6" aria-hidden="true" tabindex="-1"></a>This is ~~a lunar roving vehicle~~ strike-through text.</span> +<span id="cb630-7"><a href="#cb630-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb630-8"><a href="#cb630-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb631"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb631-1"><a href="#cb631-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -11753,17 +11840,17 @@ enabled.</p> 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="cb631"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb631-1"><a href="#cb631-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb631-2"><a href="#cb631-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSubscripts</span>{true}</span> -<span id="cb631-3"><a href="#cb631-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSubscript</span>#1{ (#1 moles) and }</span> -<span id="cb631-4"><a href="#cb631-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb631-5"><a href="#cb631-5" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> -<span id="cb631-6"><a href="#cb631-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb631-7"><a href="#cb631-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb632"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb632-1"><a href="#cb632-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb632-1"><a href="#cb632-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb632-2"><a href="#cb632-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSubscripts</span>{true}</span> +<span id="cb632-3"><a href="#cb632-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSubscript</span>#1{ (#1 moles) and }</span> +<span id="cb632-4"><a href="#cb632-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb632-5"><a href="#cb632-5" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> +<span id="cb632-6"><a href="#cb632-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb632-7"><a href="#cb632-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb633"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb633-1"><a href="#cb633-1" aria-hidden="true" tabindex="-1"></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> @@ -11773,22 +11860,22 @@ contain the following text:</p> 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="cb633"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb633-1"><a href="#cb633-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb633-2"><a href="#cb633-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[subscripts]{<span class="ex">markdown</span>}</span> -<span id="cb633-3"><a href="#cb633-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb633-4"><a href="#cb633-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb633-5"><a href="#cb633-5" aria-hidden="true" tabindex="-1"></a> subscript = { (#1 moles) and },</span> -<span id="cb633-6"><a href="#cb633-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb633-7"><a href="#cb633-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb633-8"><a href="#cb633-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb633-9"><a href="#cb633-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb633-10"><a href="#cb633-10" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> -<span id="cb633-11"><a href="#cb633-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb633-12"><a href="#cb633-12" aria-hidden="true" tabindex="-1"></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="cb634"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb634-1"><a href="#cb634-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb634-1"><a href="#cb634-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb634-2"><a href="#cb634-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[subscripts]{<span class="ex">markdown</span>}</span> +<span id="cb634-3"><a href="#cb634-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb634-4"><a href="#cb634-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb634-5"><a href="#cb634-5" aria-hidden="true" tabindex="-1"></a> subscript = { (#1 moles) and },</span> +<span id="cb634-6"><a href="#cb634-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb634-7"><a href="#cb634-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb634-8"><a href="#cb634-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb634-9"><a href="#cb634-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb634-10"><a href="#cb634-10" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> +<span id="cb634-11"><a href="#cb634-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb634-12"><a href="#cb634-12" aria-hidden="true" tabindex="-1"></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="cb635"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb635-1"><a href="#cb635-1" aria-hidden="true" tabindex="-1"></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> @@ -11798,18 +11885,18 @@ contain the following text:</p> 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="cb635"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb635-1"><a href="#cb635-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb635-2"><a href="#cb635-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[subscripts = yes]</span> -<span id="cb635-3"><a href="#cb635-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSubscript</span>#1{ (#1 moles) and }</span> -<span id="cb635-4"><a href="#cb635-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb635-5"><a href="#cb635-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb635-6"><a href="#cb635-6" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> -<span id="cb635-7"><a href="#cb635-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb635-8"><a href="#cb635-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb636"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb636-1"><a href="#cb636-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb636-1"><a href="#cb636-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb636-2"><a href="#cb636-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[subscripts = yes]</span> +<span id="cb636-3"><a href="#cb636-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSubscript</span>#1{ (#1 moles) and }</span> +<span id="cb636-4"><a href="#cb636-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb636-5"><a href="#cb636-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb636-6"><a href="#cb636-6" aria-hidden="true" tabindex="-1"></a>H~2~O is a liquid.</span> +<span id="cb636-7"><a href="#cb636-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb636-8"><a href="#cb636-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb637"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb637-1"><a href="#cb637-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -11826,17 +11913,17 @@ enabled.</p> 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="cb637"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb637-1"><a href="#cb637-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb637-2"><a href="#cb637-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSuperscripts</span>{true}</span> -<span id="cb637-3"><a href="#cb637-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSuperscript</span>#1{ taken to the power of #1}</span> -<span id="cb637-4"><a href="#cb637-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb637-5"><a href="#cb637-5" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> -<span id="cb637-6"><a href="#cb637-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb637-7"><a href="#cb637-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb638"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb638-1"><a href="#cb638-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb638-1"><a href="#cb638-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb638-2"><a href="#cb638-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionSuperscripts</span>{true}</span> +<span id="cb638-3"><a href="#cb638-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSuperscript</span>#1{ taken to the power of #1}</span> +<span id="cb638-4"><a href="#cb638-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb638-5"><a href="#cb638-5" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> +<span id="cb638-6"><a href="#cb638-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb638-7"><a href="#cb638-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb639"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb639-1"><a href="#cb639-1" aria-hidden="true" tabindex="-1"></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> @@ -11846,22 +11933,22 @@ contain the following text:</p> 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="cb639"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb639-1"><a href="#cb639-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb639-2"><a href="#cb639-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[superscripts]{<span class="ex">markdown</span>}</span> -<span id="cb639-3"><a href="#cb639-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb639-4"><a href="#cb639-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb639-5"><a href="#cb639-5" aria-hidden="true" tabindex="-1"></a> superscript = { taken to the power of #1},</span> -<span id="cb639-6"><a href="#cb639-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb639-7"><a href="#cb639-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb639-8"><a href="#cb639-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb639-9"><a href="#cb639-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb639-10"><a href="#cb639-10" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> -<span id="cb639-11"><a href="#cb639-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb639-12"><a href="#cb639-12" aria-hidden="true" tabindex="-1"></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="cb640"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb640-1"><a href="#cb640-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb640-1"><a href="#cb640-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb640-2"><a href="#cb640-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[superscripts]{<span class="ex">markdown</span>}</span> +<span id="cb640-3"><a href="#cb640-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb640-4"><a href="#cb640-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb640-5"><a href="#cb640-5" aria-hidden="true" tabindex="-1"></a> superscript = { taken to the power of #1},</span> +<span id="cb640-6"><a href="#cb640-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb640-7"><a href="#cb640-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb640-8"><a href="#cb640-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb640-9"><a href="#cb640-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb640-10"><a href="#cb640-10" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> +<span id="cb640-11"><a href="#cb640-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb640-12"><a href="#cb640-12" aria-hidden="true" tabindex="-1"></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="cb641"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb641-1"><a href="#cb641-1" aria-hidden="true" tabindex="-1"></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> @@ -11871,18 +11958,18 @@ contain the following text:</p> 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="cb641"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb641-1"><a href="#cb641-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb641-2"><a href="#cb641-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[superscripts = yes]</span> -<span id="cb641-3"><a href="#cb641-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSuperscript</span>#1{ taken to the power of #1}</span> -<span id="cb641-4"><a href="#cb641-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb641-5"><a href="#cb641-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb641-6"><a href="#cb641-6" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> -<span id="cb641-7"><a href="#cb641-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb641-8"><a href="#cb641-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb642"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb642-1"><a href="#cb642-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb642-1"><a href="#cb642-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb642-2"><a href="#cb642-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[superscripts = yes]</span> +<span id="cb642-3"><a href="#cb642-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererSuperscript</span>#1{ taken to the power of #1}</span> +<span id="cb642-4"><a href="#cb642-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb642-5"><a href="#cb642-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb642-6"><a href="#cb642-6" aria-hidden="true" tabindex="-1"></a>2^10^ is 1024.</span> +<span id="cb642-7"><a href="#cb642-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb642-8"><a href="#cb642-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb643"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb643-1"><a href="#cb643-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -11902,57 +11989,57 @@ table apply. The macros receive no arguments.</p> 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="cb643"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb643-1"><a href="#cb643-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb643-2"><a href="#cb643-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> -<span id="cb643-3"><a href="#cb643-3" aria-hidden="true" tabindex="-1"></a> pipeTables,</span> -<span id="cb643-4"><a href="#cb643-4" aria-hidden="true" tabindex="-1"></a> tableCaptions,</span> -<span id="cb643-5"><a href="#cb643-5" aria-hidden="true" tabindex="-1"></a> tableAttributes,</span> -<span id="cb643-6"><a href="#cb643-6" aria-hidden="true" tabindex="-1"></a> relativeReferences,</span> -<span id="cb643-7"><a href="#cb643-7" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span> -<span id="cb643-8"><a href="#cb643-8" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> -<span id="cb643-9"><a href="#cb643-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb643-10"><a href="#cb643-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb643-11"><a href="#cb643-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb643-12"><a href="#cb643-12" aria-hidden="true" tabindex="-1"></a> tableAttributeContextBegin = {</span> -<span id="cb643-13"><a href="#cb643-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> -<span id="cb643-14"><a href="#cb643-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb643-15"><a href="#cb643-15" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb643-16"><a href="#cb643-16" aria-hidden="true" tabindex="-1"></a> attributeIdentifier = {</span> -<span id="cb643-17"><a href="#cb643-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> -<span id="cb643-18"><a href="#cb643-18" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb643-19"><a href="#cb643-19" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> -<span id="cb643-20"><a href="#cb643-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">\label</span>{<span class="ex">##1</span>}</span> -<span id="cb643-21"><a href="#cb643-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb643-22"><a href="#cb643-22" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-23"><a href="#cb643-23" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-24"><a href="#cb643-24" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb643-25"><a href="#cb643-25" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-26"><a href="#cb643-26" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-27"><a href="#cb643-27" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb643-28"><a href="#cb643-28" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-29"><a href="#cb643-29" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> -<span id="cb643-30"><a href="#cb643-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> -<span id="cb643-31"><a href="#cb643-31" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-32"><a href="#cb643-32" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb643-33"><a href="#cb643-33" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb643-34"><a href="#cb643-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb643-35"><a href="#cb643-35" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb643-36"><a href="#cb643-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb643-37"><a href="#cb643-37" aria-hidden="true" tabindex="-1"></a>See Table <#example-table>.</span> -<span id="cb643-38"><a href="#cb643-38" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb643-39"><a href="#cb643-39" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb643-40"><a href="#cb643-40" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb643-41"><a href="#cb643-41" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb643-42"><a href="#cb643-42" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb643-43"><a href="#cb643-43" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb643-44"><a href="#cb643-44" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb643-45"><a href="#cb643-45" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax. {#example-table}</span> -<span id="cb643-46"><a href="#cb643-46" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb643-47"><a href="#cb643-47" aria-hidden="true" tabindex="-1"></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="cb644"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb644-1"><a href="#cb644-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb644-1"><a href="#cb644-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb644-2"><a href="#cb644-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[</span> +<span id="cb644-3"><a href="#cb644-3" aria-hidden="true" tabindex="-1"></a> pipeTables,</span> +<span id="cb644-4"><a href="#cb644-4" aria-hidden="true" tabindex="-1"></a> tableCaptions,</span> +<span id="cb644-5"><a href="#cb644-5" aria-hidden="true" tabindex="-1"></a> tableAttributes,</span> +<span id="cb644-6"><a href="#cb644-6" aria-hidden="true" tabindex="-1"></a> relativeReferences,</span> +<span id="cb644-7"><a href="#cb644-7" aria-hidden="true" tabindex="-1"></a>]{<span class="ex">markdown</span>}</span> +<span id="cb644-8"><a href="#cb644-8" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">expl3</span>}</span> +<span id="cb644-9"><a href="#cb644-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb644-10"><a href="#cb644-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb644-11"><a href="#cb644-11" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb644-12"><a href="#cb644-12" aria-hidden="true" tabindex="-1"></a> tableAttributeContextBegin = {</span> +<span id="cb644-13"><a href="#cb644-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_begin:</span> +<span id="cb644-14"><a href="#cb644-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb644-15"><a href="#cb644-15" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb644-16"><a href="#cb644-16" aria-hidden="true" tabindex="-1"></a> attributeIdentifier = {</span> +<span id="cb644-17"><a href="#cb644-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\markdownSetup</span>{</span> +<span id="cb644-18"><a href="#cb644-18" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb644-19"><a href="#cb644-19" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> +<span id="cb644-20"><a href="#cb644-20" aria-hidden="true" tabindex="-1"></a> <span class="kw">\label</span>{<span class="ex">##1</span>}</span> +<span id="cb644-21"><a href="#cb644-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb644-22"><a href="#cb644-22" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-23"><a href="#cb644-23" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-24"><a href="#cb644-24" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb644-25"><a href="#cb644-25" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-26"><a href="#cb644-26" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-27"><a href="#cb644-27" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb644-28"><a href="#cb644-28" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-29"><a href="#cb644-29" aria-hidden="true" tabindex="-1"></a> tableAttributeContextEnd = {</span> +<span id="cb644-30"><a href="#cb644-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\group</span>_end:</span> +<span id="cb644-31"><a href="#cb644-31" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-32"><a href="#cb644-32" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb644-33"><a href="#cb644-33" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb644-34"><a href="#cb644-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb644-35"><a href="#cb644-35" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb644-36"><a href="#cb644-36" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb644-37"><a href="#cb644-37" aria-hidden="true" tabindex="-1"></a>See Table <#example-table>.</span> +<span id="cb644-38"><a href="#cb644-38" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb644-39"><a href="#cb644-39" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb644-40"><a href="#cb644-40" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb644-41"><a href="#cb644-41" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb644-42"><a href="#cb644-42" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb644-43"><a href="#cb644-43" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb644-44"><a href="#cb644-44" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb644-45"><a href="#cb644-45" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax. {#example-table}</span> +<span id="cb644-46"><a href="#cb644-46" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb644-47"><a href="#cb644-47" aria-hidden="true" tabindex="-1"></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="cb645"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb645-1"><a href="#cb645-1" aria-hidden="true" tabindex="-1"></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> @@ -12015,83 +12102,84 @@ one of the following:</p> 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="cb645"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb645-1"><a href="#cb645-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb645-2"><a href="#cb645-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span> -<span id="cb645-3"><a href="#cb645-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\rowCounter</span></span> -<span id="cb645-4"><a href="#cb645-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\columnCounter</span></span> -<span id="cb645-5"><a href="#cb645-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatletter</span></span> -<span id="cb645-6"><a href="#cb645-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\processRow</span>#1{<span class="co">%</span></span> -<span id="cb645-7"><a href="#cb645-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\columnCounter</span>=1<span class="co">%</span></span> -<span id="cb645-8"><a href="#cb645-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span> -<span id="cb645-9"><a href="#cb645-9" aria-hidden="true" tabindex="-1"></a> As for the alignment,</span> -<span id="cb645-10"><a href="#cb645-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb645-11"><a href="#cb645-11" aria-hidden="true" tabindex="-1"></a> In row <span class="fu">\the\rowCounter</span>,</span> -<span id="cb645-12"><a href="#cb645-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb645-13"><a href="#cb645-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\processColumn</span>#1</span> -<span id="cb645-14"><a href="#cb645-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\rowCounter</span> by 1<span class="fu">\relax</span></span> -<span id="cb645-15"><a href="#cb645-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\rowCounter</span>><span class="fu">\rowTotal\relax</span></span> -<span id="cb645-16"><a href="#cb645-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\@gobble</span></span> -<span id="cb645-17"><a href="#cb645-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\processRow</span>}<span class="co">%</span></span> -<span id="cb645-18"><a href="#cb645-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\processColumn</span>#1{<span class="co">%</span></span> -<span id="cb645-19"><a href="#cb645-19" aria-hidden="true" tabindex="-1"></a> column number <span class="fu">\the\columnCounter</span>{}</span> -<span id="cb645-20"><a href="#cb645-20" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span> -<span id="cb645-21"><a href="#cb645-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1d{}has default alignment<span class="fu">\fi</span></span> -<span id="cb645-22"><a href="#cb645-22" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1l{}is left-aligned<span class="fu">\fi</span></span> -<span id="cb645-23"><a href="#cb645-23" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1c{}is centered<span class="fu">\fi</span></span> -<span id="cb645-24"><a href="#cb645-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1r{}is right-aligned<span class="fu">\fi</span></span> -<span id="cb645-25"><a href="#cb645-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> -<span id="cb645-26"><a href="#cb645-26" aria-hidden="true" tabindex="-1"></a> says <span class="fu">\emph</span>{#1}<span class="co">%</span></span> -<span id="cb645-27"><a href="#cb645-27" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> -<span id="cb645-28"><a href="#cb645-28" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\columnCounter</span> by 1<span class="fu">\relax</span></span> -<span id="cb645-29"><a href="#cb645-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\columnCounter</span><<span class="fu">\columnTotal\relax</span>, <span class="fu">\fi</span></span> -<span id="cb645-30"><a href="#cb645-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\columnCounter</span>=<span class="fu">\columnTotal\relax</span>, and <span class="fu">\fi</span></span> -<span id="cb645-31"><a href="#cb645-31" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\columnCounter</span>><span class="fu">\columnTotal\relax</span></span> -<span id="cb645-32"><a href="#cb645-32" aria-hidden="true" tabindex="-1"></a> .<span class="fu">\expandafter\@gobble</span></span> -<span id="cb645-33"><a href="#cb645-33" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\processColumn</span>}<span class="co">%</span></span> -<span id="cb645-34"><a href="#cb645-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatother</span></span> -<span id="cb645-35"><a href="#cb645-35" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb645-36"><a href="#cb645-36" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb645-37"><a href="#cb645-37" aria-hidden="true" tabindex="-1"></a> table = {<span class="co">%</span></span> -<span id="cb645-38"><a href="#cb645-38" aria-hidden="true" tabindex="-1"></a> This is a table with caption <span class="fu">\emph</span>{#1} that is #3 colums wide</span> -<span id="cb645-39"><a href="#cb645-39" aria-hidden="true" tabindex="-1"></a> and #2 rows long.</span> -<span id="cb645-40"><a href="#cb645-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\rowCounter</span>=0<span class="co">%</span></span> -<span id="cb645-41"><a href="#cb645-41" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\rowTotal</span>{#2}<span class="co">%</span></span> -<span id="cb645-42"><a href="#cb645-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\columnTotal</span>{#3}<span class="co">%</span></span> -<span id="cb645-43"><a href="#cb645-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\processRow</span></span> -<span id="cb645-44"><a href="#cb645-44" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb645-45"><a href="#cb645-45" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb645-46"><a href="#cb645-46" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb645-47"><a href="#cb645-47" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb645-48"><a href="#cb645-48" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb645-49"><a href="#cb645-49" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> -<span id="cb645-50"><a href="#cb645-50" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> -<span id="cb645-51"><a href="#cb645-51" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> -<span id="cb645-52"><a href="#cb645-52" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> -<span id="cb645-53"><a href="#cb645-53" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> -<span id="cb645-54"><a href="#cb645-54" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb645-55"><a href="#cb645-55" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax</span> -<span id="cb645-56"><a href="#cb645-56" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb645-57"><a href="#cb645-57" aria-hidden="true" tabindex="-1"></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="cb646"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb646-1"><a href="#cb646-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb646-1"><a href="#cb646-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb646-2"><a href="#cb646-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</span> +<span id="cb646-3"><a href="#cb646-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\rowCounter</span></span> +<span id="cb646-4"><a href="#cb646-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\newcount\columnCounter</span></span> +<span id="cb646-5"><a href="#cb646-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatletter</span></span> +<span id="cb646-6"><a href="#cb646-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\processRow</span>#1{<span class="co">%</span></span> +<span id="cb646-7"><a href="#cb646-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">\columnCounter</span>=1<span class="co">%</span></span> +<span id="cb646-8"><a href="#cb646-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span> +<span id="cb646-9"><a href="#cb646-9" aria-hidden="true" tabindex="-1"></a> As for the alignment,</span> +<span id="cb646-10"><a href="#cb646-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb646-11"><a href="#cb646-11" aria-hidden="true" tabindex="-1"></a> In row <span class="fu">\the\rowCounter</span>,</span> +<span id="cb646-12"><a href="#cb646-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb646-13"><a href="#cb646-13" aria-hidden="true" tabindex="-1"></a> <span class="fu">\processColumn</span>#1</span> +<span id="cb646-14"><a href="#cb646-14" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\rowCounter</span> by 1<span class="fu">\relax</span></span> +<span id="cb646-15"><a href="#cb646-15" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\rowCounter</span>><span class="fu">\rowTotal\relax</span></span> +<span id="cb646-16"><a href="#cb646-16" aria-hidden="true" tabindex="-1"></a> <span class="fu">\expandafter\@gobble</span></span> +<span id="cb646-17"><a href="#cb646-17" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\processRow</span>}<span class="co">%</span></span> +<span id="cb646-18"><a href="#cb646-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\processColumn</span>#1{<span class="co">%</span></span> +<span id="cb646-19"><a href="#cb646-19" aria-hidden="true" tabindex="-1"></a> column number <span class="fu">\the\columnCounter</span>{}</span> +<span id="cb646-20"><a href="#cb646-20" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\rowCounter</span>=0<span class="fu">\relax</span></span> +<span id="cb646-21"><a href="#cb646-21" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1d{}has default alignment<span class="fu">\fi</span></span> +<span id="cb646-22"><a href="#cb646-22" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1l{}is left-aligned<span class="fu">\fi</span></span> +<span id="cb646-23"><a href="#cb646-23" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1c{}is centered<span class="fu">\fi</span></span> +<span id="cb646-24"><a href="#cb646-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">\if</span>#1r{}is right-aligned<span class="fu">\fi</span></span> +<span id="cb646-25"><a href="#cb646-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">\else</span></span> +<span id="cb646-26"><a href="#cb646-26" aria-hidden="true" tabindex="-1"></a> says <span class="fu">\emph</span>{#1}<span class="co">%</span></span> +<span id="cb646-27"><a href="#cb646-27" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi</span></span> +<span id="cb646-28"><a href="#cb646-28" aria-hidden="true" tabindex="-1"></a> <span class="fu">\advance\columnCounter</span> by 1<span class="fu">\relax</span></span> +<span id="cb646-29"><a href="#cb646-29" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\columnCounter</span><<span class="fu">\columnTotal\relax</span>, <span class="fu">\fi</span></span> +<span id="cb646-30"><a href="#cb646-30" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\columnCounter</span>=<span class="fu">\columnTotal\relax</span>, and <span class="fu">\fi</span></span> +<span id="cb646-31"><a href="#cb646-31" aria-hidden="true" tabindex="-1"></a> <span class="fu">\ifnum\columnCounter</span>><span class="fu">\columnTotal\relax</span></span> +<span id="cb646-32"><a href="#cb646-32" aria-hidden="true" tabindex="-1"></a> .<span class="fu">\expandafter\@gobble</span></span> +<span id="cb646-33"><a href="#cb646-33" aria-hidden="true" tabindex="-1"></a> <span class="fu">\fi\processColumn</span>}<span class="co">%</span></span> +<span id="cb646-34"><a href="#cb646-34" aria-hidden="true" tabindex="-1"></a><span class="fu">\makeatother</span></span> +<span id="cb646-35"><a href="#cb646-35" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb646-36"><a href="#cb646-36" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb646-37"><a href="#cb646-37" aria-hidden="true" tabindex="-1"></a> table = {<span class="co">%</span></span> +<span id="cb646-38"><a href="#cb646-38" aria-hidden="true" tabindex="-1"></a> This is a table with caption <span class="fu">\emph</span>{#1} that is #3 columns wide</span> +<span id="cb646-39"><a href="#cb646-39" aria-hidden="true" tabindex="-1"></a> and #2 rows long.</span> +<span id="cb646-40"><a href="#cb646-40" aria-hidden="true" tabindex="-1"></a> <span class="fu">\rowCounter</span>=0<span class="co">%</span></span> +<span id="cb646-41"><a href="#cb646-41" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\rowTotal</span>{#2}<span class="co">%</span></span> +<span id="cb646-42"><a href="#cb646-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">\def\columnTotal</span>{#3}<span class="co">%</span></span> +<span id="cb646-43"><a href="#cb646-43" aria-hidden="true" tabindex="-1"></a> <span class="fu">\processRow</span></span> +<span id="cb646-44"><a href="#cb646-44" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb646-45"><a href="#cb646-45" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb646-46"><a href="#cb646-46" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb646-47"><a href="#cb646-47" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb646-48"><a href="#cb646-48" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb646-49"><a href="#cb646-49" aria-hidden="true" tabindex="-1"></a>| Right | Left | Default | Center |</span> +<span id="cb646-50"><a href="#cb646-50" aria-hidden="true" tabindex="-1"></a>|------:|:-----|---------|:------:|</span> +<span id="cb646-51"><a href="#cb646-51" aria-hidden="true" tabindex="-1"></a>| 12 | 12 | 12 | 12 |</span> +<span id="cb646-52"><a href="#cb646-52" aria-hidden="true" tabindex="-1"></a>| 123 | 123 | 123 | 123 |</span> +<span id="cb646-53"><a href="#cb646-53" aria-hidden="true" tabindex="-1"></a>| 1 | 1 | 1 | 1 |</span> +<span id="cb646-54"><a href="#cb646-54" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb646-55"><a href="#cb646-55" aria-hidden="true" tabindex="-1"></a> : Demonstration of pipe table syntax</span> +<span id="cb646-56"><a href="#cb646-56" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb646-57"><a href="#cb646-57" aria-hidden="true" tabindex="-1"></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="cb647"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb647-1"><a href="#cb647-1" aria-hidden="true" tabindex="-1"></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> +syntax</em> that is 4 columns 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.40" id="tex-math-renderers"><span class="header-section-number">2.3.1.40</span> <span @@ -12109,49 +12197,48 @@ enabled.</p> 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="cb647"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb647-1"><a href="#cb647-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb647-2"><a href="#cb647-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDollars</span>{true}</span> -<span id="cb647-3"><a href="#cb647-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInlineMath</span>#1{<span class="ss">$#1</span><span class="sc">\dots</span><span class="ss">$</span>}</span> -<span id="cb647-4"><a href="#cb647-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDisplayMath</span>#1{<span class="ss">$$#1</span><span class="sc">\eqno</span><span class="ss">(1)$$</span>}</span> -<span id="cb647-5"><a href="#cb647-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb647-6"><a href="#cb647-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> -<span id="cb647-7"><a href="#cb647-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb647-8"><a href="#cb647-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> -<span id="cb647-9"><a href="#cb647-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb647-10"><a href="#cb647-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb648"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb648-1"><a href="#cb648-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb648-1"><a href="#cb648-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb648-2"><a href="#cb648-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionTexMathDollars</span>{true}</span> +<span id="cb648-3"><a href="#cb648-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInlineMath</span>#1{<span class="ss">$#1</span><span class="sc">\dots</span><span class="ss">$</span>}</span> +<span id="cb648-4"><a href="#cb648-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDisplayMath</span>#1{<span class="ss">$$#1</span><span class="sc">\nonumber</span><span class="ss">$$</span>}</span> +<span id="cb648-5"><a href="#cb648-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb648-6"><a href="#cb648-6" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> +<span id="cb648-7"><a href="#cb648-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb648-8"><a href="#cb648-8" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> +<span id="cb648-9"><a href="#cb648-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb648-10"><a href="#cb648-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb649"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb649-1"><a href="#cb649-1" aria-hidden="true" tabindex="-1"></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><span class="math inline"><em>E</em>â=â<em>m</em><em>c</em><sup>2</sup>âŚ</span></p> -<p><span class="math display">$$\hat{f} \left ( \xi \right )= -\int_{-\infty}^{\infty} f\left ( x \right ) e^{-i2\pi \xi x} -dx\eqno(1)$$</span></p> +<p><span +class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â</sup><em>f</em>(<em>x</em>)<em>e</em><sup>â<em>i</em>2<em>Ď</em><em>Ξ</em><em>x</em></sup><em>d</em><em>x</em></span></p> </blockquote> <h5 class="unnumbered" id="latex-example-96"><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="cb649"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb649-1"><a href="#cb649-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb649-2"><a href="#cb649-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathDollars]{<span class="ex">markdown</span>}</span> -<span id="cb649-3"><a href="#cb649-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">amsmath</span>}</span> -<span id="cb649-4"><a href="#cb649-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInlineMath</span>#1{<span class="kw">\begin</span>{<span class="ex">math</span>}<span class="ss">#1</span><span class="sc">\dots\end</span><span class="ss">{math}}</span></span> -<span id="cb649-5"><a href="#cb649-5" aria-hidden="true" tabindex="-1"></a><span class="sc">\def\markdownRendererDisplayMath</span><span class="ss">#1{</span><span class="kw">\begin</span>{<span class="ex">equation</span>}<span class="ss">#1</span><span class="sc">\end</span><span class="ss">{equation}}</span></span> -<span id="cb649-6"><a href="#cb649-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb649-7"><a href="#cb649-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb649-8"><a href="#cb649-8" aria-hidden="true" tabindex="-1"></a><span class="er">$</span><span class="ss">E=mc^2</span><span class="er">$</span></span> -<span id="cb649-9"><a href="#cb649-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb649-10"><a href="#cb649-10" aria-hidden="true" tabindex="-1"></a><span class="er">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx</span><span class="er">$$</span></span> -<span id="cb649-11"><a href="#cb649-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb649-12"><a href="#cb649-12" aria-hidden="true" tabindex="-1"></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="cb650"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb650-1"><a href="#cb650-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb650-1"><a href="#cb650-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb650-2"><a href="#cb650-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[texMathDollars]{<span class="ex">markdown</span>}</span> +<span id="cb650-3"><a href="#cb650-3" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">amsmath</span>}</span> +<span id="cb650-4"><a href="#cb650-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInlineMath</span>#1{<span class="kw">\begin</span>{<span class="ex">math</span>}<span class="ss">#1</span><span class="sc">\dots\end</span><span class="ss">{math}}</span></span> +<span id="cb650-5"><a href="#cb650-5" aria-hidden="true" tabindex="-1"></a><span class="sc">\def\markdownRendererDisplayMath</span><span class="ss">#1{</span><span class="kw">\begin</span>{<span class="ex">equation</span>}<span class="ss">#1</span><span class="sc">\end</span><span class="ss">{equation}}</span></span> +<span id="cb650-6"><a href="#cb650-6" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb650-7"><a href="#cb650-7" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb650-8"><a href="#cb650-8" aria-hidden="true" tabindex="-1"></a><span class="er">$</span><span class="ss">E=mc^2</span><span class="er">$</span></span> +<span id="cb650-9"><a href="#cb650-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb650-10"><a href="#cb650-10" aria-hidden="true" tabindex="-1"></a><span class="er">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx</span><span class="er">$$</span></span> +<span id="cb650-11"><a href="#cb650-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb650-12"><a href="#cb650-12" aria-hidden="true" tabindex="-1"></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="cb651"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb651-1"><a href="#cb651-1" aria-hidden="true" tabindex="-1"></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> @@ -12164,21 +12251,21 @@ class="math display"><em>fĚ</em>(<em>Ξ</em>)â=ââŤ<sub>ââ</sub><sup>â 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="cb651"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb651-1"><a href="#cb651-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb651-2"><a href="#cb651-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathDollars = yes]</span> -<span id="cb651-3"><a href="#cb651-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInlineMath</span>#1{<span class="ss">$#1</span><span class="sc">\dots</span><span class="ss">$</span>}<span class="co">%</span></span> -<span id="cb651-4"><a href="#cb651-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDisplayMath</span>#1{<span class="fu">\placeformula\startformula</span>#1<span class="fu">\stopformula</span>}<span class="co">%</span></span> -<span id="cb651-5"><a href="#cb651-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb651-6"><a href="#cb651-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb651-7"><a href="#cb651-7" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> -<span id="cb651-8"><a href="#cb651-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb651-9"><a href="#cb651-9" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> -<span id="cb651-10"><a href="#cb651-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb651-11"><a href="#cb651-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb652"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb652-1"><a href="#cb652-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb652-1"><a href="#cb652-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb652-2"><a href="#cb652-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[texMathDollars = yes]</span> +<span id="cb652-3"><a href="#cb652-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererInlineMath</span>#1{<span class="ss">$#1</span><span class="sc">\dots</span><span class="ss">$</span>}<span class="co">%</span></span> +<span id="cb652-4"><a href="#cb652-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererDisplayMath</span>#1{<span class="fu">\placeformula\startformula</span>#1<span class="fu">\stopformula</span>}<span class="co">%</span></span> +<span id="cb652-5"><a href="#cb652-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb652-6"><a href="#cb652-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb652-7"><a href="#cb652-7" aria-hidden="true" tabindex="-1"></a><span class="ss">$E=mc^2$</span></span> +<span id="cb652-8"><a href="#cb652-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb652-9"><a href="#cb652-9" aria-hidden="true" tabindex="-1"></a><span class="ss">$$</span><span class="sc">\hat</span><span class="ss">{f} </span><span class="sc">\left</span><span class="ss"> ( </span><span class="sc">\xi</span><span class="ss"> </span><span class="sc">\right</span><span class="ss"> )= </span><span class="sc">\int</span><span class="ss">_{-</span><span class="sc">\infty</span><span class="ss">}^{</span><span class="sc">\infty</span><span class="ss">} f</span><span class="sc">\left</span><span class="ss"> ( x </span><span class="sc">\right</span><span class="ss"> ) e^{-i2</span><span class="sc">\pi</span><span class="ss"> </span><span class="sc">\xi</span><span class="ss"> x} dx$$</span></span> +<span id="cb652-10"><a href="#cb652-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb652-11"><a href="#cb652-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb653"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb653-1"><a href="#cb653-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -12196,20 +12283,20 @@ thematic break. The macro receives no arguments.</p> 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="cb653"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb653-1"><a href="#cb653-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb653-2"><a href="#cb653-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererThematicBreak</span>{<span class="fu">\vfil\break</span>}</span> -<span id="cb653-3"><a href="#cb653-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb653-4"><a href="#cb653-4" aria-hidden="true" tabindex="-1"></a>This is the first page.</span> -<span id="cb653-5"><a href="#cb653-5" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb653-6"><a href="#cb653-6" aria-hidden="true" tabindex="-1"></a>***</span> -<span id="cb653-7"><a href="#cb653-7" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb653-8"><a href="#cb653-8" aria-hidden="true" tabindex="-1"></a>This is the second page.</span> -<span id="cb653-9"><a href="#cb653-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb653-10"><a href="#cb653-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb654"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb654-1"><a href="#cb654-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb654-1"><a href="#cb654-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb654-2"><a href="#cb654-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererThematicBreak</span>{<span class="fu">\vfil\break</span>}</span> +<span id="cb654-3"><a href="#cb654-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb654-4"><a href="#cb654-4" aria-hidden="true" tabindex="-1"></a>This is the first page.</span> +<span id="cb654-5"><a href="#cb654-5" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb654-6"><a href="#cb654-6" aria-hidden="true" tabindex="-1"></a>***</span> +<span id="cb654-7"><a href="#cb654-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb654-8"><a href="#cb654-8" aria-hidden="true" tabindex="-1"></a>This is the second page.</span> +<span id="cb654-9"><a href="#cb654-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb654-10"><a href="#cb654-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb655"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb655-1"><a href="#cb655-1" aria-hidden="true" tabindex="-1"></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> @@ -12221,26 +12308,26 @@ contain the following text:</p> 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="cb655"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb655-1"><a href="#cb655-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb655-2"><a href="#cb655-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb655-3"><a href="#cb655-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb655-4"><a href="#cb655-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb655-5"><a href="#cb655-5" aria-hidden="true" tabindex="-1"></a> thematicBreak = <span class="fu">\newpage</span>,</span> -<span id="cb655-6"><a href="#cb655-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb655-7"><a href="#cb655-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb655-8"><a href="#cb655-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb655-9"><a href="#cb655-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb655-10"><a href="#cb655-10" aria-hidden="true" tabindex="-1"></a>This is the first page.</span> -<span id="cb655-11"><a href="#cb655-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb655-12"><a href="#cb655-12" aria-hidden="true" tabindex="-1"></a>***</span> -<span id="cb655-13"><a href="#cb655-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb655-14"><a href="#cb655-14" aria-hidden="true" tabindex="-1"></a>This is the second page.</span> -<span id="cb655-15"><a href="#cb655-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb655-16"><a href="#cb655-16" aria-hidden="true" tabindex="-1"></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="cb656"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb656-1"><a href="#cb656-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb656-1"><a href="#cb656-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb656-2"><a href="#cb656-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb656-3"><a href="#cb656-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb656-4"><a href="#cb656-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb656-5"><a href="#cb656-5" aria-hidden="true" tabindex="-1"></a> thematicBreak = <span class="fu">\newpage</span>,</span> +<span id="cb656-6"><a href="#cb656-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb656-7"><a href="#cb656-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb656-8"><a href="#cb656-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb656-9"><a href="#cb656-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb656-10"><a href="#cb656-10" aria-hidden="true" tabindex="-1"></a>This is the first page.</span> +<span id="cb656-11"><a href="#cb656-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb656-12"><a href="#cb656-12" aria-hidden="true" tabindex="-1"></a>***</span> +<span id="cb656-13"><a href="#cb656-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb656-14"><a href="#cb656-14" aria-hidden="true" tabindex="-1"></a>This is the second page.</span> +<span id="cb656-15"><a href="#cb656-15" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb656-16"><a href="#cb656-16" aria-hidden="true" tabindex="-1"></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="cb657"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb657-1"><a href="#cb657-1" aria-hidden="true" tabindex="-1"></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> @@ -12252,21 +12339,21 @@ contain the following text:</p> 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="cb657"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb657-1"><a href="#cb657-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb657-2"><a href="#cb657-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererThematicBreak</span>{<span class="fu">\page</span>[yes]}</span> -<span id="cb657-3"><a href="#cb657-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb657-4"><a href="#cb657-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb657-5"><a href="#cb657-5" aria-hidden="true" tabindex="-1"></a>This is the first page.</span> -<span id="cb657-6"><a href="#cb657-6" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb657-7"><a href="#cb657-7" aria-hidden="true" tabindex="-1"></a>***</span> -<span id="cb657-8"><a href="#cb657-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb657-9"><a href="#cb657-9" aria-hidden="true" tabindex="-1"></a>This is the second page.</span> -<span id="cb657-10"><a href="#cb657-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb657-11"><a href="#cb657-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb658"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb658-1"><a href="#cb658-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb658-1"><a href="#cb658-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb658-2"><a href="#cb658-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererThematicBreak</span>{<span class="fu">\page</span>[yes]}</span> +<span id="cb658-3"><a href="#cb658-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb658-4"><a href="#cb658-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb658-5"><a href="#cb658-5" aria-hidden="true" tabindex="-1"></a>This is the first page.</span> +<span id="cb658-6"><a href="#cb658-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb658-7"><a href="#cb658-7" aria-hidden="true" tabindex="-1"></a>***</span> +<span id="cb658-8"><a href="#cb658-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb658-9"><a href="#cb658-9" aria-hidden="true" tabindex="-1"></a>This is the second page.</span> +<span id="cb658-10"><a href="#cb658-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb658-11"><a href="#cb658-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb659"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb659-1"><a href="#cb659-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -12288,24 +12375,24 @@ respectively.</p> 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="cb659"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb659-1"><a href="#cb659-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb659-2"><a href="#cb659-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span> -<span id="cb659-3"><a href="#cb659-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb659-4"><a href="#cb659-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb659-5"><a href="#cb659-5" aria-hidden="true" tabindex="-1"></a> untickedBox = No,</span> -<span id="cb659-6"><a href="#cb659-6" aria-hidden="true" tabindex="-1"></a> tickedBox = Yes,</span> -<span id="cb659-7"><a href="#cb659-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb659-8"><a href="#cb659-8" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb659-9"><a href="#cb659-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb659-10"><a href="#cb659-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb659-11"><a href="#cb659-11" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> -<span id="cb659-12"><a href="#cb659-12" aria-hidden="true" tabindex="-1"></a>- [x] I can!</span> -<span id="cb659-13"><a href="#cb659-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb659-14"><a href="#cb659-14" aria-hidden="true" tabindex="-1"></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="cb660"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb660-1"><a href="#cb660-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb660-1"><a href="#cb660-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb660-2"><a href="#cb660-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[taskLists]{<span class="ex">markdown</span>}</span> +<span id="cb660-3"><a href="#cb660-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb660-4"><a href="#cb660-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb660-5"><a href="#cb660-5" aria-hidden="true" tabindex="-1"></a> untickedBox = No,</span> +<span id="cb660-6"><a href="#cb660-6" aria-hidden="true" tabindex="-1"></a> tickedBox = Yes,</span> +<span id="cb660-7"><a href="#cb660-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb660-8"><a href="#cb660-8" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb660-9"><a href="#cb660-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb660-10"><a href="#cb660-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb660-11"><a href="#cb660-11" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> +<span id="cb660-12"><a href="#cb660-12" aria-hidden="true" tabindex="-1"></a>- [x] I can!</span> +<span id="cb660-13"><a href="#cb660-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb660-14"><a href="#cb660-14" aria-hidden="true" tabindex="-1"></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="cb661"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb661-1"><a href="#cb661-1" aria-hidden="true" tabindex="-1"></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> @@ -12318,20 +12405,20 @@ contain the following text:</p> 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="cb661"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb661-1"><a href="#cb661-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb661-2"><a href="#cb661-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[taskLists = yes]</span> -<span id="cb661-3"><a href="#cb661-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span> -<span id="cb661-4"><a href="#cb661-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span> -<span id="cb661-5"><a href="#cb661-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb661-6"><a href="#cb661-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb661-7"><a href="#cb661-7" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> -<span id="cb661-8"><a href="#cb661-8" aria-hidden="true" tabindex="-1"></a>- [x] I can!</span> -<span id="cb661-9"><a href="#cb661-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb661-10"><a href="#cb661-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb662"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb662-1"><a href="#cb662-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb662-1"><a href="#cb662-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb662-2"><a href="#cb662-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[taskLists = yes]</span> +<span id="cb662-3"><a href="#cb662-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererUntickedBox</span>{No}</span> +<span id="cb662-4"><a href="#cb662-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTickedBox</span>{Yes}</span> +<span id="cb662-5"><a href="#cb662-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb662-6"><a href="#cb662-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb662-7"><a href="#cb662-7" aria-hidden="true" tabindex="-1"></a>- [ ] you can't.</span> +<span id="cb662-8"><a href="#cb662-8" aria-hidden="true" tabindex="-1"></a>- [x] I can!</span> +<span id="cb662-9"><a href="#cb662-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb662-10"><a href="#cb662-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb663"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb663-1"><a href="#cb663-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -12403,23 +12490,23 @@ rules.</p> 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="cb663"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb663-1"><a href="#cb663-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb663-2"><a href="#cb663-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span> -<span id="cb663-3"><a href="#cb663-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span> -<span id="cb663-4"><a href="#cb663-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span> -<span id="cb663-5"><a href="#cb663-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> -<span id="cb663-6"><a href="#cb663-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> -<span id="cb663-7"><a href="#cb663-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb663-8"><a href="#cb663-8" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb663-9"><a href="#cb663-9" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb663-10"><a href="#cb663-10" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb663-11"><a href="#cb663-11" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb663-12"><a href="#cb663-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb663-13"><a href="#cb663-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb664"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb664-1"><a href="#cb664-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb664-1"><a href="#cb664-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb664-2"><a href="#cb664-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span> +<span id="cb664-3"><a href="#cb664-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span> +<span id="cb664-4"><a href="#cb664-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span> +<span id="cb664-5"><a href="#cb664-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> +<span id="cb664-6"><a href="#cb664-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> +<span id="cb664-7"><a href="#cb664-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb664-8"><a href="#cb664-8" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb664-9"><a href="#cb664-9" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb664-10"><a href="#cb664-10" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb664-11"><a href="#cb664-11" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb664-12"><a href="#cb664-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb664-13"><a href="#cb664-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb665"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb665-1"><a href="#cb665-1" aria-hidden="true" tabindex="-1"></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> @@ -12429,29 +12516,29 @@ contain the following text:</p> 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="cb665"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb665-1"><a href="#cb665-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb665-2"><a href="#cb665-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> -<span id="cb665-3"><a href="#cb665-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb665-4"><a href="#cb665-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb665-5"><a href="#cb665-5" aria-hidden="true" tabindex="-1"></a> jekyllDataString = {<span class="fu">\gdef\name</span>{#2}},</span> -<span id="cb665-6"><a href="#cb665-6" aria-hidden="true" tabindex="-1"></a> jekyllDataNumber = {<span class="fu">\gdef\age</span>{#2}},</span> -<span id="cb665-7"><a href="#cb665-7" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> -<span id="cb665-8"><a href="#cb665-8" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb665-9"><a href="#cb665-9" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb665-10"><a href="#cb665-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb665-11"><a href="#cb665-11" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb665-12"><a href="#cb665-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb665-13"><a href="#cb665-13" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb665-14"><a href="#cb665-14" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb665-15"><a href="#cb665-15" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb665-16"><a href="#cb665-16" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb665-17"><a href="#cb665-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb665-18"><a href="#cb665-18" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb665-19"><a href="#cb665-19" aria-hidden="true" tabindex="-1"></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="cb666"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb666-1"><a href="#cb666-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb666-1"><a href="#cb666-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb666-2"><a href="#cb666-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> +<span id="cb666-3"><a href="#cb666-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb666-4"><a href="#cb666-4" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb666-5"><a href="#cb666-5" aria-hidden="true" tabindex="-1"></a> jekyllDataString = {<span class="fu">\gdef\name</span>{#2}},</span> +<span id="cb666-6"><a href="#cb666-6" aria-hidden="true" tabindex="-1"></a> jekyllDataNumber = {<span class="fu">\gdef\age</span>{#2}},</span> +<span id="cb666-7"><a href="#cb666-7" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> +<span id="cb666-8"><a href="#cb666-8" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb666-9"><a href="#cb666-9" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb666-10"><a href="#cb666-10" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb666-11"><a href="#cb666-11" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb666-12"><a href="#cb666-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb666-13"><a href="#cb666-13" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb666-14"><a href="#cb666-14" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb666-15"><a href="#cb666-15" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb666-16"><a href="#cb666-16" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb666-17"><a href="#cb666-17" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb666-18"><a href="#cb666-18" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb666-19"><a href="#cb666-19" aria-hidden="true" tabindex="-1"></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="cb667"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb667-1"><a href="#cb667-1" aria-hidden="true" tabindex="-1"></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> @@ -12461,26 +12548,26 @@ contain the following text:</p> 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="cb667"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb667-1"><a href="#cb667-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb667-2"><a href="#cb667-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[jekyllData = yes]</span> -<span id="cb667-3"><a href="#cb667-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span> -<span id="cb667-4"><a href="#cb667-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span> -<span id="cb667-5"><a href="#cb667-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> -<span id="cb667-6"><a href="#cb667-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> -<span id="cb667-7"><a href="#cb667-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb667-8"><a href="#cb667-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb667-9"><a href="#cb667-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb667-10"><a href="#cb667-10" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb667-11"><a href="#cb667-11" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb667-12"><a href="#cb667-12" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb667-13"><a href="#cb667-13" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb667-14"><a href="#cb667-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb667-15"><a href="#cb667-15" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb667-16"><a href="#cb667-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb668"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb668-1"><a href="#cb668-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb668-1"><a href="#cb668-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb668-2"><a href="#cb668-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[jekyllData = yes]</span> +<span id="cb668-3"><a href="#cb668-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataString</span>#1#2{<span class="fu">\gdef\name</span>{#2}}</span> +<span id="cb668-4"><a href="#cb668-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataNumber</span>#1#2{<span class="fu">\gdef\age</span>{#2}}</span> +<span id="cb668-5"><a href="#cb668-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> +<span id="cb668-6"><a href="#cb668-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> +<span id="cb668-7"><a href="#cb668-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb668-8"><a href="#cb668-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb668-9"><a href="#cb668-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb668-10"><a href="#cb668-10" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb668-11"><a href="#cb668-11" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb668-12"><a href="#cb668-12" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb668-13"><a href="#cb668-13" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb668-14"><a href="#cb668-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb668-15"><a href="#cb668-15" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb668-16"><a href="#cb668-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb669"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb669-1"><a href="#cb669-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -12496,25 +12583,25 @@ class="tex">T<sub>e</sub>X</span> macros, further referred to as 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="cb669"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb669-1"><a href="#cb669-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb669-2"><a href="#cb669-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span> -<span id="cb669-3"><a href="#cb669-3" aria-hidden="true" tabindex="-1"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span> -<span id="cb669-4"><a href="#cb669-4" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb669-5"><a href="#cb669-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb669-6"><a href="#cb669-6" aria-hidden="true" tabindex="-1"></a>~</span> -<span id="cb669-7"><a href="#cb669-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb669-8"><a href="#cb669-8" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb669-9"><a href="#cb669-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span> -<span id="cb669-10"><a href="#cb669-10" aria-hidden="true" tabindex="-1"></a> User-defined token renderers take precedence.<span class="co">%</span></span> -<span id="cb669-11"><a href="#cb669-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb669-12"><a href="#cb669-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb669-13"><a href="#cb669-13" aria-hidden="true" tabindex="-1"></a>~</span> -<span id="cb669-14"><a href="#cb669-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb669-15"><a href="#cb669-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb670"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb670-1"><a href="#cb670-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb670-1"><a href="#cb670-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb670-2"><a href="#cb670-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span> +<span id="cb670-3"><a href="#cb670-3" aria-hidden="true" tabindex="-1"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span> +<span id="cb670-4"><a href="#cb670-4" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb670-5"><a href="#cb670-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb670-6"><a href="#cb670-6" aria-hidden="true" tabindex="-1"></a>~</span> +<span id="cb670-7"><a href="#cb670-7" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb670-8"><a href="#cb670-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb670-9"><a href="#cb670-9" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span> +<span id="cb670-10"><a href="#cb670-10" aria-hidden="true" tabindex="-1"></a> User-defined token renderers take precedence.<span class="co">%</span></span> +<span id="cb670-11"><a href="#cb670-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb670-12"><a href="#cb670-12" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb670-13"><a href="#cb670-13" aria-hidden="true" tabindex="-1"></a>~</span> +<span id="cb670-14"><a href="#cb670-14" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb670-15"><a href="#cb670-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb671"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb671-1"><a href="#cb671-1" aria-hidden="true" tabindex="-1"></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> @@ -12525,30 +12612,30 @@ contain the following text:</p> 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="cb671"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb671-1"><a href="#cb671-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb671-2"><a href="#cb671-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> -<span id="cb671-3"><a href="#cb671-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb671-4"><a href="#cb671-4" aria-hidden="true" tabindex="-1"></a> rendererPrototypes = {</span> -<span id="cb671-5"><a href="#cb671-5" aria-hidden="true" tabindex="-1"></a> tilde = {Packages can specify token renderer prototypes.},</span> -<span id="cb671-6"><a href="#cb671-6" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb671-7"><a href="#cb671-7" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb671-8"><a href="#cb671-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb671-9"><a href="#cb671-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb671-10"><a href="#cb671-10" aria-hidden="true" tabindex="-1"></a>~</span> -<span id="cb671-11"><a href="#cb671-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb671-12"><a href="#cb671-12" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb671-13"><a href="#cb671-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> -<span id="cb671-14"><a href="#cb671-14" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb671-15"><a href="#cb671-15" aria-hidden="true" tabindex="-1"></a> tilde = {User-defined token renderers take precedence.},</span> -<span id="cb671-16"><a href="#cb671-16" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb671-17"><a href="#cb671-17" aria-hidden="true" tabindex="-1"></a>]</span> -<span id="cb671-18"><a href="#cb671-18" aria-hidden="true" tabindex="-1"></a>~</span> -<span id="cb671-19"><a href="#cb671-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb671-20"><a href="#cb671-20" aria-hidden="true" tabindex="-1"></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="cb672"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb672-1"><a href="#cb672-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb672-1"><a href="#cb672-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb672-2"><a href="#cb672-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</span> +<span id="cb672-3"><a href="#cb672-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb672-4"><a href="#cb672-4" aria-hidden="true" tabindex="-1"></a> rendererPrototypes = {</span> +<span id="cb672-5"><a href="#cb672-5" aria-hidden="true" tabindex="-1"></a> tilde = {Packages can specify token renderer prototypes.},</span> +<span id="cb672-6"><a href="#cb672-6" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb672-7"><a href="#cb672-7" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb672-8"><a href="#cb672-8" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb672-9"><a href="#cb672-9" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb672-10"><a href="#cb672-10" aria-hidden="true" tabindex="-1"></a>~</span> +<span id="cb672-11"><a href="#cb672-11" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb672-12"><a href="#cb672-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb672-13"><a href="#cb672-13" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}[</span> +<span id="cb672-14"><a href="#cb672-14" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb672-15"><a href="#cb672-15" aria-hidden="true" tabindex="-1"></a> tilde = {User-defined token renderers take precedence.},</span> +<span id="cb672-16"><a href="#cb672-16" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb672-17"><a href="#cb672-17" aria-hidden="true" tabindex="-1"></a>]</span> +<span id="cb672-18"><a href="#cb672-18" aria-hidden="true" tabindex="-1"></a>~</span> +<span id="cb672-19"><a href="#cb672-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb672-20"><a href="#cb672-20" aria-hidden="true" tabindex="-1"></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="cb673"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb673-1"><a href="#cb673-1" aria-hidden="true" tabindex="-1"></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> @@ -12559,26 +12646,26 @@ contain the following text:</p> 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="cb673"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb673-1"><a href="#cb673-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb673-2"><a href="#cb673-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span> -<span id="cb673-3"><a href="#cb673-3" aria-hidden="true" tabindex="-1"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span> -<span id="cb673-4"><a href="#cb673-4" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb673-5"><a href="#cb673-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb673-6"><a href="#cb673-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb673-7"><a href="#cb673-7" aria-hidden="true" tabindex="-1"></a>~</span> -<span id="cb673-8"><a href="#cb673-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb673-9"><a href="#cb673-9" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb673-10"><a href="#cb673-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span> -<span id="cb673-11"><a href="#cb673-11" aria-hidden="true" tabindex="-1"></a> User-defined token renderers take precedence.<span class="co">%</span></span> -<span id="cb673-12"><a href="#cb673-12" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb673-13"><a href="#cb673-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb673-14"><a href="#cb673-14" aria-hidden="true" tabindex="-1"></a>~</span> -<span id="cb673-15"><a href="#cb673-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb673-16"><a href="#cb673-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb674"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb674-1"><a href="#cb674-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb674-1"><a href="#cb674-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb674-2"><a href="#cb674-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTildePrototype</span>{<span class="co">%</span></span> +<span id="cb674-3"><a href="#cb674-3" aria-hidden="true" tabindex="-1"></a> Packages can specify token renderer prototypes.<span class="co">%</span></span> +<span id="cb674-4"><a href="#cb674-4" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb674-5"><a href="#cb674-5" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb674-6"><a href="#cb674-6" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb674-7"><a href="#cb674-7" aria-hidden="true" tabindex="-1"></a>~</span> +<span id="cb674-8"><a href="#cb674-8" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb674-9"><a href="#cb674-9" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb674-10"><a href="#cb674-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererTilde</span>{<span class="co">%</span></span> +<span id="cb674-11"><a href="#cb674-11" aria-hidden="true" tabindex="-1"></a> User-defined token renderers take precedence.<span class="co">%</span></span> +<span id="cb674-12"><a href="#cb674-12" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb674-13"><a href="#cb674-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb674-14"><a href="#cb674-14" aria-hidden="true" tabindex="-1"></a>~</span> +<span id="cb674-15"><a href="#cb674-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb674-16"><a href="#cb674-16" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb675"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb675-1"><a href="#cb675-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -12596,29 +12683,29 @@ the <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>3 kernel.</p> 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="cb675"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb675-1"><a href="#cb675-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> -<span id="cb675-2"><a href="#cb675-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span> -<span id="cb675-3"><a href="#cb675-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb675-4"><a href="#cb675-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> -<span id="cb675-5"><a href="#cb675-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> -<span id="cb675-6"><a href="#cb675-6" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb675-7"><a href="#cb675-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> -<span id="cb675-8"><a href="#cb675-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> -<span id="cb675-9"><a href="#cb675-9" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb675-10"><a href="#cb675-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb675-11"><a href="#cb675-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> -<span id="cb675-12"><a href="#cb675-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> -<span id="cb675-13"><a href="#cb675-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> -<span id="cb675-14"><a href="#cb675-14" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb675-15"><a href="#cb675-15" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb675-16"><a href="#cb675-16" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb675-17"><a href="#cb675-17" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb675-18"><a href="#cb675-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> -<span id="cb675-19"><a href="#cb675-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb676"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb676-1"><a href="#cb676-1" aria-hidden="true" tabindex="-1"></a><span class="ex">luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb676-1"><a href="#cb676-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\input</span> markdown</span> +<span id="cb676-2"><a href="#cb676-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownOptionJekyllData</span>{true}</span> +<span id="cb676-3"><a href="#cb676-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb676-4"><a href="#cb676-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> +<span id="cb676-5"><a href="#cb676-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> +<span id="cb676-6"><a href="#cb676-6" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb676-7"><a href="#cb676-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> +<span id="cb676-8"><a href="#cb676-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> +<span id="cb676-9"><a href="#cb676-9" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb676-10"><a href="#cb676-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb676-11"><a href="#cb676-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> +<span id="cb676-12"><a href="#cb676-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> +<span id="cb676-13"><a href="#cb676-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownBegin</span></span> +<span id="cb676-14"><a href="#cb676-14" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb676-15"><a href="#cb676-15" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb676-16"><a href="#cb676-16" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb676-17"><a href="#cb676-17" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb676-18"><a href="#cb676-18" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownEnd</span></span> +<span id="cb676-19"><a href="#cb676-19" aria-hidden="true" tabindex="-1"></a><span class="fu">\bye</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb677"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb677-1"><a href="#cb677-1" aria-hidden="true" tabindex="-1"></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> @@ -12628,31 +12715,31 @@ contain the following text:</p> 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="cb677"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb677-1"><a href="#cb677-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> -<span id="cb677-2"><a href="#cb677-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> -<span id="cb677-3"><a href="#cb677-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> -<span id="cb677-4"><a href="#cb677-4" aria-hidden="true" tabindex="-1"></a> jekyllDataRenderers = {</span> -<span id="cb677-5"><a href="#cb677-5" aria-hidden="true" tabindex="-1"></a> name = {<span class="fu">\gdef\name</span>{#1}},</span> -<span id="cb677-6"><a href="#cb677-6" aria-hidden="true" tabindex="-1"></a> code = {<span class="fu">\gdef\age</span>{#1}},</span> -<span id="cb677-7"><a href="#cb677-7" aria-hidden="true" tabindex="-1"></a> },</span> -<span id="cb677-8"><a href="#cb677-8" aria-hidden="true" tabindex="-1"></a> renderers = {</span> -<span id="cb677-9"><a href="#cb677-9" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> -<span id="cb677-10"><a href="#cb677-10" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb677-11"><a href="#cb677-11" aria-hidden="true" tabindex="-1"></a>}</span> -<span id="cb677-12"><a href="#cb677-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> -<span id="cb677-13"><a href="#cb677-13" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb677-14"><a href="#cb677-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> -<span id="cb677-15"><a href="#cb677-15" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb677-16"><a href="#cb677-16" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb677-17"><a href="#cb677-17" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb677-18"><a href="#cb677-18" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb677-19"><a href="#cb677-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> -<span id="cb677-20"><a href="#cb677-20" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb677-21"><a href="#cb677-21" aria-hidden="true" tabindex="-1"></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="cb678"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb678-1"><a href="#cb678-1" aria-hidden="true" tabindex="-1"></a><span class="ex">lualatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb678-1"><a href="#cb678-1" aria-hidden="true" tabindex="-1"></a><span class="bu">\documentclass</span>{<span class="ex">article</span>}</span> +<span id="cb678-2"><a href="#cb678-2" aria-hidden="true" tabindex="-1"></a><span class="bu">\usepackage</span>[jekyllData]{<span class="ex">markdown</span>}</span> +<span id="cb678-3"><a href="#cb678-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\markdownSetup</span>{</span> +<span id="cb678-4"><a href="#cb678-4" aria-hidden="true" tabindex="-1"></a> jekyllDataRenderers = {</span> +<span id="cb678-5"><a href="#cb678-5" aria-hidden="true" tabindex="-1"></a> name = {<span class="fu">\gdef\name</span>{#1}},</span> +<span id="cb678-6"><a href="#cb678-6" aria-hidden="true" tabindex="-1"></a> code = {<span class="fu">\gdef\age</span>{#1}},</span> +<span id="cb678-7"><a href="#cb678-7" aria-hidden="true" tabindex="-1"></a> },</span> +<span id="cb678-8"><a href="#cb678-8" aria-hidden="true" tabindex="-1"></a> renderers = {</span> +<span id="cb678-9"><a href="#cb678-9" aria-hidden="true" tabindex="-1"></a> jekyllDataEnd = {<span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.},</span> +<span id="cb678-10"><a href="#cb678-10" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb678-11"><a href="#cb678-11" aria-hidden="true" tabindex="-1"></a>}</span> +<span id="cb678-12"><a href="#cb678-12" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">document</span>}</span> +<span id="cb678-13"><a href="#cb678-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb678-14"><a href="#cb678-14" aria-hidden="true" tabindex="-1"></a><span class="kw">\begin</span>{<span class="ex">markdown</span>}</span> +<span id="cb678-15"><a href="#cb678-15" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb678-16"><a href="#cb678-16" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb678-17"><a href="#cb678-17" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb678-18"><a href="#cb678-18" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb678-19"><a href="#cb678-19" aria-hidden="true" tabindex="-1"></a><span class="kw">\end</span>{<span class="ex">markdown</span>}</span> +<span id="cb678-20"><a href="#cb678-20" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb678-21"><a href="#cb678-21" aria-hidden="true" tabindex="-1"></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="cb679"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb679-1"><a href="#cb679-1" aria-hidden="true" tabindex="-1"></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> @@ -12662,32 +12749,32 @@ contain the following text:</p> 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="cb679"><pre -class="sourceCode tex"><code class="sourceCode latex"><span id="cb679-1"><a href="#cb679-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> -<span id="cb679-2"><a href="#cb679-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[jekyllData = yes]</span> -<span id="cb679-3"><a href="#cb679-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> -<span id="cb679-4"><a href="#cb679-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> -<span id="cb679-5"><a href="#cb679-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> -<span id="cb679-6"><a href="#cb679-6" aria-hidden="true" tabindex="-1"></a> {</span> -<span id="cb679-7"><a href="#cb679-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> -<span id="cb679-8"><a href="#cb679-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> -<span id="cb679-9"><a href="#cb679-9" aria-hidden="true" tabindex="-1"></a> }</span> -<span id="cb679-10"><a href="#cb679-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> -<span id="cb679-11"><a href="#cb679-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> -<span id="cb679-12"><a href="#cb679-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> -<span id="cb679-13"><a href="#cb679-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> -<span id="cb679-14"><a href="#cb679-14" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb679-15"><a href="#cb679-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> -<span id="cb679-16"><a href="#cb679-16" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb679-17"><a href="#cb679-17" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> -<span id="cb679-18"><a href="#cb679-18" aria-hidden="true" tabindex="-1"></a>age: 99</span> -<span id="cb679-19"><a href="#cb679-19" aria-hidden="true" tabindex="-1"></a>---</span> -<span id="cb679-20"><a href="#cb679-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> -<span id="cb679-21"><a href="#cb679-21" aria-hidden="true" tabindex="-1"></a></span> -<span id="cb679-22"><a href="#cb679-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb680"><pre -class="sourceCode sh"><code class="sourceCode bash"><span id="cb680-1"><a href="#cb680-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--luatex</span> document.tex</span></code></pre></div> +class="sourceCode tex"><code class="sourceCode latex"><span id="cb680-1"><a href="#cb680-1" aria-hidden="true" tabindex="-1"></a><span class="fu">\usemodule</span>[t][markdown]</span> +<span id="cb680-2"><a href="#cb680-2" aria-hidden="true" tabindex="-1"></a><span class="fu">\setupmarkdown</span>[jekyllData = yes]</span> +<span id="cb680-3"><a href="#cb680-3" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOn</span></span> +<span id="cb680-4"><a href="#cb680-4" aria-hidden="true" tabindex="-1"></a><span class="fu">\keys</span>_define:nn</span> +<span id="cb680-5"><a href="#cb680-5" aria-hidden="true" tabindex="-1"></a> { markdown/jekyllData }</span> +<span id="cb680-6"><a href="#cb680-6" aria-hidden="true" tabindex="-1"></a> {</span> +<span id="cb680-7"><a href="#cb680-7" aria-hidden="true" tabindex="-1"></a> name .code:n = { <span class="fu">\gdef\name</span>{#1} },</span> +<span id="cb680-8"><a href="#cb680-8" aria-hidden="true" tabindex="-1"></a> age .code:n = { <span class="fu">\gdef\age</span>{#1} },</span> +<span id="cb680-9"><a href="#cb680-9" aria-hidden="true" tabindex="-1"></a> }</span> +<span id="cb680-10"><a href="#cb680-10" aria-hidden="true" tabindex="-1"></a><span class="fu">\ExplSyntaxOff</span></span> +<span id="cb680-11"><a href="#cb680-11" aria-hidden="true" tabindex="-1"></a><span class="fu">\def\markdownRendererJekyllDataEnd</span>{<span class="co">%</span></span> +<span id="cb680-12"><a href="#cb680-12" aria-hidden="true" tabindex="-1"></a> <span class="fu">\name</span>{} is <span class="fu">\age</span>{} years old.}</span> +<span id="cb680-13"><a href="#cb680-13" aria-hidden="true" tabindex="-1"></a><span class="fu">\starttext</span></span> +<span id="cb680-14"><a href="#cb680-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb680-15"><a href="#cb680-15" aria-hidden="true" tabindex="-1"></a><span class="fu">\startmarkdown</span></span> +<span id="cb680-16"><a href="#cb680-16" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb680-17"><a href="#cb680-17" aria-hidden="true" tabindex="-1"></a>name: Jane Doe</span> +<span id="cb680-18"><a href="#cb680-18" aria-hidden="true" tabindex="-1"></a>age: 99</span> +<span id="cb680-19"><a href="#cb680-19" aria-hidden="true" tabindex="-1"></a>---</span> +<span id="cb680-20"><a href="#cb680-20" aria-hidden="true" tabindex="-1"></a><span class="fu">\stopmarkdown</span></span> +<span id="cb680-21"><a href="#cb680-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb680-22"><a href="#cb680-22" aria-hidden="true" tabindex="-1"></a><span class="fu">\stoptext</span></span></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb681"><pre +class="sourceCode sh"><code class="sourceCode bash"><span id="cb681-1"><a href="#cb681-1" aria-hidden="true" tabindex="-1"></a><span class="ex">context</span> <span class="at">--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> @@ -12703,27 +12790,9 @@ class="footnote-back" role="doc-backlink">âŠď¸</a></p></li> <li id="fn2"><p>Inlines notes are easier to write, since you donât have to pick an identifier and move down to type the note.<a href="#fnref2" class="footnote-back" role="doc-backlink">âŠď¸</a></p></li> -<li id="fn3"><p>Here is the note.<a href="#fnref3" class="footnote-back" -role="doc-backlink">âŠď¸</a></p></li> -<li id="fn4"><p>Hereâs one with multiple blocks.</p> -<p>Subsequent paragraphs are indented to show that they belong to the -previous note.</p> -<pre><code>{ some.code }</code></pre> -<p>The whole paragraph can be indented, or just the first line. In this -way, multi-paragraph notes work like multi-paragraph list items.<a -href="#fnref4" class="footnote-back" role="doc-backlink">âŠď¸</a></p></li> -<li id="fn5"><p>Here is the note.<a href="#fnref5" class="footnote-back" -role="doc-backlink">âŠď¸</a></p></li> -<li id="fn6"><p>Hereâs one with multiple blocks.</p> -<p>Subsequent paragraphs are indented to show that they belong to the -previous note.</p> -<pre><code>{ some.code }</code></pre> -<p>The whole paragraph can be indented, or just the first line. In this -way, multi-paragraph notes work like multi-paragraph list items.<a -href="#fnref6" class="footnote-back" role="doc-backlink">âŠď¸</a></p></li> -<li id="fn7"><p>Filenames other than +<li id="fn3"><p>Filenames other than <code>markdown-languages.json</code> may be specified using the -<code>contentBlocksLanguageMap</code> Lua option.<a href="#fnref7" +<code>contentBlocksLanguageMap</code> Lua option.<a href="#fnref3" class="footnote-back" role="doc-backlink">âŠď¸</a></p></li> </ol> </aside> diff --git a/macros/generic/markdown/markdown.ins b/macros/generic/markdown/markdown.ins index 8e777f4217..4261ddfdd4 100644 --- a/macros/generic/markdown/markdown.ins +++ b/macros/generic/markdown/markdown.ins @@ -25,5 +25,6 @@ \file{markdown.css}{\from{markdown.dtx}{manual-css}} \file{markdown-figure-block-diagram.tex}{\from{markdown.dtx}{techdoc-block-diagram}} \file{markdown.bib}{\from{markdown.dtx}{techdoc-bibliography}} + \file{DEPENDS.txt}{\from{markdown.dtx}{depends}} } \endbatchfile diff --git a/macros/generic/markdown/markdown.pdf b/macros/generic/markdown/markdown.pdf Binary files differindex a4e313f081..3787cdbe80 100644 --- a/macros/generic/markdown/markdown.pdf +++ b/macros/generic/markdown/markdown.pdf |