fix rich content not rendering stillimage nor links correctly

This commit is contained in:
Henry Jameson 2022-03-17 08:47:19 +02:00
parent 0671aa0dd0
commit 4993dc37e2

View File

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