Skip to content

[Bug report] Defined variables being replaced by vite #244

@yzx9

Description

@yzx9

Bug report

Description

Related: #143, #214

As warned in our document, this is a known bug. The defined variables are replaced by static strings during the build process when using vite as bundler.

However, this should be a technically possible problem and we can see that this issue has been solved on the vitepress.

https://github.com/vuejs/vitepress/blob/d971dd9996f254c800de06637515d88964779043/src/node/markdownToVue.ts#L49-L63

Steps to reproduce

Expected behavior

Should not throwing an error when writing special words.

Screenshots

image

Environment info

  • Browser:
  • Output of vuepress info:
# Paste output of `vuepress info` here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions