Nextjs blog with markdown and wanting to add presentation #438
-
Hello everyone, I'm starting a blog right now, and I want to publish my article slides. My blog is built with Nextjs and Tailwind for the CSS. Every time I want to write an article, I create a mdx file. I copied the markdown example from the homepage.
Then in my ArticleLayout.jsx, I imported
And here is the results: So what have I done wrong? Can you help me please? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The output of Marp Core is framework-agnostic. When using Marp Core in Next.js, typically you have to set raw HTML by React's
|
Beta Was this translation helpful? Give feedback.
The output of Marp Core is framework-agnostic. When using Marp Core in Next.js, typically you have to set raw HTML by React's
dangerouslySetInnerHTML
.https://react.dev/reference/react-dom/components/common#dangerously-setting-the-inner-html