{"id":25569780,"url":"https://github.com/markmap-universe/hexo-markmap","last_synced_at":"2025-03-17T16:10:16.019Z","repository":{"id":38007274,"uuid":"341094761","full_name":"markmap-universe/hexo-markmap","owner":"markmap-universe","description":"Insert mindmap in your hexo blog by markmap. 在 hexo 博客中插入思维导图。","archived":false,"fork":false,"pushed_at":"2025-02-09T17:47:17.000Z","size":3406,"stargazers_count":59,"open_issues_count":9,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T10:43:27.755Z","etag":null,"topics":["hexo","markmap","markmap-lib","mindmap"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/hexo-markmap","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/markmap-universe.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":"2021-02-22T05:55:39.000Z","updated_at":"2025-02-09T10:34:34.000Z","dependencies_parsed_at":"2023-10-11T02:35:55.313Z","dependency_job_id":"dc6ab2a8-78e3-43ab-a994-69c11fd7cb6d","html_url":"https://github.com/markmap-universe/hexo-markmap","commit_stats":{"total_commits":127,"total_committers":7,"mean_commits":"18.142857142857142","dds":"0.40944881889763785","last_synced_commit":"6b7d9486c4f3bda28352533aafaec82ac51a5a2d"},"previous_names":["markmap-universe/hexo-markmap","maxchang3/hexo-markmap"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap-universe%2Fhexo-markmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap-universe%2Fhexo-markmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap-universe%2Fhexo-markmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap-universe%2Fhexo-markmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmap-universe","download_url":"https://codeload.github.com/markmap-universe/hexo-markmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066180,"owners_count":20392406,"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":["hexo","markmap","markmap-lib","mindmap"],"created_at":"2025-02-21T00:08:47.449Z","updated_at":"2025-03-17T16:10:15.991Z","avatar_url":"https://github.com/markmap-universe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"| [English](https://github.com/MaxChang3/hexo-markmap/blob/main/README.md)\r\n| [简体中文](https://github.com/MaxChang3/hexo-markmap/blob/main/README_HANS.md)\r\n| [繁体中文](https://github.com/MaxChang3/hexo-markmap/blob/main/README_HANT.md)\r\n|\r\n\r\nDepend on [markmap](https://github.com/gera2ld/markmap). Inspired by [hexo-simple-mindmap](https://github.com/HunterXuan/hexo-simple-mindmap).\r\n\r\n# hexo-markmap \u003ca href=\"https://npm.im/hexo-markmap\"\u003e\u003cimg src=\"https://badgen.net/npm/v/hexo-markmap\"\u003e\u003c/a\u003e \u003ca href=\"https://npm.im/hexo-markmap\"\u003e\u003cimg src=\"https://badgen.net/npm/dm/hexo-markmap\"\u003e\u003c/a\u003e\r\n\r\nInsert mindmap in your hexo blog by markmap.\r\n\r\nFrom now all the syntax like HTML codes, links, inline code, markdown KaTeX, and Codeblocks are possible to use.\r\n\r\n\u003e Codeblocks still have some problems which may throw some errors.\r\nMore preview in [my blog](https://zhangmaimai.com/2021/02/23/hexo-mindmap-plugin/).\r\n\r\n# Install\r\n\r\n```\r\npnpm add hexo-markmap -D\r\n```\r\n\r\n```\r\nnpm install hexo-markmap --save-dev\r\n```\r\n\r\n\r\n```\r\nyarn add hexo-markmap --dev\r\n```\r\n\r\n# Usage\r\n\r\n```\r\n{% markmap height [depth] %}\r\n- Markdown\r\n- Syntax\r\n{% endmarkmap %}\r\n```\r\n\r\n## Options\r\n\r\n- `height`: mindmap canvas height\r\n- `depth`: optional, when specified, automatically fold nodes with level greater than `depth`\r\n\r\n## Example \r\n\r\n````\r\n{% markmap 400px %}\r\n- links\r\n- **inline** ~~text~~ *styles*\r\n- multiline\r\n  text\r\n- `inline code`\r\n- ```js\r\n  console.log('code block');\r\n  console.log('code block');\r\n  ```\r\n- KaTeX - $x = {-b \\pm \\sqrt{b^2-4ac} \\over 2a}$\r\n{% endmarkmap %}\r\n````\r\n\r\n## Config\r\n\r\nAdd your options to config.yml.\r\n\r\nConvention over configuration, if you don’t need any of the following features, then you don’t need to add these configs.\r\n\r\nBy default, it works well. Each option has a default value.\r\n\r\n\r\n### pjax fixing\r\n\r\ndefault value `false`\r\n\r\n```yaml\r\nhexo_markmap:\r\n  pjax: true\r\n```\r\n\r\nIf your blog has pjax installed, please turn it on.\r\n\r\n### KaTeX\r\n\r\ndefault value `false`\r\n\r\n```yaml\r\nhexo_markmap:\r\n  katex: true\r\n```\r\n\r\nIf you need to use $K\\kern-.25em\\raise.45ex {\\scriptstyle{A}}\\kern-.15em\\TeX$, please turn it on to insert the CSS links. If your $K\\kern-.25em\\raise.45ex {\\scriptstyle{A}}\\kern-.15em\\TeX$ was already added in your blog by another way, then you needn't to do it.\r\n\r\n\u003e If your blog has MathJax installed, please turn it on.\r\n\r\n\r\n### Prism\r\n\r\ndefault value `false`\r\n\r\n```yaml\r\nhexo_markmap:\r\n  prism: true\r\n```\r\n\r\nIf you need to use code blocks, please turn it on to insert the CSS links. If prism.css has already been added to your blog by another way, then you don’t need to do it.\r\n\r\n### Custom CDN\r\n\r\n```yaml\r\nhexo_markmap:\r\n  userCDN:\r\n    d3_js: https://fastly.jsdelivr.net/npm/d3@6\r\n    markmap_view_js: https://fastly.jsdelivr.net/npm/markmap-view@0.2.7\r\n    katex_css: https://fastly.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css\r\n    prism_css: https://fastly.jsdelivr.net/npm/prismjs@1.25.0/themes/prism.css\r\n```\r\n\r\n### Lock view\r\n\r\ndefault value `false`\r\n\r\nDisable the zoom and pan of the view.\r\n\r\n```yaml\r\nhexo_markmap:\r\n  lockView: true\r\n```\r\n\r\n### Fix SVG attribute errors caused by unknown reasons\r\n\r\nDefault value `false`\r\n\r\nDue to unknown reasons, in some hexo themes (such as [hexo-theme-volantis](https://github.com/volantis-x/hexo-theme-volantis/)), during the process of loading the page, markmap will report an error `Error: \u003cg\u003e attribute transform: Expected number, \"translate(NaN,NaN) scale(N…\".`.\r\n\r\nThis is because the zoom event of d3.js returns x, y, k attributes with `NaN` values. As this is an upstream issue and the reason is currently unknown, this problem is fixed by a rather dirty patch method. This problem will not affect normal use whether it is turned on or off.\r\n\r\n### default option\r\n```yaml\r\nhexo_markmap:\r\n  pjax: false\r\n  katex: false\r\n  prism: false\r\n  userCDN:\r\n    d3_js: https://fastly.jsdelivr.net/npm/d3@6\r\n    markmap_view_js: https://fastly.jsdelivr.net/npm/markmap-view@0.2.7\r\n    katex_css: https://fastly.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css\r\n    prism_css: https://fastly.jsdelivr.net/npm/prismjs@1.25.0/themes/prism.css\r\n  lockView: false\r\n  fixSVGAttrNaN: false\r\n```\r\n\r\n# Contributors\r\n\r\nThanks to all contributors🥰!\r\n\r\n\u003ca href=\"https://github.com/maxchang3/hexo-markmap/graphs/contributors\"\u003e\r\n  \u003cimg src=\"https://contrib.rocks/image?repo=maxchang3/hexo-markmap\" /\u003e\r\n\u003c/a\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmap-universe%2Fhexo-markmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmap-universe%2Fhexo-markmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmap-universe%2Fhexo-markmap/lists"}