@gravity-ui/markdown-editor 14.2.1 → 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';
|