You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a vuepress2 website with its default theme. I found that a certain sequence of input ($&) will be replaced by comment <!--vuepress-ssr-app--> which seems to be used internally as a special insertion mark.
Additional information
This problem only happens on vuepress build outputs, vite dev server (vuepress dev) renders correctly.
In addition to echoing #Hello word into README.md, add the following code block into the markdown source file:
``` $" ```
run vuepress build docs, the combination $" will firstly be translated into $", and then converted to <!--vuepress-ssr-app-->quot;. Final result looks like qout;
The character combination $" is expected to be rendered as readable text like:
$"
INSTEAD OF:
qout;
Screenshots
With this problem
Expected result
Environment info
Browser: Chrome, Safari (This seems to be a compile-time problem, browser should not be relevant)
Output of vuepress info:
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Max
Memory: 453.55 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.6.0 - /opt/homebrew/bin/node
Yarn: 1.22.17 - /opt/homebrew/bin/yarn
npm: 8.5.1 - /opt/homebrew/bin/npm
Utilities:
Git: 2.32.0 - /usr/bin/git
Browsers:
Chrome: 98.0.4758.109
Edge: Not Found
Firefox: Not Found
Safari: 15.2
npmPackages:
@vuepress/bundler-vite: 2.0.0-beta.35
@vuepress/bundler-webpack: Not Found
@vuepress/cli: 2.0.0-beta.35
@vuepress/client: 2.0.0-beta.35
@vuepress/core: 2.0.0-beta.35
@vuepress/markdown: 2.0.0-beta.35
@vuepress/plugin-active-header-links: 2.0.0-beta.35
@vuepress/plugin-back-to-top: 2.0.0-beta.35
@vuepress/plugin-container: 2.0.0-beta.35
@vuepress/plugin-docsearch: Not Found
@vuepress/plugin-external-link-icon: 2.0.0-beta.35
@vuepress/plugin-git: 2.0.0-beta.35
@vuepress/plugin-google-analytics: Not Found
@vuepress/plugin-medium-zoom: 2.0.0-beta.35
@vuepress/plugin-nprogress: 2.0.0-beta.35
@vuepress/plugin-palette: 2.0.0-beta.35
@vuepress/plugin-prismjs: 2.0.0-beta.35
@vuepress/plugin-pwa: Not Found
@vuepress/plugin-pwa-popup: Not Found
@vuepress/plugin-register-components: Not Found
@vuepress/plugin-search: ^2.0.0-beta.35 => 2.0.0-beta.35
@vuepress/plugin-shiki: Not Found
@vuepress/plugin-theme-data: 2.0.0-beta.35
@vuepress/plugin-toc: Not Found
@vuepress/shared: 2.0.0-beta.35
@vuepress/theme-default: 2.0.0-beta.35
@vuepress/utils: 2.0.0-beta.35
vue: 3.2.31
vue-loader: Not Found
vue-router: 4.0.12
vuepress: ^2.0.0-beta.35 => 2.0.0-beta.35
vuepress-vite: 2.0.0-beta.35
vuepress-webpack: Not Found
The text was updated successfully, but these errors were encountered:
I had a similar problem while trying to integrate MathJax with vuepress-next, since the old plugin has not been ported yet. Typically, MathJax is configured with an inline script like this (see documentation):
Just like in your case, the $ symbols seem to act as special insertion marks and were replaced by a bunch of code. The use of $ seems very fragile, perhaps a longer character sequence could be used with less potential for collisions?
I had a similar problem while trying to integrate MathJax with vuepress-next, since the old plugin has not been ported yet. Typically, MathJax is configured with an inline script like this (see documentation):
Just like in your case, the $ symbols seem to act as special insertion marks and were replaced by a bunch of code. The use of $ seems very fragile, perhaps a longer character sequence could be used with less potential for collisions?
Thank you for the advice!
However, the problem was actually found in markdown contents. The dollar character is part of the document content, and is intended to be directly rendered to display. I could not simply redefine it like what you did in your case, because I would then alter the original meaning of the content.
Bug report
Description
I am creating a vuepress2 website with its default theme. I found that a certain sequence of input (
$&
) will be replaced by comment<!--vuepress-ssr-app-->
which seems to be used internally as a special insertion mark.Steps to reproduce
#Hello word
into README.md, add the following code block into the markdown source file:vuepress build docs
, the combination$"
will firstly be translated into$"
, and then converted to<!--vuepress-ssr-app-->quot;
. Final result looks likeqout;
Expected behavior
The character combination
$"
is expected to be rendered as readable text like:INSTEAD OF:
Screenshots
Environment info
vuepress info
:The text was updated successfully, but these errors were encountered: