Can i add Options to a custom highlight render-codeblock.html

Hi,

We built a custom layouts/_default/_markup/render-codeblock.html. We would like to add a “title” option. So when it is used a fenced code block like this:

```javascript {hl_Lines=2 title=“abc”}`

We can get access the title. We tried the .Options map, but it would only include hl_Lines in the example above.

tx.,

you are looking for .Attributes which should include your generic attribute title.

1 Like

wow thanks a ton. :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.