Replace gfmHtml with gfmHtml() as per #282
This commit is contained in:
parent
c7e2540f6f
commit
736f4edfbd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue