From 78d7d556e4d5ceef31dbea1c53ba5cecfda049df Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 14 Jul 2021 12:38:55 -0700 Subject: [PATCH] Add blockquote and del elements. --- src/domain/session/room/timeline/deserialize.js | 2 +- src/platform/web/ui/general/html.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/deserialize.js b/src/domain/session/room/timeline/deserialize.js index dc8a2715..68a08c9d 100644 --- a/src/domain/session/room/timeline/deserialize.js +++ b/src/domain/session/room/timeline/deserialize.js @@ -12,7 +12,7 @@ import { linkify } from "./linkify/linkify.js"; * While has `href`, and has `src`, these have... themselves. */ const basicInline = ["EM", "STRONG", "CODE", "DEL", "SPAN" ]; -const basicBlock = ["DIV"]; +const basicBlock = ["DIV", "BLOCKQUOTE"]; class Deserializer { constructor(result, mediaRepository) { diff --git a/src/platform/web/ui/general/html.js b/src/platform/web/ui/general/html.js index e4d6b383..78a1e83d 100644 --- a/src/platform/web/ui/general/html.js +++ b/src/platform/web/ui/general/html.js @@ -93,7 +93,7 @@ export const SVG_NS = "http://www.w3.org/2000/svg"; export const TAG_NAMES = { [HTML_NS]: [ "br", "a", "ol", "ul", "li", "div", "h1", "h2", "h3", "h4", "h5", "h6", - "p", "strong", "em", "span", "img", "section", "main", "article", "aside", + "p", "strong", "em", "span", "img", "section", "main", "article", "aside", "del", "blockquote", "pre", "code", "button", "time", "input", "textarea", "label", "form", "progress", "output", "video"], [SVG_NS]: ["svg", "circle"] };