{"id":13392754,"url":"https://github.com/ikatyang/tree-sitter-markdown","last_synced_at":"2025-04-05T18:08:40.776Z","repository":{"id":38330663,"uuid":"211814573","full_name":"ikatyang/tree-sitter-markdown","owner":"ikatyang","description":"Markdown grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2023-07-27T21:35:08.000Z","size":1582,"stargazers_count":183,"open_issues_count":32,"forks_count":29,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-29T22:08:47.196Z","etag":null,"topics":["grammar","markdown","tree-sitter"],"latest_commit_sha":null,"homepage":"https://ikatyang.github.io/tree-sitter-markdown","language":"C++","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/ikatyang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-09-30T08:38:25.000Z","updated_at":"2024-10-18T23:59:09.000Z","dependencies_parsed_at":"2024-05-30T05:10:06.227Z","dependency_job_id":"f10534ba-822f-46dc-aae6-1e9076da9f06","html_url":"https://github.com/ikatyang/tree-sitter-markdown","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":0.0980392156862745,"last_synced_commit":"8b8b77af0493e26d378135a3e7f5ae25b555b375"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikatyang","download_url":"https://codeload.github.com/ikatyang/tree-sitter-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378149,"owners_count":20929297,"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":["grammar","markdown","tree-sitter"],"created_at":"2024-07-30T17:00:36.643Z","updated_at":"2025-04-05T18:08:40.745Z","avatar_url":"https://github.com/ikatyang.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# tree-sitter-markdown\n\n[![npm](https://img.shields.io/npm/v/tree-sitter-markdown.svg)](https://www.npmjs.com/package/tree-sitter-markdown)\n[![crates](https://img.shields.io/crates/v/tree-sitter-markdown.svg)](https://crates.io/crates/tree-sitter-markdown)\n[![build](https://img.shields.io/travis/com/ikatyang/tree-sitter-markdown/master.svg)](https://travis-ci.com/ikatyang/tree-sitter-markdown/builds)\n\nMarkdown ([CommonMark Spec v0.29-gfm](https://github.github.com/gfm/)) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter)\n\n_Note: This grammar is based on the assumption that **[link label matchings](https://github.github.com/gfm/#matches) will never fail** since reference links can come before their reference definitions, which causes it hard to do incremental parsing without this assumption._\n\n[Changelog](https://github.com/ikatyang/tree-sitter-markdown/blob/master/CHANGELOG.md)\n\n## Install\n\n```sh\nnpm install tree-sitter-markdown tree-sitter\n```\n\n## Usage\n\n```js\nconst Parser = require(\"tree-sitter\");\nconst Markdown = require(\"tree-sitter-markdown\");\n\nconst parser = new Parser();\nparser.setLanguage(Markdown);\n\nconst sourceCode = `\n# foo\n-     bar\n  baz\n`;\n\nconst tree = parser.parse(sourceCode);\nconsole.log(tree.rootNode.toString());\n// (document\n//   (atx_heading\n//     (atx_heading_marker)\n//     (heading_content\n//       (text)))\n//   (tight_list\n//     (list_item\n//       (list_marker)\n//       (indented_code_block\n//         (text))\n//       (paragraph\n//         (text)))))\n```\n\n## License\n\nMIT © [Ika](https://github.com/ikatyang)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikatyang%2Ftree-sitter-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikatyang%2Ftree-sitter-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikatyang%2Ftree-sitter-markdown/lists"}