Skip to content

Does serialize() (next-mdx-remote) and evaluate() are compatible for the same MDX source? #2280

Answered by wooorm
sync-adm asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure. I don’t maintain next-mdx-remote. That being said, I think one can assume that there are differences.

There are some weird things going on in your example. For example, your MDX file contains frontmatter. But that frontmatter isn’t used.
You instead pass props that look very similar to evaluate: https://github.com/marissync/mdx-poc/blob/9aeeb3aab40234cbd5d063e96e344f0439ac96bf/pages/evaluate-test.tsx#L28, https://github.com/marissync/mdx-poc/blob/9aeeb3aab40234cbd5d063e96e344f0439ac96bf/pages/evaluate-test.tsx#L32.
But there are no props to next-mdx-remote: https://github.com/marissync/mdx-poc/blob/9aeeb3aab40234cbd5d063e96e344f0439ac96bf/pages/mdx-remote-test.tsx.

So I thi…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sync-adm
Comment options

@wooorm
Comment options

@sync-adm
Comment options

@wooorm
Comment options

Answer selected by sync-adm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants