Skip to content

Commit

Permalink
feat(md): custom md render callback (close AlistGo/alist#4676)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 4, 2023
1 parent d12c378 commit 098161c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { clsx } from "clsx"
export const Markdown = (props: { children?: string; class?: string }) => {
onMount(() => {
hljs.highlightAll()
window.onMDRender && window.onMDRender()
})
return (
<SolidMarkdown
Expand Down

0 comments on commit 098161c

Please sign in to comment.