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 854f5c9 commit c1cfab7Copy full SHA for c1cfab7
src/parse.ts
@@ -92,6 +92,7 @@ export function parse(data: string, config: Config = {}): Result {
92
imageData.type = { framed: 'frame', thumbnail: 'thumb' }[param] || param;
93
if (imageData.type === 'thumb') {
94
imageData.hasCaption = true;
95
+ imageData.float ??= 'right';
96
}
97
98
else if (param.endsWith('px')) {
@@ -129,6 +130,7 @@ export function parse(data: string, config: Config = {}): Result {
129
130
display: inline-block;
131
float: ${imageData.float || 'none'};
132
vertical-align: ${imageData.align || 'unset'};
133
+ background: #fff;
134
${imageData.style || ''}
135
"
136
>
0 commit comments