Update remark (major) #8
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:
~12.0.1->~12.0.1 || ~15.0.0~7.0.1->~7.0.1 || ~10.0.0Release Notes
remarkjs/remark (remark)
v15.0.1Compare Source
54ee687Fix typoFull Changelog: remarkjs/remark@15.0.0...15.0.1
v15.0.0Compare Source
Change
98a2560Change to require Node.js 16migrate: update too
a3e6d54Change to useexportsmigrate: don’t use private APIs
943f6acUpdate@types/mdast,mdast-util-{from,to}-markdown,unified, etcmigrate: update too
remark-parse: only really changes
Buffer->Uint8Array, so use encodings supported byTextDecoderif you are passing binary dataremark-stringify:
bulletOrderedOtheris removed, you can removebulletOrderedOtherif you passed it, it’s now the default;fencesis nowtrueby default, if you don’t want indented code, passfences: false;listItemIndentis now'one'by default, you can removelistItemIndent: 'one'if you passed it, or explicitly set it to'tab'if you want itTypes
bd8c922Add typed settingsDocs
7cc0432Addremark-link-rewriteto list of pluginsby @rjanjic in #1212
e72d91aAddremark-mentionsto list of pluginsby @FinnRG in #1193
Full Changelog: remarkjs/remark@14.0.3...15.0.0
v14.0.3Compare Source
Misc
for #1162
f6bd64eRefactortsconfigs for perf and strictnessbb4c814Add improved docs on what this project isby @BeLi4L in #1147
bec44aaUpdatetsconfig.jsonto use node16 module resolutionby @ChristianMurphy in #1106
f07f413Addignore-scriptsto.npmrcby @ChristianMurphy in #1103
134ece2Update Actionsby @ChristianMurphy in #1070
974f893Fix internal types for TS 4.9Plugins
1e488d0Addremark-insto list of pluginsby @talatkuyuk in #1129
e456dc5Addremark-flexible-markersto list of pluginsby @talatkuyuk in #1126
42114fcAddremark-flexible-paragraphsto list of pluginsby @talatkuyuk in #1120
6aa638aAddremark-flexible-containersto list of pluginsby @talatkuyuk in #1112
20e7543Addremark-flexible-code-titlesto list of pluginsby @talatkuyuk in #1108
32d6948Addremark-cloudinary-docusaurusto list of pluginsby @johnnyreilly in #1090
28aa8b9update tests for changes inmdast-util-to-markdown9af1a87Addremark-code-titleto list of pluginsby @kevinzunigacuellar in #1076
0d1eb09Add 7 plugins to list of pluginsby @Xunnamius in #1064
c7e8171Remove deprecatedremark-jargonby @LunaticMuch in #1059
Full Changelog: remarkjs/remark@14.0.2...14.0.3
v14.0.2Compare Source
87c50a5Add improved docsby @wooorm in #900
Full Changelog: remarkjs/remark@14.0.1...14.0.2
v14.0.1Compare Source
9026568Add missing types dependencyv14.0.0Compare Source
b7afd25Use ESMChange:
Learn more about ESM in this guide
42d1b21Update dependenciesunified(10.0.0) (see: https://github.com/unifiedjs/unified/releases/tag/10.0.0)vfile(5.0.0) (see: https://github.com/vfile/vfile/releases/tag/5.0.0)Importantly this renames
tovfile.contentsvfile.valuemdast-util-from-markdown(1.0.0) (see: https://github.com/syntax-tree/mdast-util-from-markdown/releases/tag/1.0.0)mdast-util-to-markdown(1.0.0) (see: https://github.com/syntax-tree/mdast-util-to-markdown/releases/tag/1.0.0)bc55caaAdd JSDoc based typesv13.0.0: (micromark)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.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!
remarkjs/remark-lint (remark-lint)
v10.0.1Compare Source
(this is also a patch release for all packages)
Types
cd07d38Refactor internal types for better option coercion0c3b4c8Add type for callback-style async rule70f5120Fix for changes intypescriptea19649Refactor to use@importMiscellaneous
46ccbcdFix missing dependency141c419Fix version numbers875fcafRefactor docs7110271Remove license yeare0d94a8Refactor docse8e1ac1Refactor to removehttp:where possiblebbd8fffRemove unneeded fields frompackage.jsonsFull Changelog: remarkjs/remark-lint@10.0.0...10.0.1
v10.0.0Compare Source
(this is a major for each package maintained here)
Change
943a574Change to require Node.js 16migrate: update too
625f7f9Change to useexportsmigrate: don’t use private APIs
255ca39Updateunified,@types/mdast, etcmigrate: update too
8df41b3remark-preset-lint-recommended: change to preferremark-lint-list-item-indent: 'one'migrate: pass
tabif you want previous behavior63d132dremark-preset-lint-consistent: addremark-lint-ordered-list-marker-valuemigrate: turn off or configure with what you prefer
ccea691remark-list-item-indent: change default toonemigrate: pass
tabif you want previous behavior07140bdremark-list-item-indent: renamespacetoone,tab-sizetotab7ca5d3cunified-lint-rule: renameRuleMetatype toMeta906012eRemove deprecated (pre CommonMark)remark-lint-no-inline-padding9cdda80Remove deprecated (pre CommonMark)remark-lint-no-auto-link-without-protocolAdd
45aeac2Add better messages, rewrite and improve rules655ba54Add better support for gfm, directives, math, mdx18e669fremark-lint-file-extension: add option to disallow extensionless4057f15remark-lint-no-empty-url: add check for#Fix
802f78fremark-lint-table-pipe-alignment: fix empty centered cellDocs
9a7f129Regeneratescreenshot.png99bbed2e9b3f7e547188eRefactor docsMisc
b4a6556Fix autogenerated types w/ TS 5.4bd9ba2cAdd declaration mapse55606eRefactor to improve performance of deep trees627363bRefactor more code, improve small things19251fc0e79b65Refactor code-styledb4810dRefactor remark configf8be2e3Refactor.editorconfig36e844eRefactor.gitignoreae313bfRefactorpackage.json16bf9dcRefactor.npmrcf0a475cRefactorpackage.jsons904eddeRefactortsconfig.jsons96c25afRefactor ActionsFull Changelog: remarkjs/remark-lint@9.1.2...10.0.0
v9.1.2Compare Source
Fix
639271aFix table alignment related rules formicromarkchanges(remark-lint-table-cell-padding, remark-lint-table-pipe-alignment)
5bdc23bCheck urls from definitions(remark-lint-no-empty-url) by @Xunnamius in #299
Misc
db9755fRefactor types0beb67bRefactor tsconfigs to improve build perff41df8eFixthistype in TS 4.9by @ChristianMurphy in #304
65f0ff9cabbe86Add 3 new rules to list of community rulesby @Xunnamius in #301
0f6bb40Remove boolean fallback for ancient remarkby @jablko in #284
d1e24ffFix types of rule argumentsby @jablko in #289
29bb3b7Refactor to improve internal severity coercionby @jablko in #287
Full Changelog: remarkjs/remark-lint@9.1.1...9.1.2
v9.1.1Compare Source
014fca7Add improved docsby @wooorm in #276
Full Changelog: remarkjs/remark-lint@9.1.0...9.1.1
v9.1.0Compare Source
201e995Addurls pointing to docs on all messagesby @remcohaszing in #273
Full Changelog: remarkjs/remark-lint@9.0.1...9.1.0
v9.0.1Compare Source
bc1b092Use npm workspaces (and fix types)359cd08Addrepository.directoryfield topackage.jsonsv9.0.0Compare Source
f5cb7d2Use ESM1a1e7ccAdd JSDoc based types4a832b1cd80985ef89686Remove internal fallbacks for ancient remarke3ddd9eb81b38a27a96beUpdate dependencies28d4e5013b19716de4fb716c1b6fRefactor code-stylee7a7701Update docsFull Changelog: remarkjs/remark-lint@8.0.0...9.0.0
v8.0.0Compare Source
7791db9Update formicromarkinremark@13TL;DR: Use the new versions of the presets with remark 13:
remark-preset-lint-consistent(4.0.0)remark-preset-lint-markdown-style-guide(4.0.0)remark-preset-lint-recommended(5.0.0)Most plugins are fine, but some received majors. The following plugins are made for the new parser and do not work on the old. While you’re still on remark 12, use their previous version. Use the new versions for remark 13+.
remark-lint-checkbox-character-style(3.0.0)remark-lint-checkbox-content-indent(3.0.0)remark-lint-list-item-bullet-indent(3.0.0)remark-lint-list-item-spacing(3.0.0)remark-lint-no-blockquote-without-marker(4.0.0)remark-lint-no-heading-indent(3.0.0)remark-lint-no-paragraph-content-indent(3.0.0)remark-lint-no-table-indentation(3.0.0)remark-lint-table-cell-padding(3.0.0)remark-lint-table-pipes(3.0.0)These plugins generally work on old and new remark, but might miss some messages in the old one now:
remark-lint-no-consecutive-blank-lines(3.0.0) (extra blank lines can no longer break out of lists)remark-lint-no-heading-content-indent(3.0.0) (pedantic mode no longer supported)remark-lint-no-inline-padding(3.0.0) (emphasis, strong, strikethrough can’t be padded anymore)remark-lint-no-undefined-references(3.0.0) (undefined references are no longer parsed, so we have to do magic to find them)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 was generated by Mend Renovate. View the repository job log.