# remark-gfm — card for AI agents

Remark plugin adding GitHub Flavored Markdown support for tables and strikethrough.

Category: Markdown, editors and content · npm package `remark-gfm` · latest version 4.0.1 (checked 2026-11-01)
Install: `npm install remark-gfm`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## remark-gfm
- The package is ESM only. Import it as `import remarkGfm from 'remark-gfm'`; it exports no identifiers besides the default export.
- Match versions: `remark-gfm@4` works with `remark-parse` 11+ (`remark` 15+). v3 worked with `remark-parse` 10, v2 with `remark-parse` 9.
- To get HTML, chain `.use(remarkParse).use(remarkGfm).use(remarkRehype).use(rehypeStringify)`. remark-gfm does not turn markdown into HTML.
- If the content is not in English and uses footnotes, configure `remark-rehype`, as the README advises.
- Pass `{singleTilde: false}` if `~one~` should not become strikethrough.
- When formatting tables with full-width characters or emoji, pass `{stringLength: stringWidth}` from `string-width`.
- If the goal is only markdown to HTML, the README recommends `micromark` with `micromark-extension-gfm` instead.

## What it is
- remark-gfm is a plugin for remark, the markdown processor in the unified collective. It adds the extensions GitHub puts on top of CommonMark: autolink literals (`www.x.com`), footnotes (`[^1]`), strikethrough (`~~stuff~~`), tables and tasklists (`* [x]`). The repository was created on 2020-10-04 and is MIT licensed. The latest release, 4.0.1, was published on 2025-02-10.
- The plugin does not produce HTML. The README says turning markdown into HTML is the job of `remark-rehype`. Its example chains `remark-parse`, `remark-gfm`, `remark-rehype` and `rehype-stringify`. The plugin also serializes, so the README shows it with `remark` to format markdown, with options for aligning table pipes and padding cells.
- The README pitches it at projects that want to support "the same features that GitHub does in files in a repo, Gists, and several other places". It is ESM only. The current `remark-gfm@^4` line targets Node.js 16+.

## Caveats
- HTML needs remark-rehype: The plugin does not turn markdown into HTML. The README points to `remark-rehype` for how that happens and how to change it.
- Non-English footnotes: configure remark-rehype: The README says that if your content is not in English and uses footnotes, you should configure `remark-rehype`.
- Each major needs a specific remark-parse: v4 works with `remark-parse` 11+ (`remark` 15+). v3 worked with `remark-parse` 10 (`remark` 14), and v2 with `remark-parse` 9 (`remark` 13). Earlier `remark-parse` versions had a built-in `gfm` option instead.
- v4 and one Contentlayer setup: One blogger pinned `remark-gfm@^3.0.1` on a Next.js and Contentlayer site. The post says v4 did not seem to work with Contentlayer at the time of writing (November 2023).
- GFM has odd edges of its own: The maintainers warn that GitHub's implementation sometimes behaves unexpectedly or differs from its own spec. They say writing in GFM is "not always the best choice" and link bug notes for each feature.

## Numbers (AgentGid data)
- Gid Score: 71.4 (#325 of all tools, 15 of 149 in its category)
- Used in 231 public projects set up for AI coding agents (3.7%)
- Downloads last week: 76,938,145 (as of 2026-11-24), +57.8% over 4 weeks
- GitHub stars: 1,260 (as of 2026-11-24)
- Last push: 2025-02-10

## Often used with
react-markdown 71.4%, React 94.8%, Lucide React 72.3%, clsx 64.9%, Tailwind Merge 63.6%, Next.js 60.6%

## Links
- AgentGid page: https://agentgid.com/tools/remark-gfm/
- Homepage: https://github.com/remarkjs/remark-gfm#readme
- Repository: https://github.com/remarkjs/remark-gfm
- Source: https://github.com/remarkjs/remark-gfm#readme
- Source: https://github.com/remarkjs/remark-gfm
- Source: https://github.com/remarkjs/remark-gfm/releases
- Source: https://remark.js.org

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
