Commit graph

56 commits

Author SHA1 Message Date
David Anson
10db83f719 Update demo web page to highlight all error lines and ranges by default, encode single quotes in attributes. 2025-08-07 20:50:43 -07:00
David Anson
c81101d2b1 Address new lint warnings from previous commit. 2025-06-22 22:24:09 -07:00
David Anson
dda89f90d4 Update demo web page to remove recognized front matter from rendered HTML output. 2025-06-02 22:07:21 -07:00
David Anson
599b687849 Use double quotes for HTML attribute of demo page containing JSON.stringify output (because that escapes double quotes but not single quotes and encodeURIComponent also ignores single quotes). 2024-12-16 20:14:33 -08:00
David Anson
8da43dd246 Update to use named exports via / /async /promise /sync, simplify references via self-referencing, refine examples. 2024-12-03 19:58:47 -08:00
David Anson
1e71f6f44e Convert markdownlint library to an ECMAScript module, replace markdownlint-micromark with micromark, stop publishing (large) markdownlint-browser.js, see https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c for guidance. 2024-11-29 18:29:21 -08:00
David Anson
4e30462216 Promote applyFix and applyFixes helpers into core library. 2024-10-06 17:24:44 -07:00
David Anson
29ebb28f10 Convert from window to globalThis in demo web app script file. 2024-10-03 21:31:13 -07:00
David Anson
c6716f9bac Update to ESLint 9's "flat" configuration file format. 2024-04-20 21:29:23 -07:00
David Anson
9640be90a4 Add simple rendering of Markdown directive metadata to demo web page for easier diagnostics. 2024-01-02 22:39:42 -08:00
David Anson
b55208b27b Update dependency markdownlint-micromark to 0.1.8, incorporate new micromark-extension-directive exports. 2024-01-01 22:12:42 -08:00
David Anson
316b0989c3 Add $id to configuration schema, switch to version-specific repository links. 2023-11-24 15:23:36 -08:00
David Anson
20a552b4b7 Remove MD002 (deprecated in v0.13.0) and MD006 (deprecated in v0.19.0). 2023-11-09 19:47:24 -08:00
David Anson
3b1dfe42df Remove deprecated ESLint rules after version update. 2023-11-05 20:18:39 -08:00
David Anson
73b9704159 Reimplement MD037/no-space-in-emphasis using micromark tokens, report start/end separately for smaller edit spans, remove markdown-it-texmath (fixes #533, fixes #597). 2023-07-24 21:36:55 -07:00
David Anson
3945de161e Update markdownlint-micromark dependency to 0.1.7, incorporate micromark-extension-math into parse (and compile for demo page). 2023-07-16 22:07:34 -07:00
David Anson
ddf5784289 Add missing parens to demo page script after recent updates to micromark extension exports. 2023-07-03 19:42:38 +00:00
David Anson
2a19681b93 Update web demo page to use micromark renderer for converting Markdown to HTML by default, allow specifying markdown-it renderer instead. 2023-05-28 12:57:50 -07:00
David Anson
d9818ce3b4 Convert from FileReader.readAsText() to Blob.text() in demo page per new eslint-plugin-unicorn rule. 2023-05-07 20:59:54 -07:00
David Anson
32d4fc8232 Trivial code move in demo web page for consistency. 2022-12-29 18:12:48 -08:00
David Anson
5684685d5b Update markdownlint-browser.(min.)js to export library and helpers objects (near-zero effect on file size), do not output markdownlint-rule-helpers-browser.(min.)js any more, update demo web page accordingly. 2022-12-29 00:44:29 +00:00
David Anson
13b4340747 Update all links to rules to use md000.md instead of Rules.md#md000 (shorter, quicker, less distraction). 2022-10-30 14:58:45 -07:00
David Anson
9310713da1 Make resultVersion 3 (report multiple errors per line, include fixInfo) the default. 2022-04-21 21:30:56 -07:00
David Anson
77217ce33e Update browser demo to fix all errors when shift-clicking the "Fix" link. 2021-02-06 15:55:21 -08:00
David Anson
87b3b1d7e4 Update list of deprecated rules in web demonstration text. 2021-01-08 21:42:24 -08:00
David Anson
369b0b5934 Replace browserify/uglify-js with webpack, shrink markdownlint-browser.js (fixes #362). 2021-01-05 20:55:09 -08:00
Nick Schonning
0c309c63c1
chore: Use ESLint overrides for config (#348) 2020-12-07 21:17:14 -08:00
David Anson
47d82d6fd4 Add library version to demo page header. 2020-11-14 16:42:18 -08:00
David Anson
3f637ba8e5 Add ability to fix issues with markdownlint demo page, refactor slightly. 2020-09-15 21:15:35 -07:00
David Anson
5ab938a6ab Add lint rules from eslint-plugin-unicorn. 2020-09-06 20:34:10 -07:00
David Anson
0acc578e52 Update remaining references to refer to main branch as "main". 2020-08-11 22:52:29 -07:00
David Anson
214ecb5fb4 Add fallback for demo "Copy Link" functionality on browsers that do not support navigator.clipboard. 2020-04-09 20:35:32 -07:00
David Anson
74af9f82fb Enable jsdoc/require-jsdoc rule, fix all violations (fixes #85). 2020-01-23 19:42:46 -08:00
David Anson
517fc61424 Set options.handleRuleFailures=true in demo page for easier diagnostics. 2019-05-18 13:29:32 -07:00
David Anson
3960a4a26d Minor updates for MD047 and to remove a reference to io.js. 2019-05-06 22:00:38 -07:00
David Anson
827e1acb56 Add "Copy Link" link to demo, restore sample text from URL hash if present. 2019-04-02 22:07:32 -07:00
David Anson
7aadb1124e Add legacy browser detection to demo, tweak sample text. 2019-04-01 22:08:53 -07:00
David Anson
ec35833751 Update dependencies: @types/node to 11.12.0, eslint to 5.15.3, js-yaml to 3.13.0, typescript to 3.3.4000, uglify-js to 3.5.2. 2019-03-30 14:36:04 -07:00
David Anson
90bd0810e7 Update copyright year to 2019, all HTTP links to HTTPS. 2019-02-10 11:38:01 -08:00
David Anson
c0ea22e55e Update to version 0.7.0. 2018-01-22 20:54:26 -08:00
David Anson
54c28f47c3 Merge rule name/alias in rule definitions and results (for resultVersion 2). 2018-01-12 23:21:06 -08:00
David Anson
975129671e Update dependencies: browserify to 14.5.0, eslint to 4.10.0, nodeunit to 0.11.2, q to 1.5.1, rimraf to 2.6.2, uglify-js to 3.1.8. 2017-11-07 22:00:53 -08:00
David Anson
0211abf1ba Update dependencies: browserify to 14.4.0, eslint to 4.2.0, nodeunit to 0.11.1, uglify-js to 3.0.25. 2017-07-17 22:23:00 -07:00
David Anson
8c34383f80 Change default value of options.resultVersion to 1 (breaking change). 2017-07-05 21:53:21 -07:00
David Anson
0e8cb8f0dd Update Ruby markdownlint URLs from "mivok" to "markdownlint" after transition. 2017-06-18 15:49:33 -07:00
David Anson
dcf0462c22 Add regular expressions from vscode-markdownlint for error range in results. 2016-10-31 22:53:46 -07:00
David Anson
0ca8bc7bb6 Add options.resultVersion for more detailed error reporting (fixes #23). 2016-10-23 21:30:31 -07:00
David Anson
624ae4952b Add mention of CommonMark to project description (fixes #15). 2016-03-11 21:36:39 -08:00
David Anson
89a7013fc2 Sanitize content of "source with lines" box of sample web app. 2016-02-12 22:30:33 -08:00
David Anson
7af794bb21 Update eslint dependency to 1.5.1, update code for new rules. 2015-09-26 22:22:22 -07:00