Replace gfmHtml with gfmHtml() as per #282
authorajbura <ajbura@gmail.com>
Thu, 3 Feb 2022 15:05:02 +0000 (20:35 +0530)
committerajbura <ajbura@gmail.com>
Thu, 3 Feb 2022 15:05:02 +0000 (20:35 +0530)
src/client/state/RoomsInput.js

index bc01f22e078dbf01c8ee935b1134c97c228e7931..3bb36887ff5a003ea5e63a907f1c26b7f679d95f 100644 (file)
@@ -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>)(.*)(<\/p>)$/);
   if (bodyParts === null) return result;