用 Markdoc 而非 Markdown 渲染博客,以在未来支持自定义元素
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-27 17:06:03 +08:00
parent bc5247ddc8
commit 4c5abe8b01
10 changed files with 1582 additions and 32 deletions

View File

@ -0,0 +1,5 @@
import React from 'react'
export const CodeBlock: React.FC<{ highlightedHtml: string }> = (props) => {
return <div dangerouslySetInnerHTML={{ __html: props.highlightedHtml }}></div>
}