Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^11.0.0
->^13.0.0
^10.0.0
->^13.0.0
Release Notes
remarkjs/remark
v13.0.0
Compare Source
This is a giant change for remark. It replaces the 5+ year old internals with a new low-level parser:
micromark
. The old internals have served billions of users well over the years, but markdown has changed over that time. micromark comes with 100% CommonMark (and GFM as an extension) compliance, and (WIP) docs on parsing rules for how to tokenize markdown with a state machine. micromark, and micromark in remark, is a good base for the future.Migration
remark*
packages you are using inpackage.json
remark-gfm
Please compare with those projects if the new behavior is correct or not (CommonMark Dingus, or create a gist for GFM).
Does remark not match those reference parsers? Please open an issue here!
Changes
remark-parse
remark-parse
now defers its work tomicromark
andmdast-util-from-markdown
.micromark
is a new, small, complete, and CommonMark compliant low-level markdown parser.from-markdown
turns its tokens into the previously (and still) used syntax tree: mdast. Extensions toremark-parse
work differently: they’re a two-part act. See for examplemicromark-extension-footnote
andmdast-util-footnote
.commonmark
is no longer an option — it’s the defaultgfm
is no longer an option — moved toremark-gfm
pedantic
is no longer an option — this legacy and buggy flavor of markdown is no longer widely usedblocks
is no longer an options — it’s no longer suggested to change the internal list of HTML “block” tag namesremark-stringify
remark-stringify now defers its work to
mdast-util-to-markdown
. It’s a new and better serializer with powerful features to ensure serialized markdown represents the syntax tree (mdast), no matter what plugins do. Extensions to it work differently: see for examplemdast-util-footnote
.options
commonmark
is no longer an option, it’s the defaultemphasis
now defaults to*
bullet
now defaults to*
gfm
is no longer an option — moved toremark-gfm
tableCellPadding
— moved toremark-gfm
tablePipeAlign
— moved toremark-gfm
stringLength
— moved toremark-gfm
pedantic
is no longer an option — this legacy and buggy flavor of markdown is no longer widely usedentities
is no longer an option — with CommonMark there is almost never a need to use character references, as character escapes are preferredquote
— you can now prefer single quotes ('
) over double quotes ("
) in titlesChanges to output / the tree
All of these are for CommonMark compatibility. They’re all fixes. Most of them are inconsequential to most folks.
[text][id]
and images![alt][id]
) are no longer present as such in the syntax tree if they don’t have a corresponding definition ([id]: example.com
). The reason for this is that CommonMark requires[text *emphasis start][undefined] emphasis end*
to be emphasis.<!---->
)<mailto:foobarbaz>
are now correctly parsed, and the scheme is part of the tree©
w/o the semicolon, are no longer recognizedindent
field is no longer available onposition
Thanks
Thanks to Salesforce, Gatsby, Vercel, and Netlify, and our other backers for sponsoring the work on micromark!
To support our continued work, back us on OpenCollective!
v12.0.1
Compare Source
963292f
Changemaster
in links63888af
Update sponsorsv12.0.0
Compare Source
2841e47
Updateremark-parse
(breaking, please see its release section)
1baae5e
Updateremark-stringify
(breaking, please see its release section)
6543d08
Updateunified
(breaking, please see its release section)
remarkjs/remark-html
v13.0.1
Compare Source
7a8cb0e
Updatemdast-util-to-hast
v13.0.0
Compare Source
0b1cd0a
Change to comply to CommonMark(breaking, potentially, if you have duplicate definitions)
v12.0.0
Compare Source
87d88f7
Add types(breaking, potentially, if you or your dependents use typescript)
v11.0.2
Compare Source
faf7d1f
Rename internal methodv11.0.1
Compare Source
e370aa5
Fix deprecation warningv11.0.0
Compare Source
7781ead
Updatemdast-util-to-hast
(breaking, potentially, if you or your dependents use typescript)
558d4ad
Updatehast-util-to-html
(breaking, potentially, if you or your dependents use typescript)
a58bda6
Refactor prose3d726a4
Add notes on securityRenovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.