代码拉取完成,页面将自动刷新
#write {
counter-reset: write-h2 write-h3 write-h4 !important;
/*修复缺失上级标题时无法递增*/
}
/* 编辑器内标题-重置 */
#write h1 {
counter-reset: write-h2;
}
#write h2 {
counter-reset: write-h3;
}
#write h3 {
counter-reset: write-h4;
}
/* 编辑器内标题-显示 */
#write h2:before {
counter-increment: write-h2;
content: counter(write-h2) " "
}
#write h3:before {
counter-increment: write-h3;
content: counter(write-h2) "." counter(write-h3) " "
}
#write h4:before {
counter-increment: write-h4;
content: counter(write-h2) "." counter(write-h3) "." counter(write-h4) " "
}
.md-toc-content .md-toc-h1 {
counter-reset: toc-h2;
}
.md-toc-content .md-toc-h2 {
counter-reset: toc-h3;
}
.md-toc-content .md-toc-h3 {
counter-reset: toc-h4;
}
.md-toc-content .md-toc-h4 {
display: none;
}
.md-toc-content .md-toc-h5 {
display: none;
}
/* 目录标题-显示*/
.md-toc-content .md-toc-h2:before {
counter-increment: toc-h2;
content: counter(toc-h2) " ";
}
.md-toc-content .md-toc-h3:before {
counter-increment: toc-h3;
content: counter(toc-h2) "." counter(toc-h3) " "
}
.md-toc-content .md-toc-h4:before {
counter-increment: toc-h4;
content: counter(toc-h2) "." counter(toc-h3) "." counter(toc-h4) " "
}
/* 大纲标题 -重置*/
.sidebar-content {
counter-reset: outline-h2 outline-h3 outline-h4;
/*修复缺失上级标题时无法递增*/
}
.sidebar-content .outline-h1 {
counter-reset: outline-h2;
}
.sidebar-content .outline-h2 {
counter-reset: outline-h3;
}
.sidebar-content .outline-h3 {
counter-reset: outline-h4;
}
/* 大纲标题 -显示*/
.sidebar-content .outline-h2 .outline-label:before {
counter-increment: outline-h2;
content: counter(outline-h2) " ";
}
.sidebar-content .outline-h3 .outline-label:before {
counter-increment: outline-h3;
content: counter(outline-h2) "." counter(outline-h3) " "
}
.sidebar-content .outline-h4 .outline-label:before {
counter-increment: outline-h4;
content: counter(outline-h2) "." counter(outline-h3) "." counter(outline-h4) " "
}
/* 侧边栏自动编号 */
.outline-content {
counter-reset: outline-h2;
}
.outline-h1 {
counter-reset: outline-h2;
}
.outline-h2 {
counter-reset: outline-h3;
}
.outline-h3 {
counter-reset: outline-h4;
}
.outline-h4 {
counter-reset: outline-h5;
}
.outline-h5 {
counter-reset: outline-h6;
}
.outline-content .outline-h2 .outline-label:before {
counter-increment: outline-h2;
content: counter(outline-h2) ". ";
}
.outline-content .outline-h3 .outline-label:before {
counter-increment: outline-h3;
content: counter(outline-h2) "." counter(outline-h3) ". ";
}
.outline-content .outline-h4 .outline-label:before {
counter-increment: outline-h4;
content: counter(outline-h2) "." counter(outline-h3) "." counter(outline-h4) ". ";
}
.outline-content .outline-h5 .outline-label:before {
counter-increment: outline-h5;
content: counter(outline-h2) "." counter(outline-h3) "." counter(outline-h4) "." counter(outline-h5) ". ";
}
.outline-content .outline-h6 .outline-label:before {
counter-increment: outline-h6;
content: counter(outline-h2) "." counter(outline-h3) "." counter(outline-h4) "." counter(outline-h5) "." counter(outline-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;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。