feat: new website
This commit is contained in:
commit
a11f391556
65 changed files with 2827 additions and 0 deletions
9
src/ui/shared/Markdown.ts
Normal file
9
src/ui/shared/Markdown.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Marked } from "marked"
|
||||
import { gfmHeadingId } from "marked-gfm-heading-id"
|
||||
|
||||
export default function Markdown(md: string) {
|
||||
return div.content(raw(marked.parse(md)))
|
||||
}
|
||||
|
||||
const marked = new Marked({ gfm: true })
|
||||
marked.use(gfmHeadingId())
|
||||
Loading…
Add table
Add a link
Reference in a new issue