Skip to content

4.0.0

Compare
Choose a tag to compare
@curbengh curbengh released this 15 Dec 10:20
· 81 commits to master since this release
a1f1ea0

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: 1
  • Requires Node 8.6+ [#79]

Features

  • Include official markdown-it plugins [#52], [#86], [#87]
    • 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-sup
  • Include [markdown-it-cjk-breaks] plugin [#56]
    • To enable:
    markdown:
      plugins:
        - markdown-it-cjk-breaks
  • Add new options to anchors: [#95]
    markdown:
      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

Housekeeping

  • Update markdown-it from v8 to v10 [#80], [#88]
  • Update mocha from v3 to v5 [#60]