{"id":21473624,"url":"https://github.com/lucasepe/markdown","last_synced_at":"2026-04-10T23:02:32.397Z","repository":{"id":193622412,"uuid":"689091455","full_name":"lucasepe/markdown","owner":"lucasepe","description":"A CommonMark-compliant markdown parser and renderer in Go.","archived":false,"fork":false,"pushed_at":"2023-10-04T20:17:34.000Z","size":186,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T07:27:38.948Z","etag":null,"topics":["commonmark","golang","html-renderer","markdown"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasepe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-08T19:25:16.000Z","updated_at":"2023-11-06T15:32:47.000Z","dependencies_parsed_at":"2023-10-05T03:09:54.021Z","dependency_job_id":null,"html_url":"https://github.com/lucasepe/markdown","commit_stats":null,"previous_names":["lucasepe/markdown"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lucasepe/markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmarkdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmarkdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmarkdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmarkdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasepe","download_url":"https://codeload.github.com/lucasepe/markdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmarkdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264979764,"owners_count":23692492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commonmark","golang","html-renderer","markdown"],"created_at":"2024-11-23T10:18:03.011Z","updated_at":"2026-04-10T23:02:32.324Z","avatar_url":"https://github.com/lucasepe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown\n\nCommonMark-compliant markdown parser and renderer.\n\n\u003e Currently supported CommonMark spec: [v0.28](http://spec.commonmark.org/0.28/).\n\n## Extensions\n\nBesides the features required by CommonMark, golang-commonmark/markdown supports:\n\n  * Tables (GFM)\n  * Strikethrough (GFM)\n  * Autoconverting plain-text URLs to links\n  * Typographic replacements (smart quotes and other)\n\n## Usage\n\n``` go\nmd := markdown.New(markdown.XHTMLOutput(true))\nfmt.Println(md.RenderToString([]byte(\"Header\\n===\\nText\")))\n```\n\nThe following options are currently supported:\n\n  Name            |  Type     |                        Description                          | Default\n  --------------- | --------- | ----------------------------------------------------------- | ---------\n  HTML            | bool      | whether to enable raw HTML                                  | false\n  Tables          | bool      | whether to enable GFM tables                                | true\n  Linkify         | bool      | whether to autoconvert plain-text URLs to links             | true\n  Typographer     | bool      | whether to enable typographic replacements                  | true\n  Quotes          | string / []string | double + single quote replacement pairs for the typographer | “”‘’\n  MaxNesting      | int       | maximum nesting level                                       | 20\n  LangPrefix      | string    | CSS language prefix for fenced blocks                       | language-\n  Breaks          | bool      | whether to convert newlines inside paragraphs into `\u003cbr\u003e`   | false\n  XHTMLOutput     | bool      | whether to output XHTML instead of HTML                     | false\n\n## Benchmarks\n\nRendering spec/spec-0.28.txt on a Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz\n\n    BenchmarkRenderSpecNoHTML-4       158     7830071 ns/op    2893954 B/op    18361 allocs/op\n    BenchmarkRenderSpec-4             145     8189870 ns/op    2896310 B/op    18351 allocs/op\n    BenchmarkRenderSpecBlackFriday2-4 169     7211729 ns/op    2938768 B/op    19214 allocs/op\n\n## See also\n\nhttps://github.com/jgm/CommonMark — the reference CommonMark implementations in C and JavaScript,\n  also contains the latest spec and an online demo.\n\nhttps://github.com/yuin/goldmark - another CommonMark-compliant markdown parser in Go.\n\nhttp://talk.commonmark.org — the CommonMark forum, a good place to join together the efforts of the developers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fmarkdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasepe%2Fmarkdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fmarkdown/lists"}