markdown-css--like-github
v1.0.0
Published
Markdown CSS file that tries to look like Github style
Downloads
1
Readme
markdown-css--like-github
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
Installation
# NPM
npm i markdown-css--like-github
# Yarn
yarn add markdown-css--like-github
Usage
1- import CSS
from JS
import "markdown-css--like-github/index.css"
from 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>
)
Credits
author
original work
Contributing
- Documentation improvement
- Feel free to send any PR