toc
This commit is contained in:
parent
3a29f4c86e
commit
b8c011410d
21 changed files with 233 additions and 66 deletions
9
quartz/components/Content.tsx
Normal file
9
quartz/components/Content.tsx
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { QuartzComponentProps } from "./types"
|
||||
import { Fragment, jsx, jsxs } from 'preact/jsx-runtime'
|
||||
import { toJsxRuntime } from "hast-util-to-jsx-runtime"
|
||||
|
||||
export default function Content({ tree }: QuartzComponentProps) {
|
||||
// @ts-ignore (preact makes it angry)
|
||||
const content = toJsxRuntime(tree, { Fragment, jsx, jsxs, elementAttributeNameCase: 'html' })
|
||||
return content
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue