This commit is contained in:
FineArchs 2024-10-10 11:10:39 +09:00 committed by GitHub
parent f562642944
commit 2511a5c17b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -404,9 +404,13 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
style: QUOTE_STYLE,
}, genEl(token.children, scale, true))];
} else if (token.children.length === 1 && token.children[0].type === 'url') {
return [h(MkUrlPreview, {
return [h('div', { style: 'padding-block: 8px' }, [
h(MkUrlPreview, {
url: token.children[0].props.url,
})];
compact: true,
detail: true,
}),
])];
} else {
return [h('div', {
style: QUOTE_STYLE,