Replace gfmHtml with gfmHtml() as per #282
This commit is contained in:
@@ -86,7 +86,7 @@ function getVideoThumbnail(video, width, height, mimeType) {
|
|||||||
function getFormattedBody(markdown) {
|
function getFormattedBody(markdown) {
|
||||||
const result = micromark(markdown, {
|
const result = micromark(markdown, {
|
||||||
extensions: [gfm(), spoilerExtension()],
|
extensions: [gfm(), spoilerExtension()],
|
||||||
htmlExtensions: [gfmHtml, spoilerExtensionHtml],
|
htmlExtensions: [gfmHtml(), spoilerExtensionHtml],
|
||||||
});
|
});
|
||||||
const bodyParts = result.match(/^(<p>)(.*)(<\/p>)$/);
|
const bodyParts = result.match(/^(<p>)(.*)(<\/p>)$/);
|
||||||
if (bodyParts === null) return result;
|
if (bodyParts === null) return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user