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
Nuxt Content uses a different format, where the language-xxx class is placed on the pre element instead. This breaks compatibility with some 3rd party plugins such as https://github.com/remcohaszing/rehype-mermaid. Is there any good reason Nuxt Content does not follow the spec? Please also see the discussion here: remcohaszing/rehype-mermaid#15.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-9baaph?file=nuxt.config.ts,content%2Findex.md
Describe the bug
The WHATWG (Web Hypertext Application Technology Working Group) recommends code block markup to be structured as follows:
(taken from https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-code-element)
Nuxt Content uses a different format, where the
language-xxx
class is placed on thepre
element instead. This breaks compatibility with some 3rd party plugins such as https://github.com/remcohaszing/rehype-mermaid. Is there any good reason Nuxt Content does not follow the spec? Please also see the discussion here: remcohaszing/rehype-mermaid#15.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: