From caccd837ecb53461eb5b30b54e8c578a5a258213 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Mon, 6 Jan 2020 19:49:51 +0800 Subject: [PATCH] fix: resolve font size setting problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复字体设置问题 --- README.md | 3 ++- assets/scripts/editor.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6da2fd9..f1bd3b3 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章 - [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow) - [全球最大的成人网站 Pornhub 2019 年度报告新鲜出炉!](https://mp.weixin.qq.com/s/LY5kOzof1h3I0bw7tCkV1Q) - [刷掉 90 % 候选人的海量数据面试题(附题解+方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw) +- [GitHub 标星 11.5k 的一款开源工具,助你轻松查看 Git 历史](https://mp.weixin.qq.com/s/PK-ikENqF13Lmqy2pcMhYQ) 注:如果你使用了本 Markdown 编辑器进行文章排版,并且希望将你的文章加入示例列表,欢迎随时提交 PR。 @@ -75,4 +76,4 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章 ## 项目许可证 -[本项目没有任何限制,Just Do What The F*ck You Want。](LICENSE) +[本项目没有任何限制,Just Do What The F*ck You Want。](LICENSE) \ No newline at end of file diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js index f91ffaf..f5aaee6 100644 --- a/assets/scripts/editor.js +++ b/assets/scripts/editor.js @@ -144,6 +144,7 @@ let app = new Vue({ size: size }); let theme = setFontSize(size.replace('px', '')); + theme = setColorWithCustomTemplate(theme, this.currentColor); this.wxRenderer.setOptions({ theme: theme });