{"id":19783983,"url":"https://github.com/delthas/discord-formatting","last_synced_at":"2026-05-06T01:36:18.846Z","repository":{"id":128472724,"uuid":"519020297","full_name":"delthas/discord-formatting","owner":"delthas","description":"A small Go library for parsing Discord markdown-like messages to an AST","archived":false,"fork":false,"pushed_at":"2022-07-30T15:21:38.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T02:48:19.411Z","etag":null,"topics":["ast","discord","formatting","markdown","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delthas.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-28T23:23:10.000Z","updated_at":"2024-12-01T22:44:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cf57f7d-60ba-4597-a336-ae0e4047a71b","html_url":"https://github.com/delthas/discord-formatting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delthas%2Fdiscord-formatting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delthas%2Fdiscord-formatting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delthas%2Fdiscord-formatting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delthas%2Fdiscord-formatting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delthas","download_url":"https://codeload.github.com/delthas/discord-formatting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241116833,"owners_count":19912448,"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":["ast","discord","formatting","markdown","parser"],"created_at":"2024-11-12T06:09:54.908Z","updated_at":"2025-10-19T01:05:53.647Z","avatar_url":"https://github.com/delthas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-formatting [![GoDoc](https://godoc.org/github.com/delthas/discord-formatting?status.svg)](https://godoc.org/github.com/delthas/discord-formatting) [![stability-experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](https://github.com/emersion/stability-badges#experimental)\n\nA small Go library for parsing Discord markdown-like messages to an AST.\n\nThe goal is to copy the Discord apps behavior as precisely as possible. This is not a general purpose Markdown parser.\n\n## Usage\n\nThe API is well-documented in its [![GoDoc](https://godoc.org/github.com/delthas/discord-formatting?status.svg)](https://godoc.org/github.com/delthas/discord-formatting)\n\n### Example\n\n```go\npackage main\nimport \"github.com/delthas/discord-formatting\"\n\nfunc main() {\n    parser := formatting.NewParser(nil)\n    ast := parser.Parse(\"*hi* @everyone \u003c:smile:12345\u003e __what__ **is** `up`?\")\n    formatting.Walk(ast, func(n formatting.Node, entering bool) {\n        switch nn := n.(type) {\n        case *formatting.TextNode:\n            if entering {\n                fmt.Print(nn.Content)\n            }\n        }\n    })\n    fmt.Println(formatting.Debug(ast))\n}\n```\n\n## Status\n\nUsed daily in a small-scale deployment.\n\nThe API could be slightly changed in backwards-incompatible ways for now.\n\n- [X] Nearly all the formatting\n- [ ] Replacing Unicode named emoji with their actual emoji codepoints\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelthas%2Fdiscord-formatting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelthas%2Fdiscord-formatting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelthas%2Fdiscord-formatting/lists"}