[Question] Is there any way to replace constant string in markdown file? #1317
-
Like https://cn.vitejs.dev/guide/env-and-mode.html#html-env-replacement, but this doesn't seem to work in markdown files though? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@Mister-Hope Is there any way to do this? |
Beta Was this translation helpful? Give feedback.
-
https://stackblitz.com/edit/vuepress-markdown-variable?file=package.json I don' think template replacement could be aligned under 2 different bundler, so you should make them as variables. |
Beta Was this translation helpful? Give feedback.
-
@Mister-Hope Would a preprocessor be required to process variables within markdown syntax? I.e someString-$someVariable surrounded by `` Is there a way to make that work using this approach or would we have to implement a preprocessor? |
Beta Was this translation helpful? Give feedback.
https://stackblitz.com/edit/vuepress-markdown-variable?file=package.json
I don' think template replacement could be aligned under 2 different bundler, so you should make them as variables.