We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4646c97 commit a291ae9Copy full SHA for a291ae9
src/markup/commands/inline.ts
@@ -35,10 +35,13 @@ export function insertImages(images: ImageItem[]): StateCommand {
35
let result = ` {
38
- result += ` "${title}`;
+ result += ` "${title}"`;
39
}
40
41
- if (width !== undefined || height !== undefined) {
+ if (
42
+ (width !== undefined && width.length > 0) ||
43
+ (height !== undefined && height.length > 0)
44
+ ) {
45
result += ` =${width ?? ''}x${height ?? ''}`;
46
47
0 commit comments