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
Shiki Twoslash supports highlighting lines. For me in Eleventy (v2.0.1, eleventy-plugin-shiki-twoslash v1.1.3) this only works if I add a space after the }.
I haven't tried other plugins, it may not be specific to the Eleventy package.
Expected
```text {0}
highlightednot highlighted```
results in something like
<preclass="shiki"><divclass="language-id">text</div><divclass="code-container"><code><divclass="line highlight">
highlighted
</div><divclass="line">
not highlighted
</div></code></div></pre>
Shiki Twoslash supports highlighting lines. For me in Eleventy (v2.0.1, eleventy-plugin-shiki-twoslash v1.1.3) this only works if I add a space after the
}
.I haven't tried other plugins, it may not be specific to the Eleventy package.
Expected
results in something like
Actual
results in something like
Workaround
Adding whitespace after the
}
, like so (looks the same; select to see thetext·{0}·
results in the highlighted line getting
.highlight
.The text was updated successfully, but these errors were encountered: