21 releases

new 0.13.12 Apr 30, 2025
0.13.12-rc5 Apr 29, 2025
0.13.10 Mar 23, 2025
0.13.2-rc2 Feb 27, 2025
0.12.21 Feb 21, 2025

#632 in Programming languages

Download history 58/week @ 2025-02-10 291/week @ 2025-02-17 497/week @ 2025-02-24 150/week @ 2025-03-03 504/week @ 2025-03-10 327/week @ 2025-03-17 79/week @ 2025-03-24 5/week @ 2025-03-31 2/week @ 2025-04-07 380/week @ 2025-04-14 35/week @ 2025-04-21 330/week @ 2025-04-28

747 downloads per month
Used in tinymist-query

Apache-2.0

665KB
15K SLoC

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 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. By specify the --assets-src-path parameter, 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 typlite language will be directly output into the Markdown result.

Dependencies

~80MB
~1M SLoC