Home

Awesome

pandoc 3.1.2 now provides a Typst writer to convert to Typst. A reader is also planned.

Hence, because of upcoming native support for Typst, this extension will not be maintained.


Typst custom reader and writer for Pandoc

Typst is a modern markup-based typesetting system with powerful typesetting and scripting capabilities. It's really great.

Pandoc is a universal document converter that handles lots of formats.

The custom reader.lua and writer.lua allow converting to and from Typst using Pandoc embedded Lua engine.

Usage

pandoc -t writer.lua input.tex -o output.typ
pandoc -f reader.lua input.typ -o output.html

Hint: Try converting this README to Typst!

See Pandoc User's guide for more advanced usage.

TODO

Some planned improvements to be done.


Features completeness

Checked items are minimally supported.
Unchecked items are not supported.

Writer

Blocks

Inlines

Reader

Some Pandoc AST items do not have a dedicated Typst markup. The result is usually obtained by a generic and expected function call, which could be parsed, such as #strike[redacted] or #underline[important].

Blocks

Inlines