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
The current line highlighter uses a workaround by rendering two layers, one with the highlighted code and the other one with all <br>. By using the API it cuts some HTML for code blocks with highlighted lines:
I have a PR - should I wait until this repo is more stabalized to send it?
The text was updated successfully, but these errors were encountered:
Was poking around the new site to see Shiki's usage in the wild. I think the current line highlighting solution can be simplified.
Shiki 0.10.0 adds an API to highlight specific lines. For example, this:
generates something like:
The current line highlighter uses a workaround by rendering two layers, one with the highlighted code and the other one with all
<br>
. By using the API it cuts some HTML for code blocks with highlighted lines:I have a PR - should I wait until this repo is more stabalized to send it?
The text was updated successfully, but these errors were encountered: