Skip to content

Releases: hexojs/hexo-renderer-markdown-it

v7.1.1

11 Jan 10:29
0c5034e
Compare
Choose a tag to compare

Fixes

  • Fixes "alt" tag not showing, when images option is used by @benwinding in #210

Dependencies

New Contributors

Full Changelog: v7.1.0...7.1.1

v7.1.0

11 Jun 14:47
7cd5616
Compare
Choose a tag to compare

New Features

Fixes

  • fix: cannot find installed markdown-it plugin by yarn v3 monorepo by @dimaslanjaka in #199

Dependencies

  • chore(devDeps): update devDependencies and replace nyc with c8 by @yoshinorin in #201

Others

  • chore: reduce the number of submitted pullrequest from dependabot by @yoshinorin in #203
  • chore(ci): update actions/checkout and actions/setup-node by @yoshinorin in #200

New Contributors

Full Changelog

v7.0.0...v7.1.0

v7.0.0

11 Feb 08:35
7fba76c
Compare
Choose a tag to compare

Breaking Changes

New Features

Dependencies

Docs

Full Changelog: 6.1.0...v7.0.0

6.1.0

30 Aug 12:53
a52ff05
Compare
Choose a tag to compare

Features

Fixes

Dependencies

New Contributors

Full Changelog: 6.0.1...6.1.0

6.0.1

05 Feb 12:15
683ffb6
Compare
Choose a tag to compare

Fixes

New Contributors

Full Changelog: 6.0.0...6.0.1

6.0.0

09 Jan 01:02
4d4d4bd
Compare
Choose a tag to compare

Breaking Changes

Performance

  • perf(#57): avoid creating instance each time when render each file by @yoshinorin in #135

Docs

  • docs: add example of adding custom function to a plugin by @curbengh in #128
  • docs(slugize): default separator is a dash by @curbengh in #130
  • Move all documentation inside readme by @tomap in #154

Test

Dependencies

Miscs

New Contributors

Full Changelog: 5.0.0...6.0.0

5.0.0

27 Sep 01:39
7fb1e3b
Compare
Choose a tag to compare

Breaking change

  • Requires Node 10.13+ [#126]
  • Moved preset to a separate config [#122]
    • so that other options also can be used, instead of just preset only
    # Previous config
    markdown: 'commonmark'
    
    # will be automatically converted to new config
    markdown:
      preset: 'commonmark'
    • When old config is used, render, plugins & anchors options will be null (instead of the defaults) for compatibility purpose, those options need to be configured separately; compatibility will be dropped in the next major version.

Features

  • feat: 'disableNunjucks' option [#125]
    • When enabled, nunjucks tags {{ }}/{% %} (used in tag plugin) will not be processed.
  • feat: options to enable/disable rules [#123]
    • Some rules are enabled or disabled depending on the preset.
    • See wiki for guide.
  • feat: add markdown-it to filter [#121]

4.1.0

23 Feb 03:15
ae5e2c4
Compare
Choose a tag to compare

Feature

  • permalinkSide option [#105]. By default, when permalink option is enabled, the permalink symbol is prepended before each heading. If you prefer to append to the end of each heading:

    markdown:
      anchors:
        permalink: true
        permalinkSide: 'right'

Housekeeping

  • Remove unneeded sluggo dependency [#99]. It has been replaced by hexo-util's slugize [#95].
  • Update nyc from 14.1.1 to 15.0.0 [#100]

4.0.0

15 Dec 10:20
a1f1ea0
Compare
Choose a tag to compare

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]