Skip to content

Commit 6993b81

Browse files
committed
Fox default image deformity
1 parent 8389ba8 commit 6993b81

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Fixed template calls inside table cells breaking the table.
1212
- Fixed headings not working when containing formatting.
1313
- Fixed all index numbers in the TOC being '1'.
14+
- Fixed images being deformed to 300x300px by default.
1415

1516
## 1.3.4
1617
*2024-05-18*

src/parse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export function parse(data: string, config: Config = {}): Result {
129129
style="
130130
display: inline-block;
131131
float: ${imageData.float || 'none'};
132+
clear: ${imageData.float || 'none'};
132133
vertical-align: ${imageData.align || 'unset'};
133134
background: #fff;
134135
${imageData.style || ''}
@@ -138,7 +139,7 @@ export function parse(data: string, config: Config = {}): Result {
138139
src="${paths.basename(imagesFolder)}/${paths.relative(imagesFolder, path)}"
139140
alt="${imageData.alt || file}"
140141
width="${imageData.width || 300}"
141-
height="${imageData.height || 300}"
142+
height="${imageData.height || ''}"
142143
>
143144
${imageData.hasCaption ? `<figcaption>${caption}</figcaption>` : ''}
144145
</figure>

0 commit comments

Comments
 (0)