@gravity-ui/markdown-editor 14.2.0 → 14.2.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.
|
@@ -28,9 +28,10 @@ function insertImages(images) {
|
|
|
28
28
|
.map(({ title, url, alt, width, height }) => {
|
|
29
29
|
let result = ` {
|
|
31
|
-
result += ` "${title}`;
|
|
31
|
+
result += ` "${title}"`;
|
|
32
32
|
}
|
|
33
|
-
if (width !== undefined
|
|
33
|
+
if ((width !== undefined && width.length > 0) ||
|
|
34
|
+
(height !== undefined && height.length > 0)) {
|
|
34
35
|
result += ` =${width !== null && width !== void 0 ? width : ''}x${height !== null && height !== void 0 ? height : ''}`;
|
|
35
36
|
}
|
|
36
37
|
result += ')';
|
package/build/cjs/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
/** During build process, the current version will be injected here */
|
|
5
|
-
exports.VERSION = typeof '14.2.
|
|
5
|
+
exports.VERSION = typeof '14.2.2' !== 'undefined' ? '14.2.2' : 'unknown';
|
|
@@ -23,9 +23,10 @@ export function insertImages(images) {
|
|
|
23
23
|
.map(({ title, url, alt, width, height }) => {
|
|
24
24
|
let result = ` {
|
|
26
|
-
result += ` "${title}`;
|
|
26
|
+
result += ` "${title}"`;
|
|
27
27
|
}
|
|
28
|
-
if (width !== undefined
|
|
28
|
+
if ((width !== undefined && width.length > 0) ||
|
|
29
|
+
(height !== undefined && height.length > 0)) {
|
|
29
30
|
result += ` =${width !== null && width !== void 0 ? width : ''}x${height !== null && height !== void 0 ? height : ''}`;
|
|
30
31
|
}
|
|
31
32
|
result += ')';
|
package/build/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** During build process, the current version will be injected here */
|
|
2
|
-
export const VERSION = typeof '14.2.
|
|
2
|
+
export const VERSION = typeof '14.2.2' !== 'undefined' ? '14.2.2' : 'unknown';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/markdown-editor",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.2",
|
|
4
4
|
"description": "Markdown wysiwyg and markup editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -170,7 +170,6 @@
|
|
|
170
170
|
"@gravity-ui/icons": "^2.10.0",
|
|
171
171
|
"@lezer/highlight": "~1.2.1",
|
|
172
172
|
"@lezer/markdown": "~1.3.1",
|
|
173
|
-
"@storybook/react": "8.4.1",
|
|
174
173
|
"@types/is-number": "^7.0.1",
|
|
175
174
|
"@types/markdown-it": "^12.2.3",
|
|
176
175
|
"base64-arraybuffer": "1.0.2",
|
|
@@ -218,6 +217,7 @@
|
|
|
218
217
|
"@storybook/addon-webpack5-compiler-babel": "3.0.3",
|
|
219
218
|
"@storybook/cli": "^8.4.1",
|
|
220
219
|
"@storybook/preset-scss": "1.0.3",
|
|
220
|
+
"@storybook/react": "8.4.1",
|
|
221
221
|
"@storybook/react-webpack5": "^8.4.1",
|
|
222
222
|
"@storybook/theming": "^8.4.1",
|
|
223
223
|
"@types/gulp": "4.0.9",
|