vscode使用问题调整记录

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() + ".";
  }

红色的忽略
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值