We have released a new version of the official plugin hexo-renderer-markdown-it
Breaking changes
We have updated the default config to be consistent with hexo-renderer-marked #90, #92
- New defaults:
markdown:
render:
html: true
xhtmlOut: false
breaks: true
linkify: true
typographer: true
quotes: '“”‘’'
plugins:
anchors:
level: 2
collisionSuffix: ''
permalink: false
permalinkClass: 'header-anchor'
permalinkSymbol: '¶'
case: 0
separator: '-'- Previous defaults (other configs remain the same):
markdown:
anchors:
permalink: true
level: 1
collisionSuffix: 'v'
case: 1Requires Node 8.6+ #79
Features
Include official markdown-it plugins #52, #86, #87
- They are disabled by default
- Included plugins:
markdown:
plugins:
- markdown-it-abbr
- markdown-it-cjk-breaks
- markdown-it-container
- markdown-it-deflist
- markdown-it-emoji
- markdown-it-footnote
- markdown-it-ins
- markdown-it-mark
- markdown-it-sub
- markdown-it-supInclude markdown-it-cjk-breaks plugin #56
- To enable:
markdown:
plugins:
- markdown-it-cjk-breaksAdd new options to
anchors:
#95markdown:
anchors:
case: 0 # Set to 1 to transform anchors to lowercase, 2 for uppercase
separator: '-' # Replace the space with a dash, can be any character