{"id":17823890,"url":"https://github.com/deiv/markdown-it-markmap","last_synced_at":"2025-07-23T19:05:45.759Z","repository":{"id":143889182,"uuid":"262633964","full_name":"deiv/markdown-it-markmap","owner":"deiv","description":"markdown-it-markmap","archived":false,"fork":false,"pushed_at":"2020-05-09T22:44:13.000Z","size":5,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T09:06:58.294Z","etag":null,"topics":["markdown","markdown-it","markdown-it-plugin","markmap","mindmap"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/deiv.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":"2020-05-09T18:28:46.000Z","updated_at":"2025-01-25T07:35:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c4ed9d6-be7b-4caa-8f14-411a571de883","html_url":"https://github.com/deiv/markdown-it-markmap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deiv/markdown-it-markmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deiv%2Fmarkdown-it-markmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deiv%2Fmarkdown-it-markmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deiv%2Fmarkdown-it-markmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deiv%2Fmarkdown-it-markmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deiv","download_url":"https://codeload.github.com/deiv/markdown-it-markmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deiv%2Fmarkdown-it-markmap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266481740,"owners_count":23935940,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["markdown","markdown-it","markdown-it-plugin","markmap","mindmap"],"created_at":"2024-10-27T17:59:46.051Z","updated_at":"2025-07-23T19:05:45.690Z","avatar_url":"https://github.com/deiv.png","language":"JavaScript","readme":"# markdown-it-markmap\n\n\u003e Markmap plugin for markdown-it markdown parser.\n\nWith this plugin you can create mindmap using [markmap](https://markmap.js.org/).\n\nIt adds a named fence _mindmap_ to the markdown parser.\n\n## Installation\n\n```bash\n$ yarn add https://github.com/deiv/markdown-it-markmap.git\n```\n\n## Usage\n\nConfigure the plugin in markdown-it:\n\n```js\nvar markdownIt = require('markdown-it');\nvar markdownItMarkmap = require('../build/index');\n\nconst mdi = markdownIt();\nmdi.use(markdownItMarkmap);\n\nlet mindmapContent = `\n\\`\\`\\`mindmap\n# root\n## child1\n  - child3\n## child2\n  - child3\n\\`\\`\\``;\n\n\nconsole.log(mdi.render(mindmapContent));\n```\n\nAdd needed libraries in browser:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/d3@5\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/markmap-lib@0.7.4/dist/browser/view.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    const mindmaps = document.querySelectorAll('.markmap-svg');\n\n    for(const mindmap of mindmaps) {\n        markmap.markmap(mindmap, JSON.parse(mindmap.innerHTML));\n    }\n\u003c/script\u003e\n```\n\n## Example\n\nMarkdown example:\n```markdown\n```mindmap\n# root\n## child1\n  - child3\n## child2\n  - child3\n```\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeiv%2Fmarkdown-it-markmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeiv%2Fmarkdown-it-markmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeiv%2Fmarkdown-it-markmap/lists"}