{"id":13838405,"url":"https://github.com/markdown-it-rust/markdown-it","last_synced_at":"2025-04-06T15:13:16.953Z","repository":{"id":41184923,"uuid":"494802294","full_name":"markdown-it-rust/markdown-it","owner":"markdown-it-rust","description":"markdown-it js library rewritten in rust","archived":false,"fork":false,"pushed_at":"2024-07-07T17:51:21.000Z","size":812,"stargazers_count":90,"open_issues_count":23,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T13:08:58.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markdown-it-rust.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":"2022-05-21T14:12:44.000Z","updated_at":"2025-03-24T14:16:39.000Z","dependencies_parsed_at":"2024-01-15T19:38:57.713Z","dependency_job_id":"586c4248-1a93-4594-88aa-3805201db9f0","html_url":"https://github.com/markdown-it-rust/markdown-it","commit_stats":{"total_commits":165,"total_committers":5,"mean_commits":33.0,"dds":"0.19999999999999996","last_synced_commit":"537116980ae6414a5dfa945149ae3a13f27dd4ae"},"previous_names":["markdown-it-rust/markdown-it","rlidwka/markdown-it.rs"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it-rust%2Fmarkdown-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it-rust%2Fmarkdown-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it-rust%2Fmarkdown-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it-rust%2Fmarkdown-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markdown-it-rust","download_url":"https://codeload.github.com/markdown-it-rust/markdown-it/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500469,"owners_count":20948880,"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":[],"created_at":"2024-08-04T15:01:55.616Z","updated_at":"2025-04-06T15:13:16.930Z","avatar_url":"https://github.com/markdown-it-rust.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# markdown-it\n\n[\u003cimg alt=\"web demo\" src=\"https://img.shields.io/badge/demo-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=webpack\u0026logoColor=white\" height=\"20\"\u003e](https://markdown-it-rust.github.io/markdown-it/)\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/markdown-it-rust/markdown-it)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/badge/docs-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs\" height=\"20\"\u003e](https://docs.rs/markdown-it)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/markdown-it.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/markdown-it)\n[\u003cimg alt=\"coverage\" src=\"https://img.shields.io/codecov/c/github/markdown-it-rust/markdown-it?style=for-the-badge\" height=\"20\"\u003e](https://app.codecov.io/gh/markdown-it-rust/markdown-it)\n\nRust port of popular [markdown-it.js](https://github.com/markdown-it/markdown-it) library.\n\nTL;DR:\n - if you want to get result *fast*, use [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark)\n - if you want to render GFM exactly like github, use [comrak](https://github.com/kivikakk/comrak)\n - if you want to define your own syntax (like `@mentions`, `:emoji:`, custom html classes), use this library\n\nYou can check a [demo](https://markdown-it-rust.github.io/markdown-it/) in your browser *(it's Rust compiled into WASM)*.\n\n### Features\n\n - 100% CommonMark compatibility\n - AST\n - Source maps (full support, not just on block tags like cmark)\n - Ability to write your own syntax of arbitrary complexity\n   - to prove this point, CommonMark syntax itself is written as a plugin\n\n### Usage\n\n```rust\nlet parser = \u0026mut markdown_it::MarkdownIt::new();\nmarkdown_it::plugins::cmark::add(parser);\nmarkdown_it::plugins::extra::add(parser);\n\nlet ast  = parser.parse(\"Hello **world**!\");\nlet html = ast.render();\n\nprint!(\"{html}\");\n// prints \"\u003cp\u003eHello \u003cstrong\u003eworld\u003c/strong\u003e!\u003c/p\u003e\"\n```\n\nFor a guide on how to extend it, see `examples` folder.\n\n### Notes\n\n*This is an attempt at making a language-agnostic parser. You can probably parse AsciiDoc, reStructuredText or [any other](https://github.com/mundimark/awesome-markdown-alternatives) plain text format with this without too much effort. I\u0026nbsp;might eventually write these as proof-of-concept.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkdown-it-rust%2Fmarkdown-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkdown-it-rust%2Fmarkdown-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkdown-it-rust%2Fmarkdown-it/lists"}