1
0
Fork 0

feat: add training list page, training page and markdown content

This commit is contained in:
Vojtěch Mareš 2022-12-19 00:04:15 +01:00
parent 3dd584fcf4
commit e19dbb71cd
16 changed files with 586 additions and 15 deletions

9
lib/markdownToHTML.ts Normal file
View file

@ -0,0 +1,9 @@
import { remark } from 'remark'
import html from 'remark-html'
const markdownToHTML = async (markdown: string) => {
const result = await remark().use(html).process(markdown)
return result.toString()
}
export default markdownToHTML