71 releases
Uses new Rust 2024
| 0.14.16 | Apr 5, 2026 |
|---|---|
| 0.14.14 | Mar 27, 2026 |
| 0.14.6-rc2 | Dec 27, 2025 |
| 0.14.4 | Nov 26, 2025 |
| 0.13.10 | Mar 23, 2025 |
#1503 in Programming languages
28 downloads per month
Used in 3 crates
(2 directly)
405KB
9K
SLoC
Typlite
Converts a subset of typst to markdown.
Installation
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Myriad-Dreamin/tinymist/releases/download/v0.14.16/typlite-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Myriad-Dreamin/tinymist/releases/download/v0.14.16/typlite-installer.ps1 | iex"
Usage
# default output is main.md
typlite main.typ
# specify output
typlite main.typ output.md
Supported format:
output.txt: Plain textoutput.md: Markdownoutput.tex: LaTeXoutput.docx: Word
Todo: We may support custom format by typst scripting in future, like:
# specify output
typlite main.typ --post-process @preview/typlite-mdx output.mdx
Feature
- Contexual Content Rendering: Contents begin with
contextkeyword will be rendered as svg output. The svg output will be embedded inline in the output file as base64 by default, if the--assets-pathparameter is not specified. Otherwise, the svg output will be saved in the specified folder and the path will be embedded in the output file.
Typlite-Specific sys.inputs
The sys.input.x-target can be used distinguish with normal HTML export.
#let x-target = sys.inputs.at("x-target", default: "pdf")
#let my-function = if x-target == "md" {
md-impl
} else {
pdf-impl or html-impl
}
Dependencies
~99MB
~1.5M SLoC