Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

markdoc

> 前端框架
Open source

A powerful, flexible, Markdown-based authoring framework.

8.1K stars0 likes0 views
WebsiteGitHub

About

A powerful, flexible, Markdown-based authoring framework.




A powerful, flexible, Markdown-based authoring framework.

Markdoc is a Markdown-based syntax and toolchain for creating custom documentation sites and experiences.
We designed Markdoc to power Stripe's public docs, our largest and most complex content site.

Installation

To get started with Markdoc, first install the library:

bash
npm install @markdoc/markdoc

or

bash
yarn add @markdoc/markdoc

and import it in your app:

javascript
const Markdoc = require('@markdoc/markdoc');

or if you are using ESM

javascript
import Markdoc from '@markdoc/markdoc';

then use Markdoc in your app or tool:

javascript
const doc = `
# Markdoc README

{% image src="/logo.svg" /%}
`;

const ast = Markdoc.parse(doc);
const content = Markdoc.transform(ast);
return Markdoc.renderers.react(content, React);

Check out our docs for more guidance on how to use Markdoc.

TypeScript

This is the minimal tsconfig.json required to use Markdoc in your TypeScript project:

json
{
  "compilerOptions": {
    "moduleResolution": "node",
    "target": "esnext", // works with es2015 or greater
    "esModuleInterop": true
  }
}

React

If you are using React, install Markdoc with:

bash
npm install @markdoc/markdoc react @types/react

Contributing

Contributions and feedback are welcome and encouraged. Check out our contributing guidelines on how to do so.

Development

  1. Run npm install
  2. Run npm run build
  3. Run the tests using npm test

Code of conduct

This project has adopted the Stripe Code of conduct.

License

This project uses the MIT license.

Credits

Special shout out to:

  • @marcioAlmada for providing us with the @markdoc GitHub org.
  • @koomen for gifting us https://markdoc.dev.

Issues· 31 open

View all issuesOpen on GitHub
  • #637

    Heading escape regex matches # anywhere in text, not just at line start

    bugUpdated Sep 18, 2026
  • #114

    Tag is ignored when double quote is missing in tag attribute

    buggood first issuehelp wantedUpdated Sep 8, 2026
  • #590

    Escaped links/images lose escaping after formatting

    bugUpdated Jul 6, 2026
  • #510

    Markdoc Language Server is not working on Windows

    bugUpdated Mar 29, 2026
  • #612

    ESM support breaks on plain Node.js

    bugUpdated Mar 19, 2026
  • #598

    Incorrect line length calculation in formatter

    Updated Feb 8, 2026
  • #597

    Multi-line opening tags break sibling tag detection

    Updated Jan 15, 2026
  • #558

    VSCode extension markdoc file icon support

    Updated Oct 13, 2025
  • #547

    Example projects are out of date

    Updated Mar 31, 2025
  • #548

    Prettier plugin for Markdoc tags

    enhancementUpdated Feb 24, 2025

> Tags

TypeScriptauthoringdocumentationmarkdocmarkdown

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架