[Docs][m]: Add markdown for docs and api section

This commit is contained in:
Rising Odegua
2021-05-19 17:52:22 +01:00
parent 9ad383420d
commit 13905f832f
13 changed files with 1422 additions and 9563 deletions

13
docs/lib/utils.js Normal file
View File

@@ -0,0 +1,13 @@
import remark from 'remark'
import html from 'remark-html'
import fs from 'fs'
export async function formatMD(mdFilePath) {
const mdFile = fs.readFileSync(mdFilePath, "utf-8")
const processed = await remark()
.use(html)
.process(mdFile)
const readmeHtml = processed.toString()
return readmeHtml
}