From f49b1e3f9164fac5f1cfb0380f0e9d5851b6aba8 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 25 Apr 2024 13:58:46 +0100 Subject: [PATCH] fix: Adding All supporting tag in table to render the data correctly as precautionary action --- .../html_preview/table_html_extension.dart | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/lib/src/components/organisms/html_preview/table_html_extension.dart b/lib/src/components/organisms/html_preview/table_html_extension.dart index a1d6b00..94977c8 100644 --- a/lib/src/components/organisms/html_preview/table_html_extension.dart +++ b/lib/src/components/organisms/html_preview/table_html_extension.dart @@ -24,6 +24,64 @@ const zdsTableTags = { 'li', 'colgroup', 'hr', + 'a', + 'abbr', + 'acronym', + 'address', + 'b', + 'bdi', + 'bdo', + 'big', + 'cite', + 'code', + 'data', + 'del', + 'dfn', + 'em', + 'font', + 'i', + 'ins', + 'kbd', + 'mark', + 'q', + 'rt', + 's', + 'samp', + 'small', + 'span', + 'strike', + 'strong', + 'sub', + 'sup', + 'time', + 'tt', + 'u', + 'var', + 'wbr', + 'article', + 'aside', + 'body', + 'center', + 'dd', + 'dl', + 'dt', + 'figcaption', + 'figure', + 'footer', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'header', + 'html', + 'main', + 'nav', + 'noscript', + 'pre', + 'section', + 'summary', }; /// [TableHtmlExtension] adds support for the element to the flutter_html library.