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

Code Component have overflow classname for language support #3152

Closed
1 task done
spencerHT opened this issue Jul 11, 2023 · 0 comments · Fixed by #3154
Closed
1 task done

Code Component have overflow classname for language support #3152

spencerHT opened this issue Jul 11, 2023 · 0 comments · Fixed by #3154

Comments

@spencerHT
Copy link
Contributor

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

  1. git clone git@github.com:spencerHT/vp-test.git
  2. yarn && yarn dev
  3. visit http://localhost:8080/guide/using-vue.html
  4. find overflowed classname
    image

What is expected?

Have no much classname

What is actually happening?

rawCode below with language and other word with "

```ts title="test"
for ts

At packages/@vuepress/markdown/lib/preWrapper.js, token.info.trim() in this case is ts title="test", html resolve finally failed.

<div class="language-ts  title="test" extra-class">

Other relevant information

  • Output of npx vuepress info in my VuePress project:
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

Successfully merging a pull request may close this issue.

1 participant