A markdown-it plugin to generate github style markdown.
npm install markdown-it-githubmarkdown
This is an H1
+ Red
+ Green
+ Blue
`
> index.js
`js
var fs = require('fs')
var plugin = require('markdown-it-github')
var md = require('markdown-it')().use(plugin)
var input = fs.readFileSync('index.md', 'utf-8')
var result = md.render(input)
console.log(result)
`
> Result
`html
This is an H1
- Red
- Green
- Blue
`
$3
You can import github.css to replicates the github markdown style:
- add github.css stylesheet
- add md-github__body class to the container
- set a width for the container
`html
``