{
 "kind": "tool",
 "slug": "remark-gfm",
 "path": "tools/remark-gfm/",
 "name": "remark-gfm",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Markdown, editors and content",
   "tools/content-editors/"
  ]
 ],
 "lead": "Remark plugin adding GitHub Flavored Markdown support for tables and strikethrough.",
 "chips": [
  {
   "label": "Markdown, editors and content",
   "path": "tools/content-editors/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install remark-gfm"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/remarkjs/remark-gfm"
  },
  {
   "label": "Website",
   "href": "https://github.com/remarkjs/remark-gfm#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/remarkjs/remark-gfm"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Quiet for a year",
   "status": "cond",
   "sub": "Last change Feb 10, 2025",
   "note": "Latest GitHub release Feb 10, 2025. ",
   "src": "https://github.com/remarkjs/remark-gfm"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "231 projects",
   "status": "info",
   "sub": "#2 of 149 in its category",
   "note": "Dependency in 231 public GitHub projects set up for AI coding agents that we scanned (3.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What remark-gfm does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "remark-gfm popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "71",
       "of": "/ 100",
       "l": "Gid Score, #325 overall"
      },
      {
       "n": "76.9M",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,260",
       "l": "GitHub stars"
      },
      {
       "n": "231",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How remark-gfm is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "137 projects, 4.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "108 projects, 3.6%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "106 projects, 4.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "27 projects, 5.7%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "20 projects, 4.3%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "13 projects, 3.9%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "10 projects, 2.9%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "9 projects, 3.2%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 71.4% of its projects",
       "v": "react-markdown",
       "path": "tools/react-markdown/"
      },
      {
       "l": "In 94.8% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 72.3% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 64.9% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 63.6% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 60.6% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 81.8% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 50.2% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "remark-gfm in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Parses and serializes GFM",
       "v": "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."
      },
      {
       "l": "Table alignment for CJK and emoji",
       "v": "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."
      },
      {
       "l": "Matches what readers assume markdown is",
       "v": "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."
      },
      {
       "l": "No XSS opening, per the README",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "HTML needs remark-rehype",
       "v": "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."
      },
      {
       "l": "Non-English footnotes: configure remark-rehype",
       "v": "The README says that if your content is not in English and uses footnotes, you should configure <code>remark-rehype</code>."
      },
      {
       "l": "Each major needs a specific remark-parse",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Markdown with GFM to HTML"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Js",
       "code": "import rehypeStringify from 'rehype-stringify'\nimport remarkGfm from 'remark-gfm'\nimport remarkParse from 'remark-parse'\nimport remarkRehype from 'remark-rehype'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkGfm)\n  .use(remarkRehype)\n  .use(rehypeStringify)\n  .process(await read('example.md'))\n\nconsole.log(String(file))"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about remark-gfm",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/unifiedjs",
        "Open Collective: https://opencollective.com/unified",
        "thanks.dev: https://thanks.dev/u/gh/remarkjs",
        "25 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "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"
       ]
      },
      {
       "title": "More in Markdown, editors and content",
       "path": "tools/content-editors/",
       "items": [
        {
         "text": "react-markdown",
         "path": "tools/react-markdown/"
        },
        {
         "text": "Marked",
         "path": "tools/marked/"
        },
        {
         "text": "Jinja2",
         "path": "tools/jinja2/"
        },
        {
         "text": "gray-matter",
         "path": "tools/gray-matter/"
        },
        {
         "text": "Tiptap",
         "path": "tools/tiptap/"
        },
        {
         "text": "Shiki",
         "path": "tools/shiki/"
        },
        {
         "text": "highlight.js",
         "path": "tools/highlight-js/"
        },
        {
         "text": "markdown-it",
         "path": "tools/markdown-it/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "remark-gfm",
       "me": true,
       "facts": [
        "MIT",
        "Gid 71",
        "76.9M/wk"
       ]
      }
     ],
     "more": "Compare remark-gfm with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install remark-gfm"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## remark-gfm\n- The package is ESM only. Import it as `import remarkGfm from 'remark-gfm'`; it exports no identifiers besides the default export.\n- Match versions: `remark-gfm@4` works with `remark-parse` 11+ (`remark` 15+). v3 worked with `remark-parse` 10, v2 with `remark-parse` 9.\n- To get HTML, chain `.use(remarkParse).use(remarkGfm).use(remarkRehype).use(rehypeStringify)`. remark-gfm does not turn markdown into HTML.\n- If the content is not in English and uses footnotes, configure `remark-rehype`, as the README advises.\n- Pass `{singleTilde: false}` if `~one~` should not become strikethrough.\n- When formatting tables with full-width characters or emoji, pass `{stringLength: stringWidth}` from `string-width`.\n- If the goal is only markdown to HTML, the README recommends `micromark` with `micromark-extension-gfm` instead.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm remark-gfm"
  ],
  [
   "Category",
   "Markdown, editors and content"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "4.0.1, February 10, 2025"
  ],
  [
   "On GitHub since",
   "October 2020"
  ],
  [
   "Gid Score",
   "71.4"
  ],
  [
   "Rank in category",
   "#2 of 149"
  ],
  [
   "GitHub",
   "remarkjs/remark-gfm"
  ],
  [
   "Last change",
   "Feb 10, 2025"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/remarkjs.png"
}