0

I am reviewing the Strapi tutorial on building a blog with Nextjs with Strapi. tutorial here

They indicate that a package for the markdown format must be downloaded. enter image description here

And here is where it is used:
article/slug

And the result is this:
enter image description here I just took a screenshot where the iframe element is not rendering. What I think is that it is necessary to use a tool that works for mdx but I don't know how.

vldmrrdjcc
  • 2,082
  • 5
  • 22
  • 41
Cesar Mejias
  • 191
  • 1
  • 7

1 Answers1

0

you can use rehype-raw package

  1. npm install rehype-raw

  2. <ReactMarkdown rehypePlugins={[rehypeRaw]} children={input} />