Skip to content

Releases: markedjs/marked

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

v2.1.0

15 Jun 23:23
Compare
Choose a tag to compare

2.1.0 (2021-06-15)

Features

v2.0.7

01 Jun 19:28
Compare
Choose a tag to compare

2.0.7 (2021-06-01)

Bug Fixes

v2.0.6

27 May 16:17
Compare
Choose a tag to compare

2.0.6 (2021-05-27)

Bug Fixes

v2.0.5

21 May 20:54
Compare
Choose a tag to compare

2.0.5 (2021-05-21)

Bug Fixes

  • call walkTokens when calling marked with a callback(#2060) (1d97308)

v2.0.4

20 May 13:44
Compare
Choose a tag to compare

2.0.4 (2021-05-20)

Bug Fixes