Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@wgh970312

Description

@wgh970312

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions