Skip to content

Commit

Permalink
chore: update remark to new major version (15.0.1) (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
caulagi authored Oct 19, 2023
1 parent fba6851 commit 40a1bc6
Show file tree
Hide file tree
Showing 3 changed files with 7,875 additions and 6,775 deletions.
4 changes: 0 additions & 4 deletions lib/markdownToHtml.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import { remark } from 'remark'
import remarkDirective from 'remark-directive'
import remarkHtml from 'remark-html'
import remarkParse from 'remark-parse'
import remarkPrism from 'remark-prism'

export default async function markdownToHtml(
markdown: string,
): Promise<string> {
const r = remark()
r.use(remarkParse)
r.use(remarkDirective)
r.use(remarkPrism)
r.use(remarkHtml, { sanitize: false })
return (await r.process(markdown)).toString()
Expand Down
Loading

1 comment on commit 40a1bc6

@vercel
Copy link

@vercel vercel bot commented on 40a1bc6 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-caulagi.vercel.app
blog-git-main-caulagi.vercel.app
blog.caulagi.com

Please sign in to comment.