Convert Markdown files to HTML in a Go web application or static site generator.
Add custom Markdown syntax extensions without forking the library.
Use as a standards-compliant parser that produces the same output as GitHub and other CommonMark platforms.
Zero third-party dependencies, uses only Go standard library packages.
goldmark is a library written in Go that converts Markdown text into HTML. Markdown is a lightweight writing format where you use simple symbols to indicate structure: asterisks for bold, pound signs for headings, hyphens for list items. goldmark reads that source text and produces the HTML output a browser or document tool can display. The library was built because the author found that existing Go Markdown parsers either did not follow the CommonMark standard or could not be extended from outside the package. CommonMark is a formal specification that defines exactly how Markdown should be parsed in ambiguous situations, and goldmark follows the latest version of it. Being standards-compliant matters in practice: Markdown documents written for GitHub or other CommonMark-based platforms should produce the same output in goldmark without surprises. Extensibility is a central design goal. Developers can add custom block and inline syntax, write new tree-transformation steps, or replace the HTML renderer entirely, all without forking the library. goldmark also ships with several built-in extras: tables, strikethrough, task lists, definition lists, and a GitHub Flavored Markdown bundle that activates the most commonly used extensions in one call. The library depends only on Go standard library packages, which means no third-party dependencies to manage. Performance is described as comparable to cmark, the reference CommonMark implementation written in C. The library is tested with Go built-in fuzzing tools to catch edge cases in parsing. An online playground lets anyone try goldmark in a browser without installing Go locally. The library is released under the MIT license.
← yuin on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.