Cheerio HTML parsing still rocks
Cheerio is a powerful HTML parser that offers unlimited possibilities. I'll go through a few demos to show you the magic.
You will want to use the next/image component to do this and it's not very easy using remark. This is where react-markdown comes to the rescue.
Firstly, install react-markdown using your favorite package manager:
# npm
npm install react-markdown
# yarn
yarn add react-markdownOnce installed, you can now parse the markdown content and pass chunks to your components:
import rmd from "react-markdown";
const parseContent = (content) => {
return {
something: "here"
};
};