1. Typora–>偏好设置–>外观–>主题,打开主题文件夹,新建 base.user.css 文件,内容如下:
.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(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) " "
}/** initialize css counter */
#write {counter-reset: h1
}
h1 {counter-reset: h2
}
h2 {counter-reset: h3
}
h3 {counter-reset: h4
}
h4 {counter-reset: h5
}
h5 {counter-reset: h6
}
/** put counter result into headings */
#write h1:before {counter-increment: h1;
content: counter(h1) " "
}#write h2:before {counter-increment: h2;
content: counter(h1) "." counter(h2) " "
}
#write h3:before,
h3.md-focus.md-heading:before /** override the default style for focused headings */ {counter-increment: h3;
content: counter(h1) "." counter(h2) "." counter(h3) " "
}
#write h4:before,
h4.md-focus.md-heading:before {counter-increment: h4;
content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) " "
}
#write h5:before,
h5.md-focus.md-heading:before {counter-increment: h5;
content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) " "
}
#write h6:before,
h6.md-focus.md-heading:before {counter-increment: h6;
content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) " "
}
/** override the default style for focused headings */
#write>h3.md-focus:before,
#write>h4.md-focus:before,
#write>h5.md-focus:before,
#write>h6.md-focus:before,
h3.md-focus:before,
h4.md-focus:before,
h5.md-focus:before,
h6.md-focus:before {color: inherit;
border: inherit;
border-radius: inherit;
position: inherit;
left:initial;
float: none;
top:initial;
font-size: inherit;
padding-left: inherit;
padding-right: inherit;
vertical-align: inherit;
font-weight: inherit;
line-height: inherit;
}
  1. 重启 Typora

Typora标题增加序号相关推荐

  1. C# WinForm DataGridView 给标题列增加序号及格式化某个字段

    DataGridView 给标题列增加序号 private void dataGridView1_DataBindingComplete(object sender, DataGridViewBind ...

  2. [vscode] markdown_index----可以为你的markdown标题添加序号的插件

    markdown_index 在使用 markdown 进行写作的过程中,有时文章里子标题的级别较深,会导致在部分网站上渲染出来的字体太小,不同级别的标题之间的差别也很难区分,造成不舒服的阅读体验. ...

  3. layui数据表格增加序号列(第二页从1开始 or 接上一页序号开始)

    layui数据表格增加序号列: 一.分页模式下第二页从1开始 1.在table.render()方法中,加 {title: '序号', align: "center",temple ...

  4. 写入文件python并用序号_Python和excel表合成示例:向表中添加序列号,向表的现有内容添加索引,与,Excel,表格,综合,实例,给,增加,序号,对,已有...

    Python 与 Excel 表格综合实例(一):给表格增加序号,根据表格已有内容增加索引 前言: 前面我们花了6篇博客,把Python的xlwt与xlrd两个第三方模块对Excel表格的基础操作讲完 ...

  5. excel自动增加序号

    首先选中要增加序号的单元格,并且在 首单元格添加起始值,然后选择菜单上的"编辑"|"填充"|"序列" ,确定后完成.

  6. [vscode] markdown_index 可以为你的markdown标题添加序号的插件

    markdown_index是一个可以为你的markdown标题添加序号的插件. 假设原文如下所示: # a foolbar## a-b foolbar## a-c foolbar foolbar## ...

  7. html中怎么给表格增加序号,如何给word表格中添加编号

    在Word中制作表格时都希望在表格的第一列增加一个序号,其作用可以标识行或统计行数.例如从1开始,一直到80.100甚至更多.那么怎么添加呢?采用手工进行编辑还是其他的?手工编辑显然是一件不可能的事, ...

  8. Python 与 Excel 表格综合实例:给表格增加序号,对表格已有内容增加索引

    Python 与 Excel 表格综合实例(一):给表格增加序号,根据表格已有内容增加索引 前言: 需求一:增加序列号 需求二:按已有内容新增列 结尾: [Python与Office]专栏 前言: 前 ...

  9. mysql轻松实现排序后增加序号列

    前言:在日常开发中,我们会发现表中的自增字段不能满足我们排序后对排序号的要求,或者表中没有自增字段.这时候就要手动增加序号列,实现SQL如下: select @rownum:=@rownum+1,nu ...

  10. 从0到1写一款自动给Markdown标题添加序号的Jetbrains插件

    1. markdown-index 最近做了一个Jetbrains的插件,叫markdown-index,它的作用是为Markdown文档的标题自动添加序号,效果如下: 目前已经可以在Jetbrain ...

最新文章

  1. jQuery-1.9.1源码分析系列(四) 缓存系统
  2. 用拓扑排序检测有向图中是否有环
  3. C语言数据类型大学霸IT达人
  4. (转)select、poll、epoll之间的区别
  5. linuxpython重定向_linux命令重定向、、 1、 2、 1、 2、
  6. python多线程模块_python 多线程模块参考
  7. 构建高性能.NET应用之配置高可用IIS服务器-第二篇 IIS请求处理模型
  8. OpenDrive ARC绘制秘籍
  9. 安卓案例:View动画 - 弹球碰壁
  10. Linux 超级漂亮的 Shell
  11. 机器学习第六回——无监督学习
  12. servletconfigservletcontext
  13. k3刷机 重置_斐讯K3刷机教程:一直重启、忘了密码怎么办?手机刷机包下载
  14. java培训老师面试题_千锋Java培训老师分享Java实习生面试题
  15. 计算机老是卡顿怎么解决,电脑反应太慢怎么处理_电脑卡顿什么原因-win7之家
  16. python爬虫之爬取网页基础知识及环境配置概括
  17. 洛谷 CF7E Defining Macros 题解
  18. [渝粤教育] 西南科技大学 建筑工程定额与预算 在线考试复习资料2021版(2)
  19. 全排列并清洗求解幸运的袋子问题 C++
  20. TortoiseSVN上传文件显示被锁定

热门文章

  1. 自学自用 = B站(操作系统_清华大学(向勇、陈渝)) 未完待续。。(转载)
  2. 家居物联网(IoT)接入控制与认证的再思考
  3. 从入门到放弃的华为手机忘记密码后的数据自救之旅
  4. Clipboard.js实现复制文本到剪贴板功能
  5. vue 代码格式化(VS code)
  6. 作为空降高管,应该要做好哪些准备?
  7. Bytom BIP-32协议和BIP-44协议
  8. 蓝桥杯练习题之圆的面积
  9. MySQL系列:表空间加密
  10. You have to remove (or rename) that container to be able to reuse that name.