Skip to content

Commit

Permalink
update highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Jul 6, 2024
1 parent b06f384 commit 8d438e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Website/src/components/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ export const Markup = (props: Props) => {
React.useEffect(() => {
if (ref.current) {
ref.current.querySelectorAll<HTMLElement>("pre code").forEach((block) => {
hljs.highlightBlock(block);
block.removeAttribute("data-highlighted");
hljs.highlightElement(block);
});
}

Expand Down

0 comments on commit 8d438e6

Please sign in to comment.