markdown-up 4.0.0 → 4.0.2
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/lib/app.js +3 -3
- package/package.json +5 -5
package/lib/app.js
CHANGED
|
@@ -71,7 +71,7 @@ enum MarkdownUpView
|
|
|
71
71
|
* @property {?number} [fontSize = 12] - The font size, in points
|
|
72
72
|
* @property {?Object} [globals = null] - Global script runtime variables
|
|
73
73
|
* @property {?string} [helpURL] - The help URL
|
|
74
|
-
* @property {?number} [lineHeight = 1.
|
|
74
|
+
* @property {?number} [lineHeight = 1.3] - The line height, in em
|
|
75
75
|
* @property {?string} [markdownText = null] - The default Markdown text
|
|
76
76
|
* @property {?boolean} [menu = true] - If true, show the menu
|
|
77
77
|
* @property {?string} [systemPrefix] - The markdown-script system include prefix
|
|
@@ -108,7 +108,7 @@ export class MarkdownUp {
|
|
|
108
108
|
this.fontSize = (options !== null ? options.fontSize : null) ?? 12;
|
|
109
109
|
this.globals = (options !== null ? options.globals : null) ?? null;
|
|
110
110
|
this.helpURL = (options !== null ? options.helpURL : null) ?? defaultHelpURL;
|
|
111
|
-
this.lineHeight = (options !== null ? options.lineHeight : null) ?? 1.
|
|
111
|
+
this.lineHeight = (options !== null ? options.lineHeight : null) ?? 1.3;
|
|
112
112
|
this.markdownText = (options !== null ? options.markdownText : null) ?? null;
|
|
113
113
|
this.menu = (options !== null ? options.menu : null) ?? true;
|
|
114
114
|
this.systemPrefix = (options !== null ? options.systemPrefix : null) ?? defaultSystemPrefix;
|
|
@@ -607,7 +607,7 @@ export class MarkdownUp {
|
|
|
607
607
|
'path': 'M4,22 L10,2 L14,2 L20,22 M6,12.5 L18,12.5',
|
|
608
608
|
'strokeWidth': 4
|
|
609
609
|
}),
|
|
610
|
-
this.menuValueCycle('lineHeight', 1.
|
|
610
|
+
this.menuValueCycle('lineHeight', 1.3, [1.2, 1.3, 1.5, 1.7, 2.0], null, {
|
|
611
611
|
'path2': 'M2,3 L22,3 M2,9 L22,9 M2,15 L22,15 M2,21 L22,21'
|
|
612
612
|
}),
|
|
613
613
|
this.menuValueToggle('debug', {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "markdown-up",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.2",
|
|
5
5
|
"description": "MarkdownUp is a Markdown viewer",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"markdown",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"test": "node --test test/"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"bare-script": "~4.
|
|
25
|
+
"bare-script": "~4.1",
|
|
26
26
|
"element-model": "~1.2",
|
|
27
27
|
"schema-markdown": "~1.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@eslint/js": "~10.0",
|
|
31
31
|
"c8": "~11.0",
|
|
32
|
-
"eslint": "~10.
|
|
33
|
-
"globals": "~17.
|
|
32
|
+
"eslint": "~10.2",
|
|
33
|
+
"globals": "~17.5",
|
|
34
34
|
"jsdoc": "~4.0",
|
|
35
|
-
"jsdom": "~29.
|
|
35
|
+
"jsdom": "~29.1"
|
|
36
36
|
}
|
|
37
37
|
}
|