{"id":19468348,"url":"https://github.com/neroblackstone/markdown-it-mindmap","last_synced_at":"2025-02-25T14:25:15.102Z","repository":{"id":62422332,"uuid":"418022329","full_name":"NeroBlackstone/markdown-it-mindmap","owner":"NeroBlackstone","description":"A markdown-it plugin for markmap.","archived":false,"fork":false,"pushed_at":"2021-10-17T06:07:32.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T22:46:47.467Z","etag":null,"topics":["markdown-it","markdown-it-plugin"],"latest_commit_sha":null,"homepage":"https://deno.land/x/markdown_it_mindmap","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NeroBlackstone.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}},"created_at":"2021-10-17T04:48:14.000Z","updated_at":"2023-02-21T09:03:59.000Z","dependencies_parsed_at":"2022-11-01T17:33:21.211Z","dependency_job_id":null,"html_url":"https://github.com/NeroBlackstone/markdown-it-mindmap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeroBlackstone%2Fmarkdown-it-mindmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeroBlackstone%2Fmarkdown-it-mindmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeroBlackstone%2Fmarkdown-it-mindmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeroBlackstone%2Fmarkdown-it-mindmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NeroBlackstone","download_url":"https://codeload.github.com/NeroBlackstone/markdown-it-mindmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240682220,"owners_count":19840464,"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":["markdown-it","markdown-it-plugin"],"created_at":"2024-11-10T18:40:48.876Z","updated_at":"2025-02-25T14:25:15.051Z","avatar_url":"https://github.com/NeroBlackstone.png","language":"JavaScript","readme":"# markdown-it-mindmap\n\nA [markdown-it](https://github.com/markdown-it/markdown-it) plugin add latest [markmap](https://markmap.js.org/) support.\n\n## Usage\n\n### Deno\n\n\u003e This package has only been tested on Deno. But it should also work with node.js.\n\nImport the module from [deno.land/x](https://deno.land/x/markdown_it_mindmap@0.1.1):\n\n``` js\nimport markmap from \"https://deno.land/x/markdown_it_mindmap@0.1.0/index.js\"\n\nconst mdi = markdownIt();\nmdi.use(markmap);\n\nlet mindmapContent = `\n\\`\\`\\`mindmap\n## Links\n- \u003chttps://markmap.js.org/\u003e\n- [GitHub](https://github.com/gera2ld/markmap)\n## Related\n- [coc-markmap](https://github.com/gera2ld/coc-markmap)\n- [gatsby-remark-markmap](https://github.com/gera2ld/gatsby-remark-markmap)\n## Features\n- links\n- **inline** ~~text~~ *styles*\n- multiline\n  text\n- `inline code`\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\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\"\u003e\n    import { Markmap, } from 'https://jspm.dev/markmap-view';\n    const mindmaps = document.querySelectorAll('.markmap-svg');\n    for(const mindmap of mindmaps) {\n        Markmap.create(mindmap,null,JSON.parse(mindmap.getAttribute('data-json')));\n    }\n\u003c/script\u003e\n```\n\n## Output\n\n![output](https://res.cloudinary.com/neroblackstone/image/upload/v1634449419/markdown-it-mindmap_hpsv9q.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneroblackstone%2Fmarkdown-it-mindmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneroblackstone%2Fmarkdown-it-mindmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneroblackstone%2Fmarkdown-it-mindmap/lists"}