fix: text nodes with multiple links crash the timeline

This commit is contained in:
Krille 2024-01-12 16:15:13 +01:00
parent c147330e05
commit 23fe757599
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -51,7 +51,7 @@ class HtmlMessage extends StatelessWidget {
)
.join(' ');
node.replaceWith(dom.Element.html(newHtml));
node.replaceWith(dom.Element.html('<p>$newHtml</p>'));
}
return element;
}