chore(deps): update dependency marked to v4
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
marked (source) | devDependencies | major | 2.1.3 -> 4.0.17 |
Release Notes
markedjs/marked
v4.0.17
v4.0.16
v4.0.15
v4.0.14
v4.0.13
v4.0.12
v4.0.11
v4.0.10
v4.0.9
v4.0.8
Bug Fixes
v4.0.7
Bug Fixes
v4.0.6
Bug Fixes
v4.0.5
Bug Fixes
v4.0.4
Bug Fixes
v4.0.3
Bug Fixes
v4.0.2
Bug Fixes
v4.0.1
Bug Fixes
v4.0.0
Bug Fixes
BREAKING CHANGES
- Default export removed. Use
import { marked } from 'marked'
orconst { marked } = require('marked')
instead. -
/lib/marked.js
removed. Use/marked.min.js
in script tag instead. - When using marked in a script tag use
marked.parse(...)
instead ofmarked(...)
v3.0.8
Bug Fixes
v3.0.7
Bug Fixes
- use named exports only for ESM build (#2226)
v3.0.6
Bug Fixes
v3.0.5
Bug Fixes
v3.0.4
Bug Fixes
v3.0.3
Bug Fixes
v3.0.2
Bug Fixes
v3.0.1
Bug Fixes
v3.0.0
Bug Fixes
- Tokenizers lex their own child tokens (#2124) (288f1cb)
- Add module field to package.json (#2143) (edc2e6d)
- Drop node 10 support (#2157) (433b16f)
- Full Commonmark compliance for Lists (#2112) (eb33d3b)
- Refactor table tokens (#2166) (bc400ac)
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)
. Theinline
function will queue the token creation until after all block tokens are created. - Extensions tokenizer
this
object will include thelexer
as a property.this.inlineTokens
becomesthis.lexer.inline
. - Extensions renderer
this
object will include theparser
as a property.this.parseInline
becomesthis.parser.parseInline
. -
tag
andinlineText
tokenizer function signatures have changed.
-
nptable
tokenizer is removed and merged withtable
tokenizer. -
table
tokensheader
property changed to contain an array of objects for each header cell withtext
andtokens
properties. -
table
tokenscells
property changed torows
and is an array of rows where each row contains an array of objects for each cell withtext
andtokens
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" }]
}
]
}
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.