Open jasongerbes opened 2 months ago
I previous versions of Shiki (^0.14.3), MDX code blocks had correct syntax highlighting for both markdown content and HTML code:
^0.14.3
However, the latest version of Shiki (1.16.2) lacks syntax highlighting for HTML code within MDX blocks:
1.16.2
For reference, here's the MDX code snippet:
# Hello World! <p className="lead">This is an introductory paragraph for the article.</p> This is a standard markdown paragraph.
Using the Shiki playground (https://shiki.style), select MDX and paste the code snippet from above
It seems there are some changes in the upstream grammar: https://github.com/wooorm/markdown-tm-language/commits/0229d1b8fc37a7dea8cf7225d7713ac8a69621ca/source.mdx.tmLanguage
I don't know yet why it happens tho
Validations
Describe the bug
I previous versions of Shiki (
^0.14.3
), MDX code blocks had correct syntax highlighting for both markdown content and HTML code:However, the latest version of Shiki (
1.16.2
) lacks syntax highlighting for HTML code within MDX blocks:For reference, here's the MDX code snippet:
Reproduction
Using the Shiki playground (https://shiki.style), select MDX and paste the code snippet from above
Contributes