Skip to content

Commit

Permalink
fix: fix markdown loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Jul 12, 2021
1 parent 0ac5571 commit 8ad3efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/MarkDownPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
const remark2rehype = await import("remark-rehype")
const format = await import("rehype-format")

return await remark()
return (await remark()
.use(markdown.default, { gfm: true, commonmark: true })
.use(remark2rehype.default)
.use(format.default)
.use(html.default)
.process(markdownModule.default)
.process(markdownModule.default)).contents
}
</script>

Expand Down

1 comment on commit 8ad3efd

@vercel
Copy link

@vercel vercel bot commented on 8ad3efd Jul 12, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.