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've attempted to isolate the mismatch by methodically reducing the HTML, attribute-by-attribute, with the aim of determining what if anything is causing this.
During this process I did find an attribute role="button" which, when removed, rendered the whole page properly.
However, I also found that removing other markdown elements from the page but keeping the role attribute allowed the page to render properly.
I have validated the HTML and it is valid, and along with the rather random behaviour of removing also-valid markdown nuking the page, this feels like a bug in VitePress or Vue – somewhere.
I've created a reproduction and included detailed instructions on the page.
Should be fixed now. Can you check again with latest version of vue installed? (You might need to regenerate your lockfile if you haven't specified vue in your deps.)
Describe the bug
I'm trying to document a CSS library, and our docs have lots of embedded HTML examples.
Generally, this works fine, but now and again they nuke the page with:
I've attempted to isolate the mismatch by methodically reducing the HTML, attribute-by-attribute, with the aim of determining what if anything is causing this.
During this process I did find an attribute
role="button"
which, when removed, rendered the whole page properly.However, I also found that removing other markdown elements from the page but keeping the
role
attribute allowed the page to render properly.I have validated the HTML and it is valid, and along with the rather random behaviour of removing also-valid markdown nuking the page, this feels like a bug in VitePress or Vue – somewhere.
I've created a reproduction and included detailed instructions on the page.
Here also is a GIF showing the issue:
Reproduction
https://stackblitz.com/edit/vite-3kwuru?file=docs%2Fexample.md
Expected behavior
The page should render with both the HTML example and the static markdown in the page.
System Info
Additional context
I note the new
data-allow-mismatch
attribute in Vue 3.5:It seems that I can make this work in my VitePress repo if I add it in a
div
in the page:But this isn't really workable.
I tried adding it to the components in my ejected theme, but it didn't work.
Validations
The text was updated successfully, but these errors were encountered: