Commit graph

1106 commits

Author SHA1 Message Date
David Anson
8057f3d37e Reimplement MD035/hr-style using micromark tokens (fixes #736). 2023-03-06 21:39:21 -08:00
dependabot[bot]
f1e33672ba Bump eslint-plugin-unicorn from 45.0.2 to 46.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 45.0.2 to 46.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.2...v46.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-05 19:26:51 -08:00
dependabot[bot]
f9c861b110 Bump eslint-plugin-jsdoc from 40.0.0 to 40.0.1
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 40.0.0 to 40.0.1.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v40.0.0...v40.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 19:10:23 -08:00
David Anson
90ccf961a0 Slightly simplify setup-node/Node 14 workaround for GitHub Actions. 2023-02-27 18:38:42 -08:00
David Anson
81f35edd6c Update tests to verify long lines inside HTML comments trigger MD013/line-length (closes #703). 2023-02-27 18:35:52 -08:00
dependabot[bot]
3cedb5a5b8 Bump eslint from 8.34.0 to 8.35.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.34.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.34.0...v8.35.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-26 19:54:01 -08:00
dependabot[bot]
ea523f3839 Bump @babel/core from 7.20.12 to 7.21.0
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.20.12 to 7.21.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.21.0/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-26 19:53:47 -08:00
David Anson
42f2612c35 Unify ignore patterns for mdn/content and mdn/translated-content repositories in external repo tests, skip mdn/translated-content for now due to new, un-ignored issues. 2023-02-25 21:44:43 -08:00
David Anson
2312e522aa Move markdownlint-micromark package from devDependencies to dependencies, increase timeout of lint-test-repos script to 10 minutes. 2023-02-25 16:26:54 -08:00
David Anson
0c48b4b032 Remove the use of "||=" which is not supported by Node 14 (and hidden by setup-node failing to configure Node 14 for CI workflow). 2023-02-25 16:24:24 -08:00
David Anson
13ced64c21 Rename markdownlint-micromark Token's .tokens property to .children for consistency and clarity. 2023-02-25 15:50:58 -08:00
David Anson
781b854f4b Remove test-extra script from TestRepos workflow due to timing out and not producing meaningful benefit for some time. 2023-02-25 15:50:58 -08:00
David Anson
962547ecc8 Reimplement MD038/no-space-in-code using micromark tokens. 2023-02-25 15:50:58 -08:00
David Anson
b787758a48 Update to markdownlint-micromark@0.1.2, include gfmTable extension, change matchAndGetTokensByType return value, include .cjs files when linting. 2023-02-25 15:50:58 -08:00
David Anson
60ad79fd2b Add micromark-extension-gfm-table to markdownlint-micromark package exports. 2023-02-25 15:50:57 -08:00
David Anson
4b27bac79b Update all references to "params.tokens" to "params.parsers.markdownit.tokens" for clarity. 2023-02-25 15:50:57 -08:00
David Anson
5302ee45de Add tests for micromark helpers filterByPredicate, filterByTypes, and getMicromarkEvents. 2023-02-25 15:50:57 -08:00
David Anson
a87f40efd8 Add missing "npm install" to CI workflow for new "Build markdownlint-micromark" scenario. 2023-02-25 15:50:57 -08:00
David Anson
c15262a0f5 Switch to using npm version of markdownlint-micromark package and browser script. 2023-02-25 15:50:57 -08:00
David Anson
8e66b8f926 Update markdownlint-micromark package artifacts for browser scenarios. 2023-02-25 15:50:57 -08:00
David Anson
00bf27406c Prepare markdownlint-micromark for publish to npm. 2023-02-25 15:50:57 -08:00
David Anson
f8e793786a Update markdownlint-micromark to build scripts for web in addition to Node. 2023-02-25 15:50:57 -08:00
David Anson
ddb71ed1e8 Update tests and documentation for MD034/no-bare-urls to explain edge case behavior. 2023-02-25 15:50:57 -08:00
David Anson
b990b3ea77 Reimplement MD034/no-bare-urls using micromark tokens (fixes #707). 2023-02-25 15:50:57 -08:00
David Anson
64159fa456 Address new @ts-check warnings in markdownlint-test.js. 2023-02-25 15:50:57 -08:00
David Anson
3bf4bb1cda Ignore failures for two newly-found issues in https://github.com/electron/electron repository. 2023-02-25 15:50:57 -08:00
David Anson
545e571ca5 Update test snapshots for previous two test case updates (stored in "bugs" branch). 2023-02-25 15:50:57 -08:00
David Anson
26c94ad61b Add test case for undefined reference link in blockquote. 2023-02-25 15:50:57 -08:00
David Anson
9af466993f Add test case for reference link with collapsed link syntax in URL (fixes #697). 2023-02-25 15:50:57 -08:00
David Anson
97f99befb8 Reimplement getReferenceLinkImageData using micromark tokens. 2023-02-25 15:50:57 -08:00
David Anson
57c612cfa4 Fix invalid link definition syntax in break-all-the-rules.md. 2023-02-25 15:50:57 -08:00
David Anson
c1df46f607 Convert params.parsers.name to params.parsers.name.tokens for clarity/flexibility. 2023-02-25 15:50:56 -08:00
David Anson
80235711f4 Add test to ensure params.tokens and params.parsers.markdownit are the same object. 2023-02-25 15:50:56 -08:00
David Anson
c53df8b720 Fix range calculation in MD033/no-inline-html during re-parse of tabbed content. 2023-02-25 15:50:56 -08:00
David Anson
48a92d41a4 Reimplement MD033/no-inline-html using micromark tokens. 2023-02-25 15:50:56 -08:00
David Anson
08b31da0aa Move micromark.cjs helpers from lib to helpers so it can be used by code in both locations. 2023-02-25 15:50:56 -08:00
David Anson
1461ad6272 Add content parsing via micromark, publish frozen micromark tokens alongside markdown-it tokens, remove assert from micromark wrapper. 2023-02-25 15:50:56 -08:00
David Anson
ed854f7092 Convert demo from using ts-loader to babel-loader for transpiling JavaScript for web browsers (adds support for .cjs, see https://github.com/TypeStrong/ts-loader/pull/1503). 2023-02-25 15:50:52 -08:00
David Anson
fc2ed221ff Use .cjs extension for markdownlint-micromark output files for clarity. 2023-02-25 15:49:52 -08:00
David Anson
c9e8f8b8ea Convert micromark.mjs to micromark.cjs for use by synchronous APIs in markdownlint.js. 2023-02-25 15:49:52 -08:00
David Anson
c2192204dc Remove years from copyright statement. 2023-02-25 15:49:52 -08:00
David Anson
bb0aa012b5 Use webpack to create a CommonJS module from micromark's ESM implementation, convert to using that. 2023-02-25 15:49:52 -08:00
David Anson
5038f6e154 Work around likely micromark bug in sliceSerialize (link to GitHub issue in code). 2023-02-25 15:49:51 -08:00
David Anson
000281e2f0 Add "// @ts-check" to top of new micromark-related modules, fix import typo. 2023-02-25 15:49:51 -08:00
David Anson
7142bbd8ed Normalize line endings to get micromark test passing on Windows. 2023-02-25 15:49:51 -08:00
David Anson
366a498150 Initial implementation of markdownlint-micromark package, micromark.mjs helpers, and tests. 2023-02-25 15:49:51 -08:00
David Anson
2e7b7b9079 Edit .npmrc to avoid setup-node issue with Node 14 (https://github.com/actions/setup-node/issues/698). 2023-02-21 01:30:41 +00:00
Simon Schrottner
3e454481fd
Use proper YAML serialization to produce correct example output for multi-item arrays (fixes #721). 2023-02-20 15:04:05 -08:00
dependabot[bot]
7c818914fb Bump c8 from 7.12.0 to 7.13.0
Bumps [c8](https://github.com/bcoe/c8) from 7.12.0 to 7.13.0.
- [Release notes](https://github.com/bcoe/c8/releases)
- [Changelog](https://github.com/bcoe/c8/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bcoe/c8/compare/v7.12.0...v7.13.0)

---
updated-dependencies:
- dependency-name: c8
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 19:07:14 -08:00
dependabot[bot]
b8abf5ee29 Bump eslint from 8.33.0 to 8.34.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.33.0 to 8.34.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.34.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-12 20:17:35 -08:00