Replace gfmHtml with gfmHtml() as per #282

This commit is contained in:
ajbura 2022-02-03 20:35:02 +05:30
parent c7e2540f6f
commit 736f4edfbd

View 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;