mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
| .. | ||
| src | ||
| Cargo.toml | ||
| dist.toml | ||
| README.md | ||
Typlite
Converts a subset of typst to markdown.
Basic Usage
# default output is main.md
typlite main.typ
# specify output
typlite main.typ output.md
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. By specify the--assets-src-pathparameter, the source code of the context will also be saved in the specified folder.For example, the following folder structure is generated by the following command:
typlite main.typ --assets-path assets --assets-src-path assets-src. ├── assets # when --assets-path is specified │ ├── 1_Dark.svg │ └── 1_Light.svg ├── assets-src # when --assets-src-path is specified │ └── 1.typ # 1 is the numbering of the context block ├── main.md # output file └── main.typ # input file -
Raw Output: Raw codes with
typlitelanguage will be directly output into the Markdown result.