fix rich content not rendering stillimage nor links correctly

このコミットが含まれているのは:
Henry Jameson 2022-03-17 08:47:19 +02:00
コミット 4993dc37e2
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -76,7 +76,7 @@ export default {
const renderImage = (tag) => {
return <StillImage
{...{ attrs: getAttrs(tag) }}
{...getAttrs(tag)}
class="img"
/>
}
@ -222,7 +222,7 @@ export default {
attrs.target = '_blank'
const newChildren = [...children].reverse().map(processItemReverse).reverse()
return <a {...{ attrs }}>
return <a {...attrs}>
{ newChildren }
</a>
}