From bed359508045840f130feb359f9331c036470d32 Mon Sep 17 00:00:00 2001 From: CHENXCHEN Date: Fri, 24 Nov 2017 20:15:24 +0800 Subject: [PATCH 1/2] change default markdown css and hljs js css to option for users --- .eslintrc.js | 4 +- src/dev/app.vue | 4 +- src/lib/core/highlight.js | 39 +++++++++++------- src/lib/core/markdown.js | 8 ++-- src/mavon-editor.vue | 85 +++++++++++++++++++++++++++++++-------- 5 files changed, 103 insertions(+), 37 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 19b3377c2..e9184b648 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,6 +38,8 @@ module.exports = { // 'no-unused-vars':0, // else 强制换行 - 'brace-style':0 + 'brace-style':0, + // 允许多个空格 + 'no-multi-spaces': 0, } } diff --git a/src/dev/app.vue b/src/dev/app.vue index 6fda1edaa..760b7bc4d 100644 --- a/src/dev/app.vue +++ b/src/dev/app.vue @@ -20,6 +20,7 @@