1. preview导出html时,内容只在中间显示
修改 ~.mume\style.less 自定义样式文件
在最下方添加,注意在原来的大括号外面添加
html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview {
padding: 2em 2em;
}
2. 自带的标题样式觉得太重了,修改一下
/* Please visit the URL below for more information: */
/* https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
// modify your style here
// eg: background-color: blue;
h1 {
padding-bottom: .3em;
font-size: 1.3em;
line-height: 1;
font-weight: bold;
//border-bottom: 1px solid #eee;
}
h2 {
padding-bottom: .3em;
font-size: 1.1em;
line-height: 1;
font-weight: bold;
//border-bottom: 1px solid #eee;
}
h3 {
font-size: 1em;
line-height: 1;
font-weight: normal;
}
h4 {
font-size: 1em;
font-weight: normal;
}
h5 {
font-size: 1em;
font-weight: normal;
}
h6 {
font-size: 1em;
color: #777;
font-weight: normal;
}
}
html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview {
padding: 2em 2em;
}
3. 标题生成序号的时候如果从2级开始,会出现0.1
修改 AlanWalk.markdown-toc-1.5.6/out/src/extension.js
for (var i = this.options.DEPTH_FROM - 1; i < depth; i++) {
if(orderedListStr == "" && indicesOfDepth[i] == '0'){
continue;
}
orderedListStr += indicesOfDepth[i].toString() + ".";
}
红色的忽略