Update dependency marked to v4
Created by: renovate[bot]
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
marked (source) | ^2.0.3 -> ^4.0.0 |
||||
@types/marked | 2.0.2 -> 4.0.0 |
Release Notes
markedjs/marked
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" }]
}
]
}
v2.1.3
Bug Fixes
v2.1.2
Bug Fixes
v2.1.1
Bug Fixes
v2.1.0
Features
v2.0.7
Bug Fixes
v2.0.6
Bug Fixes
v2.0.5
Bug Fixes
v2.0.4
Bug Fixes
Configuration
-
If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by WhiteSource Renovate. View repository job log here.