slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Add class to code (line) highlight container

Open mariomurrent-softwaresolutions opened this issue 4 years ago • 0 comments

When we use the following markdown code:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>HTML Document</title>
  </head>
  <body>
    <p>This is demo text.</p>
  </body>
</html>

and use the line highlighting for line 3 and 5, then we have a div around the "shiki-container" div:

<img width="923" alt="image" src="https://user-images.githubusercontent.com/5072806/123600601-1db18800-d7f7-11eb-8254-f7f2e5694ab5.png">

If no line highlighting is used, the outer div is not there.

Is it possible that the outer div also gets a class? Like shiki-container-wrapper? It would be nice for some styling things.