-
One may encounter the following error when attempting to use footnotes and deflist plugins together:
This is how I'm attempting to use them together in my Next.js app: import remark from 'remark'
import remarkHtml from 'remark-html'
import remarkDeflist from 'remark-deflist'
import remarkFootnote from 'remark-footnotes'
async function markdownToHtml(md) {
const processedContent = await remark()
.use(remarkFootnote, { inlineNotes: true })
.use(remarkDeflist)
.use(remarkHtml)
.process(md)
return processedContent.toString()
} removing either |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Mar 26, 2021
Replies: 1 comment
-
I suggest asking the What they’re doing does look a bit weird btw 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest asking the
remarkDeflist
folks.What they’re doing does look a bit weird btw 🤔