5142c0e542
* initial commit
* delete comment
* env name fix
* Update README.md
* remove hapi-boom
* use next-image
* fix alt attr
* date fix for blog posts
* reset gitignore
* fix react best-practices
* prettier
* mdx to md
* fix prettier config. lint 👍
* Update examples/blog-with-comment/components/comment/list.js
Co-authored-by: Lee Robinson <me@leerob.io>
* refactor api methods
* fix: blog title
* fix: html lang
* next-mdx to gray-matter
Co-authored-by: Noah Fischer <78238464+noahfschr@users.noreply.github.com>
Co-authored-by: Lee Robinson <me@leerob.io>
Co-authored-by: Enes Akar <enesakar@gmail.com>
7 lines
206 B
JavaScript
7 lines
206 B
JavaScript
import remark from 'remark'
|
|
import html from 'remark-html'
|
|
|
|
export default async function markdownToHtml(markdown) {
|
|
const result = await remark().use(html).process(markdown)
|
|
return result.toString()
|
|
}
|