Gathering detailed insights and metrics for micromark-extension-gfm
Gathering detailed insights and metrics for micromark-extension-gfm
Gathering detailed insights and metrics for micromark-extension-gfm
Gathering detailed insights and metrics for micromark-extension-gfm
micromark-extension-gfm-table
micromark extension to support GFM tables
micromark-extension-gfm-strikethrough
micromark extension to support GFM strikethrough
micromark-extension-gfm-footnote
micromark extension to support GFM footnotes
micromark-extension-gfm-tagfilter
micromark extension to support GFM tagfilter
micromark extension to support GFM (GitHub Flavored Markdown)
npm install micromark-extension-gfm
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
406,151,752
Last Day
294,443
Last Week
5,427,105
Last Month
23,238,174
Last Year
204,637,956
MIT License
34 Stars
75 Commits
2 Forks
6 Watchers
1 Branches
12 Contributors
Updated on Jun 10, 2025
Minified
Minified + Gzipped
Latest Version
3.0.0
Package Id
micromark-extension-gfm@3.0.0
Unpacked Size
19.84 kB
Size
5.77 kB
File Count
5
NPM Version
9.6.4
Node Version
20.0.0
Published on
Jun 26, 2023
Cumulative downloads
Total Downloads
Last Day
-0.7%
294,443
Compared to previous day
Last Week
-7.5%
5,427,105
Compared to previous week
Last Month
3.5%
23,238,174
Compared to previous month
Last Year
70.2%
204,637,956
Compared to previous year
8
micromark extensions to support GitHub flavored markdown (GFM).
This package contains extensions that add support for all features enabled by
GFM to micromark
.
It supports autolink literals, footnotes, strikethrough, tables, tagfilter, and
tasklists.
This project is useful when you want to support GFM in markdown.
You can use these extensions when you are working with micromark
.
Alternatively, you can also use the underlying features separately:
micromark-extension-gfm-autolink-literal
— support GFM autolink literalsmicromark-extension-gfm-footnote
— support GFM footnotesmicromark-extension-gfm-strikethrough
— support GFM strikethroughmicromark-extension-gfm-table
— support GFM tablesmicromark-extension-gfm-tagfilter
— support GFM tagfiltermicromark-extension-gfm-task-list-item
— support GFM tasklistsWhen you need a syntax tree, combine this package with
mdast-util-gfm
.
All these packages are used in remark-gfm
, which focusses on
making it easier to transform content by abstracting these internals away.
This package is ESM only. In Node.js (version 16+), install with npm:
1npm install micromark-extension-gfm
In Deno with esm.sh
:
1import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@3'
In browsers with esm.sh
:
1<script type="module"> 2 import {gfm, gfmHtml} from 'https://esm.sh/micromark-extension-gfm@3?bundle' 3</script>
Say our document example.md
contains:
1# GFM 2 3## Autolink literals 4 5www.example.com, https://example.com, and contact@example.com. 6 7## Footnote 8 9A note[^1] 10 11[^1]: Big note. 12 13## Strikethrough 14 15~one~ or ~~two~~ tildes. 16 17## Table 18 19| a | b | c | d | 20| - | :- | -: | :-: | 21 22## Tag filter 23 24<plaintext> 25 26## Tasklist 27 28* [ ] to do 29* [x] done
…and our module example.js
looks as follows:
1import fs from 'node:fs/promises' 2import {micromark} from 'micromark' 3import {gfm, gfmHtml} from 'micromark-extension-gfm' 4 5const output = micromark(await fs.readFile('example.md'), { 6 allowDangerousHtml: true, 7 extensions: [gfm()], 8 htmlExtensions: [gfmHtml()] 9}) 10 11console.log(output)
…now running node example.js
yields:
1<h1>GFM</h1> 2<h2>Autolink literals</h2> 3<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> 4<h2>Footnote</h2> 5<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> 6<h2>Strikethrough</h2> 7<p><del>one</del> or <del>two</del> tildes.</p> 8<h2>Table</h2> 9<table> 10<thead> 11<tr> 12<th>a</th> 13<th align="left">b</th> 14<th align="right">c</th> 15<th align="center">d</th> 16</tr> 17</thead> 18</table> 19<h2>Tag filter</h2> 20<plaintext> 21<h2>Tasklist</h2> 22<ul> 23<li><input type="checkbox" disabled="" /> to do</li> 24<li><input type="checkbox" disabled="" checked="" /> done</li> 25</ul> 26<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2> 27<ol> 28<li id="user-content-fn-1"> 29<p>Big note. <a href="#user-content-fnref-1" data-footnote-backref="" class="data-footnote-backref" aria-label="Back to content">↩</a></p> 30</li> 31</ol> 32</section>
This package exports the identifiers gfm
and
gfmHtml
.
There is no default export.
The separate extensions support the development
condition.
Run node --conditions development module.js
to get instrumented dev code.
Without this condition, production code is loaded.
gfm(options?)
Create an extension for micromark
to enable GFM syntax.
options
(Options
, optional)
— configuration; passed to
micromark-extens-gfm-strikethrough
Extension for micromark
that can be passed in extensions
to enable GFM
syntax (Extension
).
gfmHtml(options?)
Create an extension for micromark
to support GFM when serializing to HTML.
options
(HtmlOptions
, optional)
— configuration; passed to
micromark-extens-gfm-footnote
Extension for micromark
that can be passed in htmlExtensions
to support GFM
when serializing to HTML (HtmlExtension
).
Options
Configuration for syntax (TypeScript type).
1export type {Options} from 'micromark-extension-gfm-strikethrough'
HtmlOptions
Configuration for HTML (TypeScript type).
1export type {HtmlOptions} from 'micromark-extension-gfm-footnote'
For bugs present in GFM but not here, or other peculiarities that are supported, see each corresponding readme:
For recommendations on how to author GFM, see each corresponding readme:
For info on what HTML features GFM relates to, see each corresponding readme:
For info on how GitHub styles these features, see each corresponding readme:
For info on the syntax of these features, see each corresponding readme:
This package is fully typed with TypeScript.
It exports the additional types HtmlOptions
and
Options
.
Projects maintained by the unified collective are compatible with maintained versions of Node.js.
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.
This package is safe.
Setting clobberPrefix = ''
is dangerous, it opens you up to DOM clobbering.
The labelTagName
and labelAttributes
options are unsafe when used with user
content, they allow defining arbitrary HTML.
See contributing.md
in micromark/.github
for ways to get
started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More