turndown-plugin-gfm

A Turndown plugin that adds GitHub Flavored Markdown extensions to HTML-to-Markdown conversion.

Library
npm
v1.0.2
131stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
41/100Fair
Development Activity0
Maintenance20
Community64
Maturity60
Momentum20

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
62/100Good
Architecture65
Code Quality62
Innovation45
Learning Curve75

turndown-plugin-gfm is a companion plugin for the Turndown HTML-to-Markdown converter that adds the GitHub Flavored Markdown (GFM) rules Turndown’s core doesn’t cover out of the box: strikethrough, tables, and task list items. Each rule is exposed both individually and bundled as a single gfm plugin, so consumers can apply only the extensions they need.

What You Get

  • A gfm export that bundles all GFM rules into Turndown with a single turndownService.use(gfm) call
  • Individually importable strikethrough, tables, and taskListItems plugins for selective use
  • Table conversion that respects column alignment (left/right/center) and only converts tables with a heading row
  • Prebuilt CJS, ESM, and browser IIFE bundles alongside the source

Common Use Cases

  • Converting GitHub README or wiki HTML back into GFM-flavored Markdown
  • Building a markdown-export feature for a rich text or WYSIWYG editor that needs GitHub-style tables and task lists
  • Round-tripping HTML content from CMS or scraped pages into Markdown that renders correctly on GitHub

Under The Hood

Architecture: The library is organized as independent Turndown rule modules (strikethrough.js, tables.js, task-list-items.js, highlighted-code-block.js) each exporting a function that calls turndownService.addRule() with a filter and replacement, unified by gfm.js which imports and applies all four via turndownService.use([…]); the tables module additionally maintains its own internal rules object and helper functions (cell, isHeadingRow) to handle GFM table alignment syntax. Tech Stack: Written in plain ES module JavaScript, built with Rollup into CJS/ES/IIFE bundles via config/rollup.config.*.js, tested with a custom turndown-attendant harness and linted with the standard style guide; its only real dependency is the peer Turndown library it plugs into. Code Quality: The test suite (test/turndown-plugin-gfm-test.js) exercises the built bundle rather than source directly and is thin relative to the rule surface (no per-branch alignment/edge-case coverage visible beyond the attendant fixtures); code favors small, single-purpose functions per rule with no classes or heavy abstraction. API Design: The API is minimal and composable, one call to turndownService.use(gfm) or use([tables]) for a-la-carte rule selection, requiring no configuration objects or setup beyond passing rules into an existing TurndownService instance.

Used by 6 apps in this directory

TypeScript
95%
Apache 2.0

AionUi

AI Agents · Productivity

32,102

Free, open-source Cowork desktop app that unifies Claude Code, Codex, Gemini CLI, and 20+ AI agents into a single platform with multi-agent teams, 24/7 cron automation, and zero-config built-in agent.

View details
88
Repo Health
76
Technical
66
Dependency
Built with
TypeScript95%
Updated today
TypeScript
99%
AGPL 3.0

Cherry Studio

AI Assistants

50,753

All-in-one AI desktop client with 300+ assistants and multi-model support

View details
88
Repo Health
84
Technical
71
Dependency
Built with
TypeScript99%
Updated today
Swift
64%
GPL 3.0

cmux

Developer Tools · AI Development

26,221

A native, Ghostty-based macOS terminal with vertical tabs, agent-aware notifications, and a scriptable browser built for running many parallel AI coding agent sessions instead of juggling tmux panes.

View details
84
Repo Health
81
Technical
72
Dependency
Built with
Swift64%
Rust14%
Updated today
TypeScript
94%
MIT

Kaneo

Product Management · Productivity · Project Management

8,371

Lightweight self-hosted project management that gives you kanban boards, GitHub sync, and full team collaboration without the enterprise bloat.

View details
86
Repo Health
81
Technical
70
Dependency
Built with
TypeScript94%
Updated today
Python
37%
Other

Open WebUI

AI Assistants · AI Agents

149,204

The extensible, privacy-first AI platform that runs Ollama, OpenAI, and any LLM backend behind a polished, feature-packed web interface.

View details
91
Repo Health
75
Technical
66
Dependency
Built with
Python37%
Svelte33%
JavaScript22%
Updated today
TypeScript
94%
Other

Suna

AI Agents

20,116

Turn your company into a git repo — one config, one command center, a workforce of AI agents that runs the real work around the clock.

View details
90
Repo Health
79
Technical
69
Dependency
Built with
TypeScript94%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search