Crates.io | typlite |
lib.rs | typlite |
version | 0.13.24 |
created_at | 2025-02-16 07:01:53.550532+00 |
updated_at | 2025-08-26 08:17:59.728108+00 |
description | Converts a subset of typst to markdown. |
homepage | https://github.com/Myriad-Dreamin/tinymist |
repository | https://github.com/Myriad-Dreamin/tinymist |
max_upload_size | |
id | 1557420 |
size | 359,809 |
Converts a subset of typst to markdown.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Myriad-Dreamin/tinymist/releases/download/v0.13.22/typlite-installer.sh | sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Myriad-Dreamin/tinymist/releases/download/v0.13.22/typlite-installer.ps1 | iex"
# 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
: WordTodo: We may support custom format by typst scripting in future, like:
# specify output
typlite main.typ --post-process @preview/typlite-mdx output.mdx
context
keyword will be rendered as svg output. The svg output will be embedded inline in the output file as base64 by default, if the --assets-path
parameter is not specified. Otherwise, the svg output will be saved in the specified folder and the path will be embedded in the output file.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
}