Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks done
wgh970312 opened this issue Dec 11, 2023 · 1 comment
Open
5 tasks done

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

wgh970312 opened this issue Dec 11, 2023 · 1 comment

Comments

@wgh970312
Copy link

Describe the bug

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

这是我的代码片段
image

实际输出
image

Reproduction

<script setup> const a = '{ "b": 1 }' </script> {{ 1 + 1 }} {{ a }} ```js-vue Hello {{ 1 + 1 }} ```

System Info

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@wgh970312
Copy link
Author

应该是要设置escapeCodeTagInterpolation 为 false才行

@wgh970312 wgh970312 reopened this Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant