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 @   卓能文  阅读(48)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示