首页 > 其他分享 >typora 标题计数

typora 标题计数

时间:2023-01-17 15:00:53浏览次数:40  
标签:md typora h3 counter focus 标题 write 计数 before

/** 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;
}

 

标签:md,typora,h3,counter,focus,标题,write,计数,before
From: https://www.cnblogs.com/shirlly123/p/17057819.html

相关文章

  • 338. 比特位计数
    问题描述https://leetcode.cn/problems/counting-bits/description/解题思路这个题目,看上去是一个动态规划问题。用dp[i]代表i中1的个数。但我没想明白怎么写状态转移......
  • Typora软件与Markdown语法
    Typora软件与Markdown语法Typora软件的安装​ Typora是什么软件:​ Typora是一款很火的轻量级支持Markdown语法的文本编辑器​ Typora下载:​ mac:https://mac.qdr......
  • HTML之元素、属性、标题、段落【笔记小结】
    (HTML之元素、属性、标题、段落【笔记小结】)1元素1.1语法示例:开始标签元素内容结束标签<p>段落</p><a>链接</a><br>换行语法:#以开......
  • Linux下Typora+Gitee+picgo图床环境搭建
    前言在Linux下写Markdown笔记的时候,像上传到github上,结果发现笔记里的图片都成了这个样子:![Screenshotfrom2023-01-1503-07-24](https://gitee.com/Marches7/piture-b......
  • 【补档 11th Jan】 2283 判断一个数的数字计数是否等于数位的值(每日一题)
    【补档11thJan】2283判断一个数的数字计数是否等于数位的值(每日一题)​ 给你一个下标从0开始长度为n的字符串num,它只包含数字。如果对于每个0<=i<n的下......
  • 计数选讲
    1.CF1728G[*2700]看到这个一次合法的照明定义为所有的点都至少被一盏灯照亮,其实我们就应该想到容斥了。\(m=16\),那么铁定让我们关于点进行容斥了。容斥有正反两面:强制......
  • 计数 dp 目录
    数え上げテクニック集笔记。引言OI中有三大专题:dp,数据结构,图论。而在这三大专题中,因为dp是从小问题的解法上升至大问题的解法的关键;所以dp,在这三大专题中,优先性是......
  • word(在写各种论文时)设置各级标题自动编号
    前提是你已经弄好了各级标题的样式,现在开始设置自动编号1.调用多级列表:依次点击【开始】---【多级列表】--【定义新的多级列表】---【更多】2.设置多级列表,以二级标题......
  • <Verilog学习>Verilog设计参数化的译码器与编码器,以及设计4位格雷码计数器
    使用Quartus+modelsim完成设计目录1.参数化的译码器分析代码实现Testbench结果2.参数化的编码器分析代码Testbench结果3.4位格雷码计数器分析代码Testbench结果1.参......
  • 将Typora添加到右键菜单
    1、 打开注册表:win+r,输入regedit   2、定位到  HKEY_CLASSES_ROOT\Directory\Background\shell   3、新建项Typora更改默认数据为Typora,再新建一个新建字......