You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
653 B
29 lines
653 B
1 year ago
|
0、官网
|
||
|
https://markmap.js.org/repl
|
||
|
|
||
|
1、安装Node.js
|
||
|
https://nodejs.org/en/download
|
||
|
(1) windows 直接下载最新版本安装即可
|
||
|
|
||
|
(2) linux下
|
||
|
|
||
|
# 安装
|
||
|
wget https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.xz
|
||
|
tar xvf node-v20.11.1-linux-x64.tar.xz
|
||
|
ln -s /root/node-v20.11.1-linux-x64/bin/node /usr/local/bin/node
|
||
|
ln -s /root/node-v20.11.1-linux-x64/bin/npm /usr/local/bin/npm
|
||
|
|
||
|
node -v
|
||
|
npm -v
|
||
|
|
||
|
2、安装markmap
|
||
|
npm i markmap-common -g
|
||
|
npm i markmap-lib -g
|
||
|
npm i markmap-view -g
|
||
|
npm install markmap-cli -g
|
||
|
|
||
|
3、检查是不是安装成功
|
||
|
markmap -V
|
||
|
|
||
|
4、转换
|
||
|
markmap example.md -o out.html --no-open
|