Skip to content

Releases: markedjs/marked

v3.0.6

06 Oct 21:57
Compare
Choose a tag to compare

3.0.6 (2021-10-06)

Bug Fixes

v3.0.5

06 Oct 20:34
Compare
Choose a tag to compare

3.0.5 (2021-10-06)

Bug Fixes

v3.0.4

14 Sep 17:50
Compare
Choose a tag to compare

3.0.4 (2021-09-14)

Bug Fixes

  • fix detection of orphaned emStrong delimiters (#2203) (7792adc)

v3.0.3

08 Sep 20:22
Compare
Choose a tag to compare

3.0.3 (2021-09-08)

Bug Fixes

v3.0.2

25 Aug 02:25
Compare
Choose a tag to compare

3.0.2 (2021-08-25)

Bug Fixes

  • stop table at lines with only whitespace (#2188) (21268ab)

v3.0.1

23 Aug 18:49
Compare
Choose a tag to compare

3.0.1 (2021-08-23)

Bug Fixes

v3.0.0

16 Aug 03:09
Compare
Choose a tag to compare

3.0.0 (2021-08-16)

Bug Fixes

BREAKING CHANGES

  • Drop support for node 10.
  • Add module field to package.json

  • Tokenizers will create their own tokens with this.lexer.inline(text, tokens). The inline function will queue the token creation until after all block tokens are created.
  • Extensions tokenizer this object will include the lexer as a property. this.inlineTokens becomes this.lexer.inline.
  • Extensions renderer this object will include the parser as a property. this.parseInline becomes this.parser.parseInline.
  • tag and inlineText tokenizer function signatures have changed.

  • nptable tokenizer is removed and merged with table tokenizer.
  • table tokens header property changed to contain an array of objects for each header cell with text and tokens properties.
  • table tokens cells property changed to rows and is an array of rows where each row contains an array of objects for each cell with text and tokens properties.

v2 table token:

{
  "type": "table",
  "align": [null, null],
  "raw": "| a | b |\n|---|---|\n| 1 | 2 |\n",
  "header": ["a", "b"],
  "cells": [["1", "2"]],
  "tokens": {
    "header": [
      [{ "type": "text", "raw": "a", "text": "a" }],
      [{ "type": "text", "raw": "b", "text": "b" }]
    ],
    "cells": [[
      [{ "type": "text", "raw": "1", "text": "1" }],
      [{ "type": "text", "raw": "2", "text": "2" }]
    ]]
  }
}

v3 table token:

{
  "type": "table",
  "align": [null, null],
  "raw": "| a | b |\n|---|---|\n| 1 | 2 |\n",
  "header": [
    {
      "text": "a",
      "tokens": [{ "type": "text", "raw": "a", "text": "a" }]
    },
    {
      "text": "b",
      "tokens": [{ "type": "text", "raw": "b", "text": "b" }]
    }
  ],
  "rows": [
    {
      "text": "1",
      "tokens": [{ "type": "text", "raw": "1", "text": "1" }]
    },
    {
      "text": "2",
      "tokens": [{ "type": "text", "raw": "2", "text": "2" }]
    }
  ]
}

v2.1.3

25 Jun 20:15
Compare
Choose a tag to compare

2.1.3 (2021-06-25)

Bug Fixes

v2.1.2

22 Jun 17:27
Compare
Choose a tag to compare

2.1.2 (2021-06-22)

Bug Fixes

  • add Node.js 10 to CI and loosen engines field (#2119) (8659353)

v2.1.1

16 Jun 13:50
Compare
Choose a tag to compare

2.1.1 (2021-06-16)

Bug Fixes