micromark-extension-gfm
Advanced tools
Comparing version 2.0.3 to 3.0.0
@@ -17,3 +17,3 @@ /** | ||
* @param {HtmlOptions | null | undefined} [options] | ||
* Configuration. | ||
* Configuration (optional). | ||
* | ||
@@ -20,0 +20,0 @@ * Passed to `micromark-extens-gfm-footnote`. |
18
index.js
@@ -41,7 +41,7 @@ /** | ||
return combineExtensions([ | ||
gfmAutolinkLiteral, | ||
gfmAutolinkLiteral(), | ||
gfmFootnote(), | ||
gfmStrikethrough(options), | ||
gfmTable, | ||
gfmTaskListItem | ||
gfmTable(), | ||
gfmTaskListItem() | ||
]) | ||
@@ -54,3 +54,3 @@ } | ||
* @param {HtmlOptions | null | undefined} [options] | ||
* Configuration. | ||
* Configuration (optional). | ||
* | ||
@@ -64,9 +64,9 @@ * Passed to `micromark-extens-gfm-footnote`. | ||
return combineHtmlExtensions([ | ||
gfmAutolinkLiteralHtml, | ||
gfmAutolinkLiteralHtml(), | ||
gfmFootnoteHtml(options), | ||
gfmStrikethroughHtml, | ||
gfmTableHtml, | ||
gfmTagfilterHtml, | ||
gfmTaskListItemHtml | ||
gfmStrikethroughHtml(), | ||
gfmTableHtml(), | ||
gfmTagfilterHtml(), | ||
gfmTaskListItemHtml() | ||
]) | ||
} |
{ | ||
"name": "micromark-extension-gfm", | ||
"version": "2.0.3", | ||
"version": "3.0.0", | ||
"description": "micromark extension to support GFM (GitHub Flavored Markdown)", | ||
@@ -32,4 +32,3 @@ "license": "MIT", | ||
"type": "module", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"exports": "./index.js", | ||
"files": [ | ||
@@ -40,14 +39,14 @@ "index.d.ts", | ||
"dependencies": { | ||
"micromark-extension-gfm-autolink-literal": "^1.0.0", | ||
"micromark-extension-gfm-footnote": "^1.0.0", | ||
"micromark-extension-gfm-strikethrough": "^1.0.0", | ||
"micromark-extension-gfm-table": "^1.0.0", | ||
"micromark-extension-gfm-tagfilter": "^1.0.0", | ||
"micromark-extension-gfm-task-list-item": "^1.0.0", | ||
"micromark-util-combine-extensions": "^1.0.0", | ||
"micromark-util-types": "^1.0.0" | ||
"micromark-extension-gfm-autolink-literal": "^2.0.0", | ||
"micromark-extension-gfm-footnote": "^2.0.0", | ||
"micromark-extension-gfm-strikethrough": "^2.0.0", | ||
"micromark-extension-gfm-table": "^2.0.0", | ||
"micromark-extension-gfm-tagfilter": "^2.0.0", | ||
"micromark-extension-gfm-task-list-item": "^2.0.0", | ||
"micromark-util-combine-extensions": "^2.0.0", | ||
"micromark-util-types": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.0.0", | ||
"c8": "^7.0.0", | ||
"c8": "^8.0.0", | ||
"create-gfm-fixtures": "^1.0.0", | ||
@@ -57,3 +56,3 @@ "hast-util-from-html": "^1.0.0", | ||
"hast-util-to-text": "^3.0.0", | ||
"micromark": "^3.0.0", | ||
"micromark": "^4.0.0", | ||
"prettier": "^2.0.0", | ||
@@ -80,9 +79,20 @@ "rehype": "^12.0.0", | ||
"prettier": { | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"semi": false, | ||
"trailingComma": "none" | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "none", | ||
"useTabs": false | ||
}, | ||
"remarkConfig": { | ||
"plugins": [ | ||
"remark-preset-wooorm" | ||
] | ||
}, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"ignoreCatch": true, | ||
"strict": true | ||
}, | ||
"xo": { | ||
@@ -100,14 +110,3 @@ "prettier": true, | ||
] | ||
}, | ||
"remarkConfig": { | ||
"plugins": [ | ||
"preset-wooorm" | ||
] | ||
}, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"strict": true, | ||
"ignoreCatch": true | ||
} | ||
} |
@@ -80,3 +80,3 @@ # micromark-extension-gfm | ||
```js | ||
import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@2' | ||
import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@3' | ||
``` | ||
@@ -88,3 +88,3 @@ | ||
<script type="module"> | ||
import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@2?bundle' | ||
import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@3?bundle' | ||
</script> | ||
@@ -310,9 +310,12 @@ ``` | ||
Projects maintained by the unified collective are compatible with all maintained | ||
Projects maintained by the unified collective are compatible with maintained | ||
versions of Node.js. | ||
As of now, that is Node.js 16+. | ||
Our projects sometimes work with older versions, but this is not guaranteed. | ||
These extensions work with `micromark` version 3+. | ||
When we cut a new major release, we drop support for unmaintained versions of | ||
Node. | ||
This means we try to keep the current release line, | ||
`micromark-extension-gfm@^3`, compatible with Node.js 16. | ||
This package works with `micromark` version `3` and later. | ||
## Security | ||
@@ -353,5 +356,5 @@ | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/micromark-extension-gfm.svg | ||
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-extension-gfm | ||
[size]: https://bundlephobia.com/result?p=micromark-extension-gfm | ||
[size]: https://bundlejs.com/?q=micromark-extension-gfm | ||
@@ -358,0 +361,0 @@ [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20321
434
+ Addeddevlop@1.1.0(transitive)
+ Addedmicromark-core-commonmark@2.0.1(transitive)
+ Addedmicromark-extension-gfm-autolink-literal@2.1.0(transitive)
+ Addedmicromark-extension-gfm-footnote@2.1.0(transitive)
+ Addedmicromark-extension-gfm-strikethrough@2.1.0(transitive)
+ Addedmicromark-extension-gfm-table@2.1.0(transitive)
+ Addedmicromark-extension-gfm-tagfilter@2.0.0(transitive)
+ Addedmicromark-extension-gfm-task-list-item@2.1.0(transitive)
+ Addedmicromark-factory-destination@2.0.0(transitive)
+ Addedmicromark-factory-label@2.0.0(transitive)
+ Addedmicromark-factory-space@2.0.0(transitive)
+ Addedmicromark-factory-title@2.0.0(transitive)
+ Addedmicromark-factory-whitespace@2.0.0(transitive)
+ Addedmicromark-util-character@2.1.0(transitive)
+ Addedmicromark-util-chunked@2.0.0(transitive)
+ Addedmicromark-util-classify-character@2.0.0(transitive)
+ Addedmicromark-util-combine-extensions@2.0.0(transitive)
+ Addedmicromark-util-encode@2.0.0(transitive)
+ Addedmicromark-util-html-tag-name@2.0.0(transitive)
+ Addedmicromark-util-normalize-identifier@2.0.0(transitive)
+ Addedmicromark-util-resolve-all@2.0.0(transitive)
+ Addedmicromark-util-sanitize-uri@2.0.0(transitive)
+ Addedmicromark-util-subtokenize@2.0.1(transitive)
+ Addedmicromark-util-symbol@2.0.0(transitive)
+ Addedmicromark-util-types@2.0.0(transitive)
- Removeddiff@5.2.0(transitive)
- Removedkleur@4.1.5(transitive)
- Removedmicromark-core-commonmark@1.1.0(transitive)
- Removedmicromark-extension-gfm-autolink-literal@1.0.5(transitive)
- Removedmicromark-extension-gfm-footnote@1.1.2(transitive)
- Removedmicromark-extension-gfm-strikethrough@1.0.7(transitive)
- Removedmicromark-extension-gfm-table@1.0.7(transitive)
- Removedmicromark-extension-gfm-tagfilter@1.0.2(transitive)
- Removedmicromark-extension-gfm-task-list-item@1.0.5(transitive)
- Removedmicromark-factory-destination@1.1.0(transitive)
- Removedmicromark-factory-label@1.1.0(transitive)
- Removedmicromark-factory-space@1.1.0(transitive)
- Removedmicromark-factory-title@1.1.0(transitive)
- Removedmicromark-factory-whitespace@1.1.0(transitive)
- Removedmicromark-util-character@1.2.0(transitive)
- Removedmicromark-util-chunked@1.1.0(transitive)
- Removedmicromark-util-classify-character@1.1.0(transitive)
- Removedmicromark-util-combine-extensions@1.1.0(transitive)
- Removedmicromark-util-encode@1.1.0(transitive)
- Removedmicromark-util-html-tag-name@1.2.0(transitive)
- Removedmicromark-util-normalize-identifier@1.1.0(transitive)
- Removedmicromark-util-resolve-all@1.1.0(transitive)
- Removedmicromark-util-sanitize-uri@1.2.0(transitive)
- Removedmicromark-util-subtokenize@1.1.0(transitive)
- Removedmicromark-util-symbol@1.1.0(transitive)
- Removedmicromark-util-types@1.1.0(transitive)
- Removedmri@1.2.0(transitive)
- Removedsade@1.8.1(transitive)
- Removeduvu@0.5.6(transitive)
Updatedmicromark-util-types@^2.0.0