fix: markdown math import (#529)

* fix: markdown math block import

* fix: block and inline math import

* cleanup
This commit is contained in:
Philip Okugbe
2024-12-09 15:08:25 +00:00
committed by GitHub
parent 4a2a5a7a4d
commit e48b1c0dae
4 changed files with 96 additions and 2 deletions

View File

@ -117,7 +117,7 @@ function mathBlock(turndownService: TurndownService) {
);
},
replacement: function (content: any, node: HTMLInputElement) {
return `\n$$${content}$$\n`;
return `\n$$\n${content}\n$$\n`;
},
});
}