markdownlint 0.37.1 → 0.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.37.3
4
+
5
+ - Tweak `package.json` dependencies to work with `pnpm`
6
+
7
+ ## 0.37.2
8
+
9
+ - Add subpath imports for overriding default bundler behavior
10
+ - Improve MD032
11
+
3
12
  ## 0.37.1
4
13
 
5
14
  - Add support for "browser" condition (as used by webpack)
package/helpers/README.md CHANGED
@@ -22,8 +22,8 @@ be useful to custom rule authors and may avoid duplicating code.
22
22
  *None* - The entire body of code is tested to 100% coverage by the core
23
23
  `markdownlint` project, so there are no additional tests here.
24
24
 
25
- [custom-rules]: https://github.com/DavidAnson/markdownlint/blob/v0.37.1/doc/CustomRules.md
25
+ [custom-rules]: https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/CustomRules.md
26
26
  [jsdoc]: https://en.m.wikipedia.org/wiki/JSDoc
27
27
  [markdown]: https://en.wikipedia.org/wiki/Markdown
28
28
  [markdownlint]: https://github.com/DavidAnson/markdownlint
29
- [rules]: https://github.com/DavidAnson/markdownlint/blob/v0.37.1/doc/Rules.md
29
+ [rules]: https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/Rules.md
@@ -78,12 +78,11 @@ function addRangeToSet(set, start, end) {
78
78
  * Filter a list of Micromark tokens by predicate.
79
79
  *
80
80
  * @param {Token[]} tokens Micromark tokens.
81
- * @param {AllowedPredicate} [allowed] Allowed token predicate.
81
+ * @param {AllowedPredicate} allowed Allowed token predicate.
82
82
  * @param {TransformPredicate} [transformChildren] Transform predicate.
83
83
  * @returns {Token[]} Filtered tokens.
84
84
  */
85
85
  function filterByPredicate(tokens, allowed, transformChildren) {
86
- allowed = allowed || (() => true);
87
86
  const result = [];
88
87
  const queue = [
89
88
  {
@@ -278,7 +277,11 @@ const nonContentTokens = new Set([
278
277
  "lineEnding",
279
278
  "lineEndingBlank",
280
279
  "linePrefix",
281
- "listItemIndent"
280
+ "listItemIndent",
281
+ "undefinedReference",
282
+ "undefinedReferenceCollapsed",
283
+ "undefinedReferenceFull",
284
+ "undefinedReferenceShortcut"
282
285
  ]);
283
286
 
284
287
  module.exports = {