unplugin / unplugin-vue-markdown

Compile Markdown to Vue component
MIT License
508 stars 27 forks source link

不支持Vitepress中的Unescape in Code Blocks功能 #34

Open wgh970312 opened 9 months ago

wgh970312 commented 9 months ago

Describe the bug

在vite中支持将代码块中的vue语法进行处理,但是插件好像没有处理 vitepress文档地址:https://vitepress.dev/guide/using-vue#unescape-in-code-blocks image

这是我的代码片段 image

实际输出 image

Reproduction

{{ 1 + 1 }} {{ a }} ```js-vue Hello {{ 1 + 1 }} ``` ### System Info ```Shell System: OS: macOS 12.4 CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz Memory: 28.14 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm pnpm: 8.5.1 - ~/Documents/Codes/santi/templates/noob_basic_template/node_modules/.bin/pnpm Watchman: 2023.09.04.00 - /usr/local/bin/watchman Browsers: Chrome: 119.0.6045.199 Safari: 15.5 ``` ### Used Package Manager pnpm ### Validations - [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md) - [X] Read the [Contributing Guide](https://github.com/antfu/contribute). - [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. - [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
wgh970312 commented 9 months ago

应该是要设置escapeCodeTagInterpolation 为 false才行