Initial implementation of markdownlint-micromark package, micromark.mjs helpers, and tests.

This commit is contained in:
David Anson 2023-01-09 21:59:54 -08:00
parent 2e7b7b9079
commit 366a498150
14 changed files with 2885 additions and 2 deletions

2
micromark/.npmrc Normal file
View file

@ -0,0 +1,2 @@
ignore-scripts=true
package-lock=false

21
micromark/LICENSE Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015-2023 David Anson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

10
micromark/README.md Normal file
View file

@ -0,0 +1,10 @@
# markdownlint-micromark
> A trivial package that re-exports some [`micromark`][micromark] functionality
> as a CommonJS module
This package is unlikely to be of any use beyond a specific scenario used by
[`markdownlint`][markdownlint].
[markdownlint]: https://github.com/DavidAnson/markdownlint
[micromark]: https://github.com/micromark/micromark

5
micromark/exports.mjs Normal file
View file

@ -0,0 +1,5 @@
/* eslint-disable n/file-extension-in-import */
export { parse } from "micromark/lib/parse";
export { postprocess } from "micromark/lib/postprocess";
export { preprocess } from "micromark/lib/preprocess";

20
micromark/package.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "markdownlint-micromark",
"version": "0.1.0",
"description": "A trivial package that re-exports some micromark functionality as a CommonJS module",
"exports": "./exports.mjs",
"author": "David Anson (https://dlaa.me/)",
"license": "MIT",
"homepage": "https://github.com/DavidAnson/markdownlint",
"repository": {
"type": "git",
"url": "https://github.com/DavidAnson/markdownlint.git"
},
"bugs": "https://github.com/DavidAnson/markdownlint/issues",
"engines": {
"node": ">=14.18.0"
},
"dependencies": {
"micromark": "3.1.0"
}
}