typora中使用base64那些事

在typora中base64的语法

笔记内容
![image][link1]
笔记内容

[link1]:xxx

或者

![image](base64xxx)

然后你会发现base64显示的太长,去到偏好设置-外观-打开主题文件夹,中找到你使用的样式css,编辑它,在最后一行加入

span.md-def-content.md-def-url.md-auto-disp {
    /* max-width: 100%; */
    display: block;
    overflow: hidden !important;
    white-space: nowrap !important;
}

span.md-image-src-span.ty-focusable {
    /* display: none; */
    max-width: calc(100% - 20px);
    display: inline-block;
    overflow: hidden !important;
    white-space: nowrap !important;
}

提示:最好吧图片压缩后,转base64在放进去,可以减少空间

posted @ 2022-11-21 21:15  Tank-Li  阅读(420)  评论(0编辑  收藏  举报