Skip to content

Commit

Permalink
Patch Copy Button (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans authored Oct 5, 2024
1 parent 4d44e02 commit c5c08eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/mdx/rehype.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ const rehypeShikiFromHighlighter = function (highlighter, options) {

const code = toString(textNode);

node.properties.code = textNode.value;

const cachedValue = cache?.get(code);

if (cachedValue) {
Expand Down

0 comments on commit c5c08eb

Please sign in to comment.