You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Lua parser of the Markdown package produces renderers, which are then typeset using the expansion processor of TeX. This is a simple design that works for most use cases and makes the output of the Lua parser predictable and amenable to static analysis by third-party tools. However, it also fails to account for commands such as \verb, \end{verbatim}, and \end{frame} that are not processed by TeX's expansion processor and must appear at the top level of the document to be correctly processed.
To support commands that cannot be produced from renderers using expansion, the Markdown package may need a direct mapping mechanism, which would allow the Lua parser to directly produce the commands and their parameters instead of renderers. The direct mapping mechanism could be fully configured from plain TeX as well as from other TeX formats. The direct mapping mechanism will likely make the design of the markdown package more complicated and the output of the Lua parser less useful for third-party tools.
feature requestluaRelated to the Lua interface and implementationplaintexRelated to the plain TeX interface and implementationtug 2021Related to the TUG 2021 conference
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The Lua parser of the Markdown package produces renderers, which are then typeset using the expansion processor of TeX. This is a simple design that works for most use cases and makes the output of the Lua parser predictable and amenable to static analysis by third-party tools. However, it also fails to account for commands such as
\verb
,\end{verbatim}
, and\end{frame}
that are not processed by TeX's expansion processor and must appear at the top level of the document to be correctly processed.To support commands that cannot be produced from renderers using expansion, the Markdown package may need a direct mapping mechanism, which would allow the Lua parser to directly produce the commands and their parameters instead of renderers. The direct mapping mechanism could be fully configured from plain TeX as well as from other TeX formats. The direct mapping mechanism will likely make the design of the markdown package more complicated and the output of the Lua parser less useful for third-party tools.
The idea of the direct mapping of markdown elements has been presented at TUG 2021.
Beta Was this translation helpful? Give feedback.
All reactions