Announcing container-writer: Lua filters for semantic containers in Pandoc, Quarto, LaTeX, ConTeXt and Typst #11609
Replies: 3 comments 7 replies
-
|
I think extending this to also add named styles for ODT and DOCX (paragraph and character styles) could be a useful addition for some users. I use something similar for alert box support across TeX, Typst and ODT… |
Beta Was this translation helpful? Give feedback.
-
|
Another great thing would be support for JATS XML. |
Beta Was this translation helpful? Give feedback.
-
|
I have a comment on the decision to use Typst labels, as in I think this is related to #9955 and would like to note that I originally used Typst labels to control styling but was given the strong impression by the Typst community that this was not the way to go. See for example this Discord discussion (I could add a summary if it would be of interest and it's painful for people to access it). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've released a set of Lua filters designed to improve the handling of semantic containers in Markdown across multiple output formats.
Repository: https://github.com/plbarrio/container-writer
What they do
container-writer.luaConverts
Div/Spanelements with specific classes into native constructs depending on the output format:\begin{name}...\end{name}\startname...\stopname#block [...] <name>container-strip.luaRemoves selected containers entirely — useful for editorial notes or draft-only content.
container-unwrap.luaRemoves container elements while preserving their content.
Key features
note.title.icon)env=...)Use cases
verse) without writing LaTeX in your sourceExamples for LaTeX, ConTeXt, Typst and HTML are included in the repository.
Feedback, suggestions, and edge cases are very welcome.
Beta Was this translation helpful? Give feedback.
All reactions