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

Element is missing end tag with two tags with astericks in both #4426

Closed
ice1000 opened this issue Dec 15, 2024 · 1 comment
Closed

Element is missing end tag with two tags with astericks in both #4426

ice1000 opened this issue Dec 15, 2024 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@ice1000
Copy link

ice1000 commented Dec 15, 2024

Describe the bug

<code>infixl + *</code>
<code>*</code>

will break compilation (vitepress build src) with Element is missing end tag. error, and the reason is that there are two *. Putting the above code in a markdown file in any project should reproduce it, I think, although I haven't tested. Let me know if you can't reproduce.

My config:

 "devDependencies": {
    "@types/markdown-it-footnote": "^3.0.4",
    "@vitejs/plugin-vue-jsx": "^4.1.1",
    "vitepress": "1.5.0",
    "vue": "^3.5.13"
  },

Reproduction

Described above

Expected behavior

Compile

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 4.70 GB / 7.61 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 19.9.0 - /usr/bin/node
    Yarn: 1.22.22 - ~/.local/share/pnpm/yarn
    npm: 9.6.3 - /usr/bin/npm
  npmPackages:
    vitepress: 1.5.0 => 1.5.0


### Additional context

_No response_

### Validations

- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).
- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)
- [X] Read the [docs](https://vitepress.dev).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@brc-dd
Copy link
Member

brc-dd commented Dec 16, 2024

You should escape asterisk here if you want to render it as asterisk

image

In first case it indeed generates invalid HTML.

@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants