- Support for Markdown, GFM and CommonMark
- Extensive configuration
- Faster than the default renderer |
- Safe ID for headings
- Anchors for headings with ID
Follow the installation guide.
markdown:preset: 'default'render:html: truexhtmlOut: falsebreaks: truelinkify: truetypographer: truequotes: '“”‘’'enable_rules:disable_rules:plugins:anchors:level: 2collisionSuffix: ''permalink: falsepermalinkClass: 'header-anchor'permalinkSide: 'left'permalinkSymbol: '¶'case: 0separator: ''
Refer to the wiki for more details.
This plugin overrides some default behaviors of how markdown-it plugin renders the markdown into html, to integrate with the Hexo ecosystem. It is possible to override this plugin too, without resorting to forking the whole thing.
For example, to enable unsafe links (which is disabled by default):
Save the file in "scripts/" folder and run Hexo as usual.
Refer to markdown-it API documentation.
Requests and bug reports
If you have any feature requests or bugs to report, you're welcome to file an issue.