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.
- package/CHANGELOG.md +12 -0
- package/dist/cherry-markdown.core.js +1 -1
- package/dist/cherry-markdown.engine.core.js +1 -1
- package/dist/cherry-markdown.esm.js +1 -1
- package/dist/cherry-markdown.js +6 -4
- package/dist/cherry-markdown.js.map +1 -1
- package/dist/cherry-markdown.min.js +1 -1
- package/dist/fonts/ch-icon.eot +0 -0
- package/dist/fonts/ch-icon.ttf +0 -0
- package/dist/fonts/ch-icon.woff +0 -0
- package/dist/fonts/ch-icon.woff2 +0 -0
- package/package.json +2 -1
- package/src/Factory.js +1 -1
- package/src/addons/cherry-code-block-plantuml-plugin.js +2 -2
package/dist/fonts/ch-icon.eot
CHANGED
|
Binary file
|
package/dist/fonts/ch-icon.ttf
CHANGED
|
Binary file
|
package/dist/fonts/ch-icon.woff
CHANGED
|
Binary file
|
package/dist/fonts/ch-icon.woff2
CHANGED
|
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.
|
|
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
|
@@ -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}/
|
|
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
|
|
91
|
+
this.baseUrl = plantUMLOptions.baseUrl ?? defaultUrl;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
render(src, sign) {
|