{"name":"micromark-extension-gfm","version":"2.0.1","description":"micromark extension to support GFM (GitHub Flavored Markdown)","license":"MIT","keywords":["micromark","micromark-extension","table","strikethrough","tasklist","autolink","footnote","tagfilter","github","gfm","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-gfm.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-gfm/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"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"},"devDependencies":{"@types/node-fetch":"^3.0.0","@types/tape":"^4.0.0","c8":"^7.0.0","create-gfm-fixtures":"^1.0.0","hast-util-select":"^5.0.0","hast-util-to-text":"^3.0.0","micromark":"^3.0.0","node-fetch":"^3.0.0","prettier":"^2.0.0","rehype":"^12.0.0","rehype-parse":"^8.0.0","rehype-sort-attributes":"^4.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unified":"^10.0.0","xo":"^0.47.0"},"scripts":{"build":"rimraf \"*.d.ts\" \"script/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"overrides":[{"files":["{test,script}/**/*.js"],"rules":{"no-await-in-loop":"off"}}]},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"7bc6b6f3baf941f877d7b2111e9257b21b13b37e","homepage":"https://github.com/micromark/micromark-extension-gfm#readme","_id":"micromark-extension-gfm@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-p2sGjajLa0iYiGQdT0oelahRYtMWvLjy8J9LOCxzIQsllMCGLbsLW+Nc+N4vi02jcRJvedVJ68cjelKIO6bpDA==","shasum":"40f3209216127a96297c54c67f5edc7ef2d1a2a2","tarball":"http://registry-npm.ywwl.com/micromark-extension-gfm/download/micromark-extension-gfm-2.0.1.tgz","fileCount":5,"unpackedSize":16865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwfDYCRA9TVsSAnZWagAA+UwQAILGWEdJTEWMPoCJ5C6J\nIk9XuO1pvN4dkUIiWjoQBZjqUloh6ZBAXlvTy6uf+9RpaAjLUVYZIk44N4Qs\nPEfIXQhw8M/61UgYCRjEh9mM544V2dE0Gl3r8lOTQUcl4Js/8fPuYywXtrMU\ngKk+gSWtLKXJb/Lj+wY//cCSmivHJM0zvsIIxFwylKE+S8F3r8u4aexQnC5R\nEMprSpjiTUHlEXv0lqcBEfxYhYj2/9/TKc4VAbOSoIRggHkJ4usHAiZQuynf\nHPIqr7qD6mAZ22KDpQ/Z3PK3LNeppsJuD4FOB+hq5QcuMw/HQI0Z3ubZVjIe\nivtVAZfaDawmElUSfL3goFXKtxOwSQY+Pr/Y9D/7Id1D8xzLKKcH1gEFrzz7\nHClLxXknQT3yeBCKB/4SjnUKxlfoDiZauFl1s7CzJEUCJwAW8QVB+KcMWsND\nvlsg/y5y++S34XgABQ2vF3ImhAXFdzUBLbseZl65XfsXg6noI2DWUJ0HOGAv\njL1p5yEGc0RWQOJ5CZ0LAj47pV4X1hwklzPGCiGUQk37tXDGapw1YeM7bmHe\nnLAG2DfsXizVj5N7K+SmfrXlEUJcGE0WFsRSOySTE/OtYZfOJ/mXZvcanNiT\nIyiaEXCzELEqkYXEEdq7xessUut9BcKVFmgVUHkA/XGlLyMwQggUpomdKkxn\nrRuS\r\n=nAyf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwMZPvhDcy8Ad/PMfVUGTshmeWIUyToOQUmIGevhU6OAiEA/EIxwjIyN8OCe8VHonmy3JXSrGHSEZSwHuiZkfwNzWo="}],"size":5373,"noattachment":false,"key":"/micromark-extension-gfm/-/micromark-extension-gfm-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-gfm_2.0.1_1640100056844_0.9447411409291215"},"_hasShrinkwrap":false,"readme":"# micromark-extension-gfm\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[micromark][] extensions to support [GitHub flavored markdown][gfm] (GFM).\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When to use this](#when-to-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`gfm(options?)`](#gfmoptions)\n    *   [`gfmHtml(options?)`](#gfmhtmloptions)\n    *   [`Options`](#options)\n    *   [`HtmlOptions`](#htmloptions)\n*   [Bugs](#bugs)\n*   [Authoring](#authoring)\n*   [HTML](#html)\n*   [CSS](#css)\n*   [Syntax](#syntax)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package contains extensions that add support for all features enabled by\nGFM to [`micromark`][micromark].\nIt supports autolink literals, footnotes, strikethrough, tables, tagfilter, and\ntasklists.\n\n## When to use this\n\nThis project is useful when you want to support GFM in markdown.\n\nYou can use these extensions when you are working with [`micromark`][micromark].\nAlternatively, you can also use the underlying features separately:\n\n*   [`micromark-extension-gfm-autolink-literal`][gfm-autolink-literal]\n    — support GFM [autolink literals][]\n*   [`micromark-extension-gfm-footnote`][gfm-footnote]\n    — support GFM [footnotes][]\n*   [`micromark-extension-gfm-strikethrough`][gfm-strikethrough]\n    — support GFM [strikethrough][]\n*   [`micromark-extension-gfm-table`][gfm-table]\n    — support GFM [tables][]\n*   [`micromark-extension-gfm-tagfilter`][gfm-tagfilter]\n    — support GFM [tagfilter][]\n*   [`micromark-extension-gfm-task-list-item`][gfm-task-list-item]\n    — support GFM [tasklists][]\n\nWhen you need a syntax tree, combine this package with\n[`mdast-util-gfm`][mdast-util-gfm].\n\nAll these packages are used in [`remark-gfm`][remark-gfm], which focusses on\nmaking it easier to transform content by abstracting these internals away.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install micromark-extension-gfm\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@3?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.md` contains:\n\n```markdown\n# GFM\n\n## Autolink literals\n\nwww.example.com, https://example.com, and contact@example.com.\n\n## Footnote\n\nA note[^1]\n\n[^1]: Big note.\n\n## Strikethrough\n\n~one~ or ~~two~~ tildes.\n\n## Table\n\n| a | b  |  c |  d  |\n| - | :- | -: | :-: |\n\n## Tag filter\n\n<plaintext>\n\n## Tasklist\n\n* [ ] to do\n* [x] done\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport fs from 'node:fs/promises'\nimport {micromark} from 'micromark'\nimport {gfm, gfmHtml} from 'micromark-extension-gfm'\n\nconst output = micromark(await fs.readFile('example.md'), {\n  allowDangerousHtml: true,\n  extensions: [gfm()],\n  htmlExtensions: [gfmHtml()]\n})\n\nconsole.log(output)\n```\n\n…now running `node example.js` yields:\n\n```html\n<h1>GFM</h1>\n<h2>Autolink literals</h2>\n<p><a href=\"http://www.example.com\">www.example.com</a>, <a href=\"https://example.com\">https://example.com</a>, and <a href=\"mailto:contact@example.com\">contact@example.com</a>.</p>\n<h2>Footnote</h2>\n<p>A note<sup><a href=\"#user-content-fn-1\" id=\"user-content-fnref-1\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>\n<h2>Strikethrough</h2>\n<p><del>one</del> or <del>two</del> tildes.</p>\n<h2>Table</h2>\n<table>\n<thead>\n<tr>\n<th>a</th>\n<th align=\"left\">b</th>\n<th align=\"right\">c</th>\n<th align=\"center\">d</th>\n</tr>\n</thead>\n</table>\n<h2>Tag filter</h2>\n&lt;plaintext>\n<h2>Tasklist</h2>\n<ul>\n<li><input type=\"checkbox\" disabled=\"\" /> to do</li>\n<li><input type=\"checkbox\" disabled=\"\" checked=\"\" /> done</li>\n</ul>\n<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>\n<ol>\n<li id=\"user-content-fn-1\">\n<p>Big note. <a href=\"#user-content-fnref-1\" data-footnote-backref=\"\" class=\"data-footnote-backref\" aria-label=\"Back to content\">↩</a></p>\n</li>\n</ol>\n</section>\n```\n\n## API\n\nThis package exports the identifiers [`gfm`][api-gfm] and\n[`gfmHtml`][api-gfm-html].\nThere is no default export.\n\nThe separate extensions support the [`development` condition][development].\nRun `node --conditions development module.js` to get instrumented dev code.\nWithout this condition, production code is loaded.\n\n### `gfm(options?)`\n\nCreate an extension for `micromark` to enable GFM syntax.\n\n###### Parameters\n\n*   `options` ([`Options`][api-options], optional)\n    — configuration; passed to\n    [`micromark-extens-gfm-strikethrough`][gfm-strikethrough-options]\n\n###### Returns\n\nExtension for `micromark` that can be passed in `extensions` to enable GFM\nsyntax ([`Extension`][micromark-extension]).\n\n### `gfmHtml(options?)`\n\nCreate an extension for `micromark` to support GFM when serializing to HTML.\n\n###### Parameters\n\n*   `options` ([`HtmlOptions`][api-html-options], optional)\n    — configuration; passed to\n    [`micromark-extens-gfm-footnote`][gfm-footnote-html-options]\n\n###### Returns\n\nExtension for `micromark` that can be passed in `htmlExtensions` to support GFM\nwhen serializing to HTML ([`HtmlExtension`][micromark-html-extension]).\n\n### `Options`\n\nConfiguration for syntax (TypeScript type).\n\n###### Type\n\n```ts\nexport type {Options} from 'micromark-extension-gfm-strikethrough'\n```\n\n[See `Options`][gfm-strikethrough-options].\n\n### `HtmlOptions`\n\nConfiguration for HTML (TypeScript type).\n\n###### Type\n\n```ts\nexport type {HtmlOptions} from 'micromark-extension-gfm-footnote'\n```\n\n[See `HtmlOptions`][gfm-footnote-html-options].\n\n## Bugs\n\nFor bugs present in GFM but not here, or other peculiarities that are\nsupported, see each corresponding readme:\n\n*   [autolink literal](https://github.com/micromark/micromark-extension-gfm-autolink-literal#bugs)\n*   [footnote](https://github.com/micromark/micromark-extension-gfm-footnote#bugs)\n*   strikethrough: n/a\n*   [table](https://github.com/micromark/micromark-extension-gfm-table#bugs)\n*   tagfilter: n/a\n*   tasklists: n/a\n\n## Authoring\n\nFor recommendations on how to author GFM, see each corresponding readme:\n\n*   [autolink literal](https://github.com/micromark/micromark-extension-gfm-autolink-literal#authoring)\n*   [footnote](https://github.com/micromark/micromark-extension-gfm-footnote#authoring)\n*   [strikethrough](https://github.com/micromark/micromark-extension-gfm-strikethrough#authoring)\n*   [table](https://github.com/micromark/micromark-extension-gfm-table#authoring)\n*   tagfilter: n/a\n*   [tasklists](https://github.com/micromark/micromark-extension-gfm-task-list-item#authoring)\n\n## HTML\n\nFor info on what HTML features GFM relates to, see each corresponding readme:\n\n*   [autolink literal](https://github.com/micromark/micromark-extension-gfm-autolink-literal#html)\n*   [footnote](https://github.com/micromark/micromark-extension-gfm-footnote#html)\n*   [strikethrough](https://github.com/micromark/micromark-extension-gfm-strikethrough#html)\n*   [table](https://github.com/micromark/micromark-extension-gfm-table#html)\n*   [tagfilter](https://github.com/micromark/micromark-extension-gfm-tagfilter#html)\n*   [tasklists](https://github.com/micromark/micromark-extension-gfm-task-list-item#html)\n\n## CSS\n\nFor info on how GitHub styles these features, see each corresponding readme:\n\n*   [autolink literal](https://github.com/micromark/micromark-extension-gfm-autolink-literal#css)\n*   [footnote](https://github.com/micromark/micromark-extension-gfm-footnote#css)\n*   [strikethrough](https://github.com/micromark/micromark-extension-gfm-strikethrough#css)\n*   [table](https://github.com/micromark/micromark-extension-gfm-table#css)\n*   tagfilter: n/a\n*   [tasklists](https://github.com/micromark/micromark-extension-gfm-task-list-item#css)\n\n## Syntax\n\nFor info on the syntax of these features, see each corresponding readme:\n\n*   [autolink literal](https://github.com/micromark/micromark-extension-gfm-autolink-literal#syntax)\n*   [footnote](https://github.com/micromark/micromark-extension-gfm-footnote#syntax)\n*   [strikethrough](https://github.com/micromark/micromark-extension-gfm-strikethrough#syntax)\n*   [table](https://github.com/micromark/micromark-extension-gfm-table#syntax)\n*   tagfilter: n/a\n*   [tasklists](https://github.com/micromark/micromark-extension-gfm-task-list-item#syntax)\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`HtmlOptions`][api-html-options] and\n[`Options`][api-options].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`micromark-extension-gfm@^3`, compatible with Node.js 16.\n\nThis package works with `micromark` version `3` and later.\n\n## Security\n\nThis package is safe.\nSetting `clobberPrefix = ''` is dangerous, it opens you up to DOM clobbering.\nThe `labelTagName` and `labelAttributes` options are unsafe when used with user\ncontent, they allow defining arbitrary HTML.\n\n## Contribute\n\nSee [`contributing.md` in `micromark/.github`][contributing] for ways to get\nstarted.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/micromark/micromark-extension-gfm/workflows/main/badge.svg\n\n[build]: https://github.com/micromark/micromark-extension-gfm/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark-extension-gfm.svg\n\n[coverage]: https://codecov.io/github/micromark/micromark-extension-gfm\n\n[downloads-badge]: https://img.shields.io/npm/dm/micromark-extension-gfm.svg\n\n[downloads]: https://www.npmjs.com/package/micromark-extension-gfm\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-extension-gfm\n\n[size]: https://bundlejs.com/?q=micromark-extension-gfm\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/micromark/micromark/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[contributing]: https://github.com/micromark/.github/blob/main/contributing.md\n\n[support]: https://github.com/micromark/.github/blob/main/support.md\n\n[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[development]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions\n\n[typescript]: https://www.typescriptlang.org\n\n[gfm]: https://github.github.com/gfm/\n\n[strikethrough]: https://github.github.com/gfm/#strikethrough-extension-\n\n[tables]: https://github.github.com/gfm/#tables-extension-\n\n[tasklists]: https://github.github.com/gfm/#task-list-items-extension-\n\n[autolink literals]: https://github.github.com/gfm/#autolinks-extension-\n\n[tagfilter]: https://github.github.com/gfm/#disallowed-raw-html-extension-\n\n[footnotes]: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n\n[micromark]: https://github.com/micromark/micromark\n\n[micromark-extension]: https://github.com/micromark/micromark#syntaxextension\n\n[micromark-html-extension]: https://github.com/micromark/micromark#htmlextension\n\n[gfm-strikethrough]: https://github.com/micromark/micromark-extension-gfm-strikethrough\n\n[gfm-strikethrough-options]: https://github.com/micromark/micromark-extension-gfm-strikethrough#options\n\n[gfm-autolink-literal]: https://github.com/micromark/micromark-extension-gfm-autolink-literal\n\n[gfm-footnote]: https://github.com/micromark/micromark-extension-gfm-footnote\n\n[gfm-footnote-html-options]: https://github.com/micromark/micromark-extension-gfm-footnote#htmloptions\n\n[gfm-table]: https://github.com/micromark/micromark-extension-gfm-table\n\n[gfm-tagfilter]: https://github.com/micromark/micromark-extension-gfm-tagfilter\n\n[gfm-task-list-item]: https://github.com/micromark/micromark-extension-gfm-task-list-item\n\n[remark-gfm]: https://github.com/remarkjs/remark-gfm\n\n[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm\n\n[api-gfm]: #gfmoptions\n\n[api-gfm-html]: #gfmhtmloptions\n\n[api-options]: #options\n\n[api-html-options]: #htmloptions\n","publish_time":1640100056981,"_cnpm_publish_time":1640100056981,"dist-tags":{"latest":"3.0.0"}}