Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
hexo-markmap
Advanced tools
Readme
Depend on markmap. Inspired by hexo-simple-mindmap.
Insert mindmap in your hexo blog by markmap.
From now all the syntax like HTML codes, links, inline code, markdown KaTeX, and Codeblocks are possible to use.
Codeblocks still have some problems which may throw some errors. More preview in my blog.
pnpm add hexo-markmap -D
npm install hexo-markmap --save-dev
yarn add hexo-markmap --dev
{% markmap height [depth] %}
- Markdown
- Syntax
{% endmarkmap %}
height
: mindmap canvas heightdepth
: optional, when specified, automatically fold nodes with level greater than depth
{% markmap 400px %}
- links
- **inline** ~~text~~ *styles*
- multiline
text
- `inline code`
- ```js
console.log('code block');
console.log('code block');
```
- KaTeX - $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$
{% endmarkmap %}
Add your options to config.yml.
Convention over configuration, if you don’t need any of the following features, then you don’t need to add these configs.
By default, it works well. Each option has a default value.
default value false
hexo_markmap:
pjax: true
If your blog has pjax installed, please turn it on.
default value false
hexo_markmap:
katex: true
If 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.
If your blog has MathJax installed, please turn it on.
default value false
hexo_markmap:
prism: true
If 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.
hexo_markmap:
userCDN:
d3_js: https://fastly.jsdelivr.net/npm/d3@6
markmap_view_js: https://fastly.jsdelivr.net/npm/markmap-view@0.2.7
katex_css: https://fastly.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css
prism_css: https://fastly.jsdelivr.net/npm/prismjs@1.25.0/themes/prism.css
default value false
Disable the zoom and pan of the view.
hexo_markmap:
lockView: true
Default value false
Due to unknown reasons, in some hexo themes (such as hexo-theme-volantis), during the process of loading the page, markmap will report an error Error: <g> attribute transform: Expected number, "translate(NaN,NaN) scale(N…".
.
This 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.
hexo_markmap:
pjax: false
katex: false
prism: false
userCDN:
d3_js: https://fastly.jsdelivr.net/npm/d3@6
markmap_view_js: https://fastly.jsdelivr.net/npm/markmap-view@0.2.7
katex_css: https://fastly.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css
prism_css: https://fastly.jsdelivr.net/npm/prismjs@1.25.0/themes/prism.css
lockView: false
fixSVGAttrNaN: false
Thanks to all contributors🥰!
FAQs
A hexo plugin insert mindmap in your hexo blog by markmap (new rebuild).
The npm package hexo-markmap receives a total of 71 weekly downloads. As such, hexo-markmap popularity was classified as not popular.
We found that hexo-markmap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.