From 6fbb8f9b47027b6a7dd0e9caade1edb0256a0893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=93=E5=AE=89?= Date: Sun, 20 Mar 2022 16:47:09 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat=E2=9C=A8:=20=20Support=20vue3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- babel.config.js | 2 +- example/App.vue | 9 +- example/components/example.vue | 34 ++++--- example/main.js | 8 +- package.json | 42 ++++---- public/favicon.ico | Bin 1150 -> 4286 bytes src/index.js | 2 +- src/markdown-it-vue-light.vue | 126 ++++++++++++----------- src/markdown-it-vue.vue | 181 ++++++++++++++++++--------------- src/utils.js | 9 +- 10 files changed, 216 insertions(+), 197 deletions(-) diff --git a/babel.config.js b/babel.config.js index ba17966..e955840 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ module.exports = { presets: [ - '@vue/app' + '@vue/cli-plugin-babel/preset' ] } diff --git a/example/App.vue b/example/App.vue index 11e086b..4bd5b34 100644 --- a/example/App.vue +++ b/example/App.vue @@ -4,15 +4,8 @@ -