markdown中嵌入typst文档

参见下面test.md示例:

# My markdown document

```{=typst}
#let foob(x) = { x + x }
#foob(2)
```

this is `raw #(2 + 3) typst`{=typst}

转换并编译:

pandoc test.md -o test.typ
typst compile test.typ

结果:
image

posted @ 2024-08-06 08:48  卓能文  阅读(157)  评论(0)    收藏  举报