Markdown to GitHub Converter
GitHub renders GitHub Flavored Markdown. A docs page written for MkDocs, Docusaurus, or Pandoc uses syntax that is not in that format, so a README or wiki page shows the raw markers. Paste the Markdown here and the tool rewrites those parts into forms that GitHub Docs describe. A !!! note admonition and a :::note container become a GitHub alert such as > [!NOTE]. A ??? collapsible block becomes a <details> section with a <summary>. A [TOC] marker becomes a list of links that use GitHub's heading anchors. A {#id .class} block on a heading is removed, and the id becomes an anchor tag. A Pandoc definition list becomes a bold term with a list, and a ^[inline note] becomes a numbered [^1] footnote. Two options convert \( \) math to $ math and Pandoc ^superscript^ and ~subscript~ to <sup> and <sub>. The tool lists each change, and it shows a notice for HTML tags that the GFM specification filters. Text in code blocks stays as it is. Everything runs in your browser. The tool does not connect to GitHub.
What this converter changes
!!! note "Title" → > [!NOTE]??? note "Title" → <details><summary>:::tip[Title] … ::: → > [!TIP][TOC] → - [Section](#section)## Title {#id .class} → ## Title``` {.python} → ```pythonTerm / : Definition → **Term** / - Definition^[inline note] → [^1]\(x\) → $x$ (option)H~2~O, 2^10^ → <sub>, <sup> (option)What GitHub renders, and what this tool writes
- Alerts. GitHub Docs list five alert types: NOTE, TIP, IMPORTANT, WARNING, and CAUTION. An alert is a block quote whose first line is the type, for example
> [!NOTE]. This tool maps each admonition type to one of the five.dangeranderrorbecome CAUTION,infobecomes NOTE, andhintbecomes TIP. A type with no match, such asexample, becomes a NOTE with the type as a bold title. GitHub Docs: Basic writing and formatting syntax - Nested alerts. GitHub Docs state that alerts cannot be nested within other elements. An admonition inside an admonition becomes a quote inside the alert. Check that block on GitHub.
- Collapsed sections. GitHub Docs give the
<details>tag with a<summary>for a section that the reader opens. A???block becomes that form, and a???+block becomes<details open>. GitHub Docs: Collapsed sections - Table of contents. GitHub builds an Outline menu for a file that has two or more headings. For a list in the page body, this tool writes one link for each heading. The link anchors follow the rules in GitHub Docs: lower-case letters, hyphens for spaces, no punctuation, and
-1,-2for a heading that repeats. - Heading IDs. For
{#my-id}on a heading, this tool writes<a name="my-id"></a>on the line before the heading. GitHub Docs give this tag for a custom anchor. - Footnotes. GitHub renders
[^1]footnotes. GitHub Docs state that wikis do not support footnotes. - Math. GitHub Docs give
$for inline math and$$or a```mathcode block for a math block. GitHub Docs: Writing mathematical expressions - Filtered HTML. The GFM specification filters nine tags: title, textarea, style, xmp, iframe, noembed, noframes, script, and plaintext. This tool shows a notice when the text has one of the nine. GFM spec: Disallowed Raw HTML
- Line breaks. GitHub Docs state that an issue, a pull request, or a discussion renders a line break automatically. In an .md file, a line break needs two spaces at the end of the line, a backslash, or a
<br/>tag. This tool does not change line ends. - Text inside code blocks and inline code stays as it is. For Obsidian wikilinks and callouts, use the Obsidian to Markdown converter. To write and preview Markdown, use the Markdown editor. All conversion runs in your browser, and this tool does not connect to GitHub.
Get new tools by email
We add tools most weeks. Give an email address and we send you the new ones, plus short notes on how to use them. No more than one email a week. Unsubscribe with one click.
How to Use Markdown to GitHub Converter
- Paste Markdown from MkDocs, Docusaurus, or Pandoc into the box above
- Set the two options if the text has \( \) math or Pandoc ^superscript^ and ~subscript~
- Read the list of changes under the output, and check each alert and each link in the list of sections
- Copy the Markdown into a README, an issue, a pull request, or a wiki page on GitHub
Frequently Asked Questions
- How do I convert Markdown to GitHub Flavored Markdown?
- Paste the Markdown into the box above. The converter rewrites the syntax that is not in GitHub Flavored Markdown: !!! admonitions, :::note containers, a [TOC] marker, {#id} heading blocks, definition lists, and ^[inline notes]. Then press Copy.
- Do I need to convert standard Markdown before I put it on GitHub?
- No. GitHub renders a .md file, an issue, and a pull request as GitHub Flavored Markdown with no conversion. This tool is for Markdown that was written for MkDocs, Docusaurus, or Pandoc. When the text has none of that syntax, the tool reports that no change is needed.
- How do I convert a MkDocs admonition to a GitHub alert?
- Paste the !!! block. The tool writes a block quote whose first line is the alert type, for example > [!WARNING], and puts the admonition title in bold on the next line. GitHub Docs list five alert types: NOTE, TIP, IMPORTANT, WARNING, and CAUTION.
- Which admonition types map to which GitHub alerts?
- note, tip, important, warning, and caution keep their name. danger, error, failure, and bug become CAUTION. hint and success become TIP. attention becomes WARNING. info, abstract, example, question, and quote become NOTE. A type with no close match keeps its name as a bold title in the alert.
- Does GitHub render a [TOC] marker?
- GitHub Docs describe an Outline menu that GitHub builds for a file with two or more headings. For a list in the page body, this tool replaces a [TOC] line with one link for each heading. The anchors follow the rules in GitHub Docs: lower-case letters, hyphens for spaces, and no punctuation.
- How do I write math for GitHub?
- GitHub Docs give $ for inline math and $$ for a math block. A ```math code block also gives a math block. Turn on the math option and the tool changes \( \) to $ and \[ \] to $$.
- Why does the same Markdown look different in a README and in an issue?
- GitHub Docs state that an issue, a pull request, or a discussion renders a line break automatically. In a .md file, a line break needs two spaces at the end of the line, a backslash, or a <br/> tag. This tool does not change line ends.
- Which HTML tags does GitHub filter?
- The GFM specification filters nine tags: title, textarea, style, xmp, iframe, noembed, noframes, script, and plaintext. The tool shows a notice when the text has one of the nine and leaves the tag in place.
- Is my Markdown uploaded?
- No. The conversion runs in your browser. The tool does not connect to GitHub and does not send the text to a server.
- Can it convert Obsidian notes for GitHub?
- Use the Obsidian to Markdown converter on this site for wikilinks, embeds, and Obsidian callouts. This tool handles MkDocs, Docusaurus, and Pandoc syntax.
Related Tools
Obsidian ↔ Markdown Converter
Convert Obsidian notes to standard GFM Markdown — wikilinks, embeds, callouts, highlights, tags, and frontmatter — or convert standard Markdown back to Obsidian syntax.
Table of Contents Generator
Generate a Markdown table of contents from your document. Free online TOC generator with anchor links.
Collapsible Section Generator
Generate collapsible/expandable sections for Markdown. Free online details/summary block builder.
Markdown Editor
Free online Markdown editor with live preview. Write and preview Markdown in real-time with GitHub Flavored Markdown support.
About Markdown to GitHub Converter
Convert Markdown from MkDocs, Docusaurus, or Pandoc to Markdown that GitHub renders. Admonitions become GitHub alerts, [TOC] becomes section links, and inline notes become footnotes. This tool runs entirely in your browser, so your content is not sent to a server. MarkdownMe provides free, fast, and reliable Markdown tools for developers, writers, and anyone who works with Markdown.