Beautiful code blocks for Markdown or MDX.
MIT License
Bot releases are hidden (Show)
Published by atomiks over 1 year ago
This release adds better defaults so you don’t need to specify any options or callback hooks.
github-dark-dimmed
, not Shiki’s default of nord
..line
class selector has been replaced with [data-line]
.grid: true
option has been added to prevent lines from collapsing by default with code blocks, allowing you to remove the onVisitLine
callback hook.keepBackground
is now true
by default.onVisitHighlightedWord
is now onVisitHighlightedChars
.data-highlighted-line
attribute by default.data-highlighted-chars
attribute by default.data-chars-id
attribute by default.onVisitTitle
and onVisitCaption
visitor hooks have been added.