Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

remark-gfm

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

Markdown, editors and contentNPM

GitHubWebsite

1. License

License from npm.

github.com/remarkjs/remark-gfm

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What remark-gfm does

remark-gfm adds GitHub's five markdown extensions to a remark pipeline for both parsing and serializing, leaves HTML output to other plugins, and its README names the cases where a different package fits better.

remark-gfm popularity

71 / 100
Gid Score, #325 overall
76.9M
downloads a week, npm
1,260
GitHub stars
231
agent projects use it
remark-gfm: downloads per weeknpm, remark-gfm 76,938,145
remark-gfm: GitHub starsremarkjs/remark-gfm 1,260

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How remark-gfm is used

  • remark-gfm is a dependency in 231 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.7% of the 4,867 JavaScript/TypeScript ones), #2 of 149 in markdown, editors and content.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 921; those are left out of every share on this page.
  • Projects that use it most often also use react-markdown (71.4%), React (94.8%), Lucide React (72.3%).

By coding agent

137 projects, 4.2%
108 projects, 3.6%
106 projects, 4.3%
27 projects, 5.7%
20 projects, 4.3%
13 projects, 3.9%
10 projects, 2.9%
9 projects, 3.2%

Often used with

In 71.4% of its projects
In 94.8% of its projects
In 72.3% of its projects
In 64.9% of its projects
In 63.6% of its projects
In 60.6% of its projects
In 81.8% of its projects
In 50.2% of its projects

remark-gfm in practice

Strengths

Parses and serializes GFM

The README says the plugin adds support for both parsing and serializing the extensions. Its own example runs <code>remark().use(remarkGfm)</code> to reformat a table.

Table alignment for CJK and emoji

A <code>stringLength</code> option lets table cells be measured by visual width. The README shows <code>string-width</code> fixing misaligned pipes around full-width characters and emoji.

Matches what readers assume markdown is

The maintainers write that users often believe autolink literals and tables are part of normal markdown. They say the plugin helps match an implementation to that understanding.

No XSS opening, per the README

The README says use of the plugin "does not involve" rehype (hast) or user content. On that basis it states there are no openings for cross-site scripting.

Watch out for

HTML needs remark-rehype

The plugin does not turn markdown into HTML. The README points to <code>remark-rehype</code> 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 <code>remark-rehype</code>.

Each major needs a specific remark-parse

v4 works with <code>remark-parse</code> 11+ (<code>remark</code> 15+). v3 worked with <code>remark-parse</code> 10 (<code>remark</code> 14), and v2 with <code>remark-parse</code> 9 (<code>remark</code> 13). Earlier <code>remark-parse</code> versions had a built-in <code>gfm</code> option instead.

Markdown with GFM to HTML

import rehypeStringify from 'rehype-stringify'
import remarkGfm from 'remark-gfm'
import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import {read} from 'to-vfile'
import {unified} from 'unified'

const file = await unified()
  .use(remarkParse)
  .use(remarkGfm)
  .use(remarkRehype)
  .use(rehypeStringify)
  .process(await read('example.md'))

console.log(String(file))

More about remark-gfm

Funding
  • GitHub Sponsors: https://github.com/unifiedjs
  • Open Collective: https://opencollective.com/unified
  • thanks.dev: https://thanks.dev/u/gh/remarkjs
  • 25 GitHub sponsors

See all

Packages around it
  • react-markdown: Markdown rendering in React
  • lucide-react: Icon set
  • tailwind-merge: Tailwind class merging
  • clsx: Class name joining
  • class-variance-authority: Component variants
  • react: UI library
More in Markdown, editors and content

Alternatives

remark-gfm This page

MITGid 7176.9M/wk

Compare remark-gfm with another tool

Get started

Install it.

npm install remark-gfm

Rules for your agent

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.