From 736f4edfbdf9ef6db7c55ed246ecf2a47670ed70 Mon Sep 17 00:00:00 2001 From: ajbura Date: Thu, 3 Feb 2022 20:35:02 +0530 Subject: [PATCH] Replace gfmHtml with gfmHtml() as per #282 --- src/client/state/RoomsInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/state/RoomsInput.js b/src/client/state/RoomsInput.js index bc01f22e..3bb36887 100644 --- a/src/client/state/RoomsInput.js +++ b/src/client/state/RoomsInput.js @@ -86,7 +86,7 @@ function getVideoThumbnail(video, width, height, mimeType) { function getFormattedBody(markdown) { const result = micromark(markdown, { extensions: [gfm(), spoilerExtension()], - htmlExtensions: [gfmHtml, spoilerExtensionHtml], + htmlExtensions: [gfmHtml(), spoilerExtensionHtml], }); const bodyParts = result.match(/^(

)(.*)(<\/p>)$/); if (bodyParts === null) return result;