Beautiful code blocks for Markdown or MDX.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] about 2 months ago
Published by github-actions[bot] 5 months ago
@rehype-pretty/transformers
. Release the first transformer: @rehype-pretty/transformers/copy-button
(see example usage)Published by github-actions[bot] 5 months ago
@rehype-pretty/transformers
. Release the first transformer: @rehype-pretty/transformers/copy-button
(see example usage)Published by github-actions[bot] 7 months ago
rehypePrettyCode
plugin is invoked multiple times and the options object is not a static reference.Published by github-actions[bot] 9 months ago
shiki
v1npm uninstall shikiji
npm install shiki
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
grid: true
- by @atomiks in https://github.com/atomiks/rehype-pretty-code/issues/158 (20159)
math
lang - by @atomiks in https://github.com/atomiks/rehype-pretty-code/issues/159 (ab71a)
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
Migrate to Shikiji - by @atomiks and Dimitri POSTOLOV in https://github.com/atomiks/rehype-pretty-code/issues/109 (b6823)
npm i rehype-pretty-code@latest [email protected] && npm uninstall shiki
[data-rehype-pretty-code-fragment]
is now a <figure>
element ([data-rehype-pretty-code-figure]
), and the title or caption is inside a <figcaption>
element.<mark>
.data-theme
has a space-separated list of the actual theme names, instead of the color mode.Published by github-actions[bot] 11 months ago
Upgrades to unified@11
Published by github-actions[bot] 12 months ago
Published by github-actions[bot] about 1 year ago
display: grid;
in code
element - by @GoodbyeNJN in https://github.com/atomiks/rehype-pretty-code/issues/105 (d5ca9)
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.Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago