Parsing NextJS images from markdown

Trying to load the image below.

NextJS logo

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-markdown

Once 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"
  };
};