Markdown工具之Typora设置篇

Typora介绍

​ Typora 是一款支持实时预览的 Markdown 文本编辑器。支持全平台,截至2021年 11月23日,Typora 正式发布 1.0 版本,进入了收费时代。1.0 版本是一次性付费而非订阅的,只要支付人民币 89 元,可以在 3 台设备里使用。

​ PS:没钱的伙计可以去找个beta版本。

设置-自定义尝试

层级目录增加序号和其他

先打开主题文件夹,设置自定义的偏好主题

  • 文件>偏好设置>外观>打开主题文件夹

  • 编辑base.user.css(如果没有就新建一个)文件\

  • 加入以下代码后重启typora即可

效果图如下

样式效果图

样式文件

/*标题自动添加序号*/
.sidebar-content {
   
    counter-reset: h1
}

.outline-h1 {
   
    counter-reset: h2
}

.outline-h2 {
   
    counter-reset: h3
}

.outline-h3 {
   
    counter-reset: h4
}

.outline-h4 {
   
    counter-reset: h5
}

.outline-h5 {
   
    counter-reset: h6
}

.outline-h1>.outline-item>.outline-label:before {
   
    counter-increment: h1;
    content: counter(h1) " "
}

.outline-h2>.outline-item>.outline-label:before {
   
    counter-increment: h2;
    content: counter(h1) "."counter(h2) " "
}

.outline-h3>.outline-item>.outline-label:before {
   
    counter-increment: h3;
    content: counter(h1) "."counter(h2) "."counter(h3) " "
}

.outline-h4>.outline-item>.outline-label:before {
   
    counter-increment: h4;
    content: counter(h1) "."counter(h2) "."counter(h3) "."counter(h4) " "
}

.outline-h5>.outline-item>.outline-label:before {
   
    counter-increment: h5;
    content: counter(h1) "."counter(h2) "."counter(h3) "."counter(h4) "."counter(h5) " "
}

.outline-h6>.outline-item>.outline-label:before {
   
    counter-increment: h6;
    content: counter
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值