Markdown renderer plugin for Hexo with kramed engine
npm install hexo-renderer-kramed 
This plugin uses [kramed] but not [marked] as render engine, it is a fork of hexo-renderer-marked. You need to uninstall hexo-renderer-marked to avoid conflicts.
Just for the support of mathjax. I've modified the inline math format, like this example below:
``$\sigma$`
But this renderer will only wrap your inline tex and display tex with a
`
You can use the following formats for your equations:
`$\sigma$
inlineMath:
displayMath: $$\sigma$$
`
If you need to contain $ in \ tag:
` $some code$ `
If you need to contain $$ in your text:
``
\$\$
` bash`
$ npm uninstall hexo-renderer-marked --save
$ npm install hexo-renderer-kramed --save
- Hexo 3: >= 0.2
- Hexo 2: 0.1.x
You can configure this plugin in _config.yml.
` yaml`
kramed:
gfm: true
pedantic: false
sanitize: false
tables: true
breaks: true
smartLists: true
smartypants: true
- gfm - Enables GitHub flavored markdown
- pedantic - Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior.gfm
- sanitize - Sanitize the output. Ignore any HTML that has been input.
- tables - Enable GFM tables. This option requires the option to be true.gfm` option to be true.
- breaks - Enable GFM line breaks. This option requires the
- smartLists - Use smarter list behavior than the original markdown.
- smartypants - Use "smart" typograhic punctuation for things like quotes and dashes.
[Markdown]: http://daringfireball.net/projects/markdown/
[marked]: https://github.com/chjj/marked
[kramed]: https://github.com/GitbookIO/kramed