mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
feat(export/markdown): export display math properly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user