git404hub

what is goldmark fr?

yuin/goldmark — explained in plain English

Analysis updated 2026-06-26

4,759GoAudience · developerComplexity · 2/5LicenseSetup · easy

tl;dr

A Go library that converts Markdown text to HTML, fully compliant with the CommonMark standard. Highly extensible, add custom syntax, AST transformers, or renderers without forking the library.

vibe map

mindmap
  root((goldmark))
    What it does
      Markdown to HTML
      CommonMark compliant
    Extensions
      Tables
      Strikethrough
      Task lists
      Custom syntax
    Tech Stack
      Go only
      Zero dependencies
    Use Cases
      Static site generators
      Web apps
      Documentation tools

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Convert Markdown files to HTML in a Go web application or static site generator.

VIBE 2

Add custom Markdown syntax extensions without forking the library.

VIBE 3

Use as a standards-compliant parser that produces the same output as GitHub and other CommonMark platforms.

what's the stack?

Go

how it stacks up fr

yuin/goldmarkgomods/athenssuperfly/litefs
Stars4,7594,7544,765
LanguageGoGoGo
Setup difficultyeasymoderatehard
Complexity2/54/54/5
Audiencedeveloperops devopsops devops

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Zero third-party dependencies, uses only Go standard library packages.

Free to use for any purpose, including commercial use, as long as the MIT license notice is kept.

in plain english

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.

prompts (copy fr)

prompt 1
Using goldmark in Go, write a function that takes a Markdown string and returns an HTML string, with the GitHub Flavored Markdown bundle enabled.
prompt 2
In goldmark, how do I write a custom extension that adds a new inline syntax for highlighting text with ==double equals==?
prompt 3
Using goldmark, how do I add a transformer that walks the AST and adds a target='_blank' attribute to all external links in the rendered HTML?
prompt 4
Show me how to enable goldmark's built-in table, strikethrough, and task-list extensions all at once in a single goldmark.New() call.

Frequently asked questions

what is goldmark fr?

A Go library that converts Markdown text to HTML, fully compliant with the CommonMark standard. Highly extensible, add custom syntax, AST transformers, or renderers without forking the library.

What language is goldmark written in?

Mainly Go. The stack also includes Go.

What license does goldmark use?

Free to use for any purpose, including commercial use, as long as the MIT license notice is kept.

How hard is goldmark to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is goldmark for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.