Commit graph

24 commits

Author SHA1 Message Date
David Anson
53ff5c43f1 Stop using module.createRequire (problematic under webpack), incorporate and export resolveModule helper from markdownlint-cli2. 2025-01-14 23:30:09 -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
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
91e5a2f134 Introduce micromark-html-browser(.dev).js exporting micromark functions to render HTML from parsed/processed Markdown. 2023-05-28 12:23:26 -07: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
f8e793786a Update markdownlint-micromark to build scripts for web in addition to Node. 2023-02-25 15:50:57 -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
ec1b2a364f Remove outdated references to markdownlint-rule-helpers-browser from ESLint and Git configuration. 2023-01-14 15:08:25 -08:00
David Anson
8c622a9bac Refactor webpack.config.js for better code sharing, use default options for TerserPlugin, restore copyright banner for minified scripts. 2022-08-20 16:24:53 -07:00
David Anson
6f39df1417 Ignore .DS_Store file on macOS. 2021-01-29 19:50:33 -08:00
David Anson
5838b62e6d Use ts-loader with webpack to avoid needing to compile lib-es3. 2021-01-06 19:45:15 -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
Alexander Kachkaev
4bff44e33f Use require.resolve as a fallback of path.resolve (#342) 2020-11-06 19:23:08 -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
2141566b47 Add lint-test-repos scripts and Workflow for real-world regression testing. 2020-05-08 11:55:08 -07:00
David Anson
6ea1a21a95 Replace nyc code-coverage with c8 (smaller, integrated with Node.js). 2020-01-11 12:57:39 -08:00
David Anson
21fa4dc2e7 Include markdownlint-browser.js in npm package for scenarios like https://github.com/hackmdio/codimd/issues/1256. 2019-10-02 20:10:42 -07:00
David Anson
1b8b15693f Replace assign/clone helpers with object spread syntax. 2019-05-05 22:27:01 -07:00
David Anson
78c1af7bfd Add TypeScript to demo build script to output ES3-level code for browsers (fixes #84). 2018-04-26 22:21:23 -07:00
David Anson
a1f4daadf6 Update dependency: eslint to 3.10.0. 2016-11-12 20:15:01 -08:00
David Anson
a76fa8e565 Minify script for browser and use it in demo app. 2015-06-17 09:32:08 -07:00
David Anson
9997131c9e Add favicon.ico, modify demo build script to copy markdown-it locally. 2015-05-07 17:53:44 -07:00
David Anson
dce6024e16 Add interactive demo page to show how markdownlint handles user content. 2015-05-07 17:52:23 -07:00
David Anson
cdec362dc0 Create scaffolding for markdownlint package. 2015-02-22 21:30:09 -08:00