Replace gfmHtml with gfmHtml() as per #282
This commit is contained in:
1 parent
e792650ab2
commit
3e69d4728e
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user