v1.4.2
PDF annotate tool
- support annotate
http(s)
, you should ensure obsidian can access to PDF file , for example
---
annotate-type: pdf
annotate-target: https://mozilla.github.io/pdf.js/legacy/web/compressed.tracemonkey-pldi-09.pdf
---
- fix #253 , when export highlight of pdf , only keep color value , you can setup export pdf format in setting tab to this , then it can be use with admonition
Page:{{page}}
<span style="color:rgb({{color}})">■</span>:{{highlightText}}
Comment:{{comment}}
[📌]({{link}})
^{{id}}
mindmap feature
- support setup layout in yaml of
basic
mode , for example
---
mindmap-plugin: basic
mindmap-layout: fish
mindmap-layout-direct: right
---
notice : **
keep setup value mindmap-layout
and mindmap-layout-direct
at the same time**
now support layout and direct
layout | direct |
---|---|
mindmap | right/left/mindmap |
fish | right/left |
- support create hand drawn mode from
basic
mode , and support export to image but not support edit mode in hand drawn mode , this is a testing feature and this feature will apply torich
mode in future
the default hand draw font is this in style.css
, load font need network
@font-face{
font-family: 'myFont';
src:url('http://cdn.ghost-jack.top/chinese.ttf');
}
.mm-handdraw-theme{
font-family:'myFont';
}
you can change font to your own font in style.css
, for example :
(use app://local/absolute font path
to load your local font , not need network)
@font-face{
font-family: 'testFont';
src:url('app://local/D:font/test.ttf');
}
.mm-handdraw-theme{
font-family:'testFont';
}
PDF 标注工具
- 支持注释网络上的 pdf ,但要需要保证可以访问,比如
---
annotate-type: pdf
annotate-target: https://mozilla.github.io/pdf.js/legacy/web/compressed.tracemonkey-pldi-09.pdf
---
- 修复 #253 , 当导出pdf注释 , 只保留颜色数值 , 可以在设置页面修改导出格式如下 , 可以搭配自定义 admonition 使用
Page:{{page}}
<span style="color:rgb({{color}})">■</span>:{{highlightText}}
Comment:{{comment}}
[📌]({{link}})
^{{id}}
思维导图功能
- 支持修改basic模式的布局方式 ,如下所示
---
mindmap-plugin: basic
mindmap-layout: fish
mindmap-layout-direct: right
---
注意: **要同时设置 mindmap-layout
和mindmap-layout-direct
**
目前支持的布局和方向如下表所示
layout | direct |
---|---|
mindmap | right/left/mindmap |
fish | right/left |
- basic模式支持生成手绘模式的思维导图 ,支持导出为图片但目前不支持在手绘模式下修改思维导图 , 这是一个测试功能,后期将会应用于 rich 模式的思维导图
style.css
中默认的手绘字体如下, 使用时需要联网加载字体
@font-face{
font-family: 'myFont';
src:url('http://cdn.ghost-jack.top/chinese.ttf');
}
.mm-handdraw-theme{
font-family:'myFont';
}
你也可以修改为你自己的字体,比如如下这种方式,可以加载你本地的字体
(app://local/字体绝对路径
)
@font-face{
font-family: 'testFont';
src:url('app://local/D:font/test.ttf');
}
.mm-handdraw-theme{
font-family:'testFont';
}