CSS file that replicates the markdown styles of Github. Useful for use with modules that convert
MD
andMDX
files to React components. Like@next/mdx
orreact-markdown
# NPM
npm i markdown-css--like-github
# Yarn
yarn add markdown-css--like-github
1- import CSS
import "markdown-css--like-github/index.css"
@import "markdown-css--like-github"
2- Create a div
container for the md
files with className
markdown-body
const Markdown = () => (
<div className="markdown-body">
<ComponentFromMDFile />
</div>
)
- Documentation improvement
- Feel free to send any PR