From 1dac7a2214c742cb6891981605f9f8c4c1c26dc5 Mon Sep 17 00:00:00 2001 From: JimQing Date: Sat, 4 Jul 2020 16:52:57 +0800 Subject: [PATCH 1/5] fix: bug fix --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 0e9876e..a7c5433 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -26,7 +26,7 @@ const state = { nightMode: false }; const mutations = { - setHtmL(state, data) { + setHtml(state, data) { state.html = data; }, setEditorValue(state, data) { From 34c4b936a562b3c67f9de52391964a0ecb87428a Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sat, 4 Jul 2020 17:54:48 +0800 Subject: [PATCH 2/5] fix: update copy method --- src/components/codeMirror/header.vue | 5 ++--- src/store/index.js | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/codeMirror/header.vue b/src/components/codeMirror/header.vue index 2652ea7..eaab384 100644 --- a/src/components/codeMirror/header.vue +++ b/src/components/codeMirror/header.vue @@ -177,8 +177,7 @@ export default { let clipboardDiv = document.getElementById('output'); solveWeChatImage(); fixCodeWhiteSpace(); - this.setHtml(solveHtml()); - + solveHtml(); clipboardDiv.focus(); window.getSelection().removeAllRanges(); let range = document.createRange(); @@ -253,7 +252,7 @@ export default { document.body.removeChild(downLink) }, ...mapMutations(['clearEditorToDefault','setCurrentColor', 'setCiteStatus', 'themeChanged', - 'setHtml', 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions']) + 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions']) }, mounted() { this.selectFont = this.currentFont; diff --git a/src/store/index.js b/src/store/index.js index 0e9876e..db8b943 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -26,9 +26,6 @@ const state = { nightMode: false }; const mutations = { - setHtmL(state, data) { - state.html = data; - }, setEditorValue(state, data) { state.editor.setValue(data) }, From af1c26a8ce4c451ee7a26f7f14a3799cc5d24b48 Mon Sep 17 00:00:00 2001 From: Yang Libin Date: Tue, 7 Jul 2020 22:58:13 +0800 Subject: [PATCH 3/5] docs: update README.md --- README.md | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index a9d7a4e..ba2a9e7 100644 --- a/README.md +++ b/README.md @@ -60,48 +60,54 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章 - - - - - - - +
+ -
+
Doocs开源社区
+ -
+
掘墓人的小铲子
+ -
+
全网重点
+ -
+
爱码士的内心独白
+ -
+
乐玩nodejs npm工具库
+ -
+
简静慢
+ -
+
0加1
+ +
+ 码云Gitee +
+
@@ -109,17 +115,18 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章 ## 示例文章 -- [不限速下载 bilibili 壁纸娘的 432 张壁纸](https://mp.weixin.qq.com/s/qefHCmToAdowBz2JwBn_ug) -- [全网首发!GPU 驱动自升级原理详解](https://mp.weixin.qq.com/s/7UG24ZugfI5ZnhUpo8vfvQ) -- [Quick Start - 天下武功,唯快不破!效率工具,老少皆宜](https://mp.weixin.qq.com/s/SFde8OsZ8FzNGMHwpmDtrg) -- [死磕JavaScript系列之原来你是对象(一)](https://mp.weixin.qq.com/s/oc5Z2t9ykbu_Dezjnw5mfQ) - [一文多发神器--ArtiPub&OpenWrite](https://mp.weixin.qq.com/s/FpGIX9viQR6Z9iSCEPH86g) +- [全网首发!GPU 驱动自升级原理详解](https://mp.weixin.qq.com/s/7UG24ZugfI5ZnhUpo8vfvQ) +- [死磕 JavaScript 系列之原来你是对象(一)](https://mp.weixin.qq.com/s/oc5Z2t9ykbu_Dezjnw5mfQ) - [免费且好用的图床,就你了,「图壳」!](https://mp.weixin.qq.com/s/0HhgHLo_tTRFZcC-CVjDbw) +- [不限速下载 bilibili 壁纸娘的 432 张壁纸](https://mp.weixin.qq.com/s/qefHCmToAdowBz2JwBn_ug) - [GitHub 项目持续本地化,交给它来做,准没错!](https://mp.weixin.qq.com/s/KO4xHr4EI0YfjF0hiT3pbw) - [阿里又一个 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) +- [Quick Start - 天下武功,唯快不破!效率工具,老少皆宜](https://mp.weixin.qq.com/s/SFde8OsZ8FzNGMHwpmDtrg) - [GitHub 标星 11.5k 的一款开源工具,助你轻松查看 Git 历史](https://mp.weixin.qq.com/s/PK-ikENqF13Lmqy2pcMhYQ) +- [用 Markdown 编辑微信公众号?这个高颜值解决方案你一定会爱上](https://mp.weixin.qq.com/s/bnlWqzCarDlR4F27HHXNUg) ## 项目许可证 From c8d87f38586e170dca3d5c9a35cf436df33c6010 Mon Sep 17 00:00:00 2001 From: JimQing Date: Wed, 8 Jul 2020 23:38:37 +0800 Subject: [PATCH 4/5] fix: blockquote fix --- src/scripts/renderers/wx-renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/renderers/wx-renderer.js b/src/scripts/renderers/wx-renderer.js index 535c12d..52b8945 100644 --- a/src/scripts/renderers/wx-renderer.js +++ b/src/scripts/renderers/wx-renderer.js @@ -119,7 +119,7 @@ const WxRenderer = function (opts) { } renderer.blockquote = text => { - text = text.replace(//, `

`) + text = text.replace(//g, `

`) return `

${text}
` } renderer.code = (text, infoString) => { From e09371618a3a69c4def358efbce2928fd768cc1d Mon Sep 17 00:00:00 2001 From: JimQing Date: Wed, 8 Jul 2020 23:52:10 +0800 Subject: [PATCH 5/5] fix: blockquote_p style fix --- src/scripts/themes/default-theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/themes/default-theme.js b/src/scripts/themes/default-theme.js index 0cde9bd..77e4cf6 100644 --- a/src/scripts/themes/default-theme.js +++ b/src/scripts/themes/default-theme.js @@ -71,7 +71,7 @@ export default { 'color': 'rgb(80, 80, 80)', 'font-family': 'PingFangSC-light, PingFangTC-light, Open Sans, Helvetica Neue, sans-serif', 'font-size': '1em', - 'display': 'inline', + 'display': 'block', }, code: {