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'm migrating/upgrading a project from eleventy-plugin-shiki-twoslash to @shikijs/markdown-it. The project makes extensive use of meta highlight notation
Clear and concise description of the problem
I'm migrating/upgrading a project from eleventy-plugin-shiki-twoslash to @shikijs/markdown-it. The project makes extensive use of meta highlight notation
transformerMetaHighlight https://shiki.style/packages/transformers#transformermetahighlight works well as a replacement… almost.
The older tools used 0-indexed lines.
transformerMetaHighlight uses 1-indexed lines
Suggested solution
Teach transformerMetaHighlight a new option zeroIndexed.
Alternative
No response
Additional context
Easy to imagine that others will hit this pain point when upgrading, and/or prefer to use 0-indexed line numbers.
Validations
Contributes
The text was updated successfully, but these errors were encountered: