cherry-markdown 0.5.11 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cherry-markdown",
3
3
  "license": "Apache-2.0",
4
- "version": "0.5.11",
4
+ "version": "0.5.13",
5
5
  "description": "a new markdown editor",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,6 +43,7 @@
43
43
  "commit": "./node_modules/cz-customizable/standalone.js",
44
44
  "release": "standard-version",
45
45
  "prepublishOnly": "npm run build",
46
+ "publish": "git push --follow-tags origin main && npm publish",
46
47
  "examples": "anywhere -p 3000 -s"
47
48
  },
48
49
  "keywords": [
package/src/Factory.js CHANGED
@@ -118,7 +118,7 @@ export function createMenuHook(name, options) {
118
118
  if (filteredOptions.shortcutKeys) {
119
119
  return filteredOptions.shortcutKeys;
120
120
  }
121
- return this.shortcutKeys;
121
+ return [];
122
122
  }
123
123
  };
124
124
  }
@@ -68,7 +68,7 @@ function encode6bit(b1) {
68
68
 
69
69
  function compress(s1, url) {
70
70
  const s = unescape(encodeURIComponent(s1));
71
- return `${url}/img/${encode64(deflate(s, 9))}`;
71
+ return `${url}/svg/${encode64(deflate(s, 9))}`;
72
72
  }
73
73
 
74
74
  export default class PlantUMLCodeEngine {
@@ -88,7 +88,7 @@ export default class PlantUMLCodeEngine {
88
88
 
89
89
  constructor(plantUMLOptions = {}) {
90
90
  const defaultUrl = 'http://www.plantuml.com/plantuml';
91
- this.baseUrl = plantUMLOptions.baseUrl ? plantUMLOptions.baseUrl : defaultUrl;
91
+ this.baseUrl = plantUMLOptions.baseUrl ?? defaultUrl;
92
92
  }
93
93
 
94
94
  render(src, sign) {