feat(export/markdown): export display math properly

This commit is contained in:
Elian Doran
2025-04-05 09:32:08 +03:00
parent 894cfe4f7a
commit fc4eb13e8d
2 changed files with 12 additions and 1 deletions

View File

@@ -219,6 +219,11 @@ function buildMathFilter(): Rule {
return `$${content.substring(1, content.length - 1)}$`;
}
// Display math
if (content.startsWith("\\[") && content.endsWith("\\]")) {
return `$$${content.substring(2, content.length - 2)}$$`;
}
// Unknown.
return content;
}