Update remark monorepo (major) #13
Open
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.0Release Notes
remarkjs/remark
v13.0.0Compare 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.jsonremark-gfmPlease 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-parsenow defers its work tomicromarkandmdast-util-from-markdown.micromarkis a new, small, complete, and CommonMark compliant low-level markdown parser.from-markdownturns its tokens into the previously (and still) used syntax tree: mdast. Extensions toremark-parsework differently: they’re a two-part act. See for examplemicromark-extension-footnoteandmdast-util-footnote.commonmarkis no longer an option — it’s the defaultgfmis no longer an option — moved toremark-gfmpedanticis no longer an option — this legacy and buggy flavor of markdown is no longer widely usedblocksis 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.optionscommonmarkis no longer an option, it’s the defaultemphasisnow defaults to*bulletnow defaults to*gfmis no longer an option — moved toremark-gfmtableCellPadding— moved toremark-gfmtablePipeAlign— moved toremark-gfmstringLength— moved toremark-gfmpedanticis no longer an option — this legacy and buggy flavor of markdown is no longer widely usedentitiesis 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 recognizedindentfield is no longer available onpositionThanks
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.1Compare Source
963292fChangemasterin links63888afUpdate sponsorsv12.0.0Compare Source
2841e47Updateremark-parse(breaking, please see its release section)
1baae5eUpdateremark-stringify(breaking, please see its release section)
6543d08Updateunified(breaking, please see its release section)
remarkjs/remark-html
v13.0.1Compare Source
7a8cb0eUpdatemdast-util-to-hastv13.0.0Compare Source
0b1cd0aChange to comply to CommonMark(breaking, potentially, if you have duplicate definitions)
v12.0.0Compare Source
87d88f7Add types(breaking, potentially, if you or your dependents use typescript)
v11.0.2Compare Source
faf7d1fRename internal methodv11.0.1Compare Source
e370aa5Fix deprecation warningv11.0.0Compare Source
7781eadUpdatemdast-util-to-hast(breaking, potentially, if you or your dependents use typescript)
558d4adUpdatehast-util-to-html(breaking, potentially, if you or your dependents use typescript)
a58bda6Refactor prose3d726a4Add 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.