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 need to set some classes and ids on the code fences, and I've used markdown-it-attrs and markdown-it-decorate to do so. However, when combined with this markdown-it-highlight-lines, markdown-it-attrs and markdown-it-decorate doesn't work anymore, wondering if there's a way to get them to work together?
Here's an example of how I'm using markdown-it-highlight-lines and markdown-it-decorate together:
``` {1}
// Highlight this line
// More code
```
<!-- {code: #example-1} -->
This should generate
<pre>
<code id="example-1">
<span class="highlighted-line">// Highlight this line</span>
// More code
</code>
</pre>
For now, it looks like I need to find another workaround, that is to wrap the code fence in a
container and add the class and ids to that instead of to the code itself. Haven't tried it yet, but I'm wondering if I'm doing something wrong here.
The text was updated successfully, but these errors were encountered:
I need to set some classes and ids on the code fences, and I've used markdown-it-attrs and markdown-it-decorate to do so. However, when combined with this markdown-it-highlight-lines, markdown-it-attrs and markdown-it-decorate doesn't work anymore, wondering if there's a way to get them to work together?
Here's an example of how I'm using markdown-it-highlight-lines and markdown-it-decorate together:
This should generate
For now, it looks like I need to find another workaround, that is to wrap the code fence in a
The text was updated successfully, but these errors were encountered: