能否在markdown里读取环境变量? #1985
能否在markdown里读取环境变量?
#1985
-
我想通过设置自定义环境变量的方式,全局替换多个md文件中的一些文本,这个要怎么实现? |
Beta Was this translation helpful? Give feedback.
Answered by
Wxh16144
May 6, 2024
Replies: 1 comment 3 replies
-
不支持,md 不是 js
可以,配置文件会在 Node.js 运行时内执行 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#2008 (comment) 已经失去一位开发者用户 2333~
可以考虑参考 docusaurus 写一个 dumi 插件,完善一下生态 (不过感觉这个需求有些太小众了