Markdown Extensions for Code Blocks Not Working Properly with ‘templ’ Language #4515
Closed
4 tasks done
Labels
bug: pending triage
Maybe a bug, waiting for confirmation
Describe the bug
I noticed that certain Markdown extensions for code blocks do not work as expected in VitePress when using the templ language, while they work properly for other languages like js. Specifically:
Thanks
Reproduction
https://stackblitz.com/edit/vite-4gtyqrtf?file=docs%2Findex.md
Visit the demo page by clicking the MD Extensions Issue with Templ button on the homepage.
Expected behavior
All supported Markdown extensions for code blocks should render correctly, regardless of the specified language, as long as the language is supported by shiki. Since
templ
is a supported language, these extensions should work as expected, similar to how Line Highlighting currently works.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: