From ea55ba66c9dfc8fc4feff848ad7143ea7cff3246 Mon Sep 17 00:00:00 2001 From: oeyoews Date: Sat, 9 Mar 2024 19:40:34 +0800 Subject: [PATCH] add highlight vue plugin #235 --- config/plugins.mjs | 6 +++++- .../files/highlight.vue.min.js | 7 +++++++ .../neotw-highlight-vue/files/tiddlywiki.files | 13 +++++++++++++ plugins/oeyoews/neotw-highlight-vue/plugin.info | 15 +++++++++++++++ plugins/oeyoews/neotw-highlight-vue/readme.md | 5 +++++ .../oeyoews/neotw-highlight-vue/readme.md.meta | 3 +++ 6 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 plugins/oeyoews/neotw-highlight-vue/files/highlight.vue.min.js create mode 100644 plugins/oeyoews/neotw-highlight-vue/files/tiddlywiki.files create mode 100644 plugins/oeyoews/neotw-highlight-vue/plugin.info create mode 100644 plugins/oeyoews/neotw-highlight-vue/readme.md create mode 100644 plugins/oeyoews/neotw-highlight-vue/readme.md.meta diff --git a/config/plugins.mjs b/config/plugins.mjs index 445d1372b2..6fdd96310f 100644 --- a/config/plugins.mjs +++ b/config/plugins.mjs @@ -2,7 +2,11 @@ import ci from 'ci-info'; import config from './index.js'; // TODO: support remove plugins from here -export const devPlugins = ['vue-random-cards', 'neotw-vue-settings']; +export const devPlugins = [ + // 'neotw-highlight-vue', + 'vue-random-cards', + 'neotw-vue-settings' +]; // NOTE: vercel not support use { isCi } ??? const enableMarkdown = config.markdown; diff --git a/plugins/oeyoews/neotw-highlight-vue/files/highlight.vue.min.js b/plugins/oeyoews/neotw-highlight-vue/files/highlight.vue.min.js new file mode 100644 index 0000000000..58b3871956 --- /dev/null +++ b/plugins/oeyoews/neotw-highlight-vue/files/highlight.vue.min.js @@ -0,0 +1,7 @@ +/** + * Minified by jsDelivr using Terser v3.14.1. + * Original file: /npm/highlightjs-vue@1.0.0/dist/highlightjs-vue.cjs.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +"use strict";var module$1=module$1||{};function hljsDefineVue(e){return{subLanguage:"xml",contains:[e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:/^(\s*)(