Browse Source

:package:

Van 5 years ago
parent
commit
33b947c76e
5 changed files with 14 additions and 14 deletions
  1. 4 4
      CHANGELOG.md
  2. 1 1
      package-lock.json
  3. 1 1
      package.json
  4. 0 0
      src/js/lute/lute.min.js
  5. 8 8
      src/ts/markdown/md2html.ts

+ 4 - 4
CHANGELOG.md

@@ -42,7 +42,10 @@
 
 * [open issues](https://github.com/Vanessa219/vditor/issues)
 
-### v2.2.19 / 未发布
+### v2.2.20 / 未发布
+
+
+### v2.2.19 / 2020-03-10
 
 * [214](https://github.com/Vanessa219/vditor/issues/214) wysiwyg heading id `引入特性`
 * [206](https://github.com/Vanessa219/vditor/issues/206) combined blockquote and lists (windows firefox) `修复缺陷`
@@ -50,9 +53,6 @@
 * [121](https://github.com/Vanessa219/vditor/issues/121) 所见即所得模式支持 [ToC] `引入特性`
 * [119](https://github.com/Vanessa219/vditor/issues/119) 所见即所得模式支持脚注 `引入特性`
 * [55](https://github.com/Vanessa219/vditor/issues/55) 所见即所得模式支持链接引用定义`引入特性`
-
-### v2.2.18 / 2020-03-05
-
 * [209](https://github.com/Vanessa219/vditor/pull/209) 支持 Graphviz `引入特性`
 * [207](https://github.com/Vanessa219/vditor/issues/207) heading at first time(windows firefox) `修复缺陷`
 * [205](https://github.com/Vanessa219/vditor/issues/205) not working typewrite mode (windows firefox) `修复缺陷`

+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "vditor",
-  "version": "2.2.18",
+  "version": "2.2.19",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vditor",
-  "version": "2.2.18",
+  "version": "2.2.19",
   "description": "♏ 一款浏览器端的 Markdown 编辑器。",
   "author": "Vanessa <[email protected]> (http://vanessa.b3log.org)",
   "homepage": "https://hacpai.com/tag/vditor",

File diff suppressed because it is too large
+ 0 - 0
src/js/lute/lute.min.js


+ 8 - 8
src/ts/markdown/md2html.ts

@@ -2,15 +2,15 @@ import {VDITOR_VERSION} from "../constants";
 import {addScript} from "../util/addScript";
 
 export const loadLuteJs = (vditor: IVditor | string) => {
-    // let cdn = `https://cdn.jsdelivr.net/npm/vditor@${VDITOR_VERSION}`;
-    // if (typeof vditor === "string" && vditor) {
-    //     cdn = vditor;
-    // } else if (typeof vditor === "object" && vditor.options.cdn) {
-    //     cdn = vditor.options.cdn;
-    // }
-    // addScript(`${cdn}/dist/js/lute/lute.min.js`, "vditorLuteScript");
+    let cdn = `https://cdn.jsdelivr.net/npm/vditor@${VDITOR_VERSION}`;
+    if (typeof vditor === "string" && vditor) {
+        cdn = vditor;
+    } else if (typeof vditor === "object" && vditor.options.cdn) {
+        cdn = vditor.options.cdn;
+    }
+    addScript(`${cdn}/dist/js/lute/lute.min.js`, "vditorLuteScript");
     // addScript(`/src/js/lute/lute.min.js`, "vditorLuteScript");
-    addScript(`http://192.168.80.35:9090/lute.min.js?${new Date().getTime()}`, "vditorLuteScript");
+    // addScript(`http://192.168.80.35:9090/lute.min.js?${new Date().getTime()}`, "vditorLuteScript");
 
     if (vditor && typeof vditor === "object" && !vditor.lute) {
         vditor.lute = Lute.New();

Some files were not shown because too many files changed in this diff