mirror of
https://github.com/gosticks/flashcards-obsidian.git
synced 2025-10-16 12:05:33 +00:00
Merge pull request #45 from ivan-lednev/enable-block-math
Parse $$ blocks to block math in anki cards
This commit is contained in:
commit
4e80d75225
@ -258,7 +258,7 @@ export class Parser {
|
||||
private mathToAnki(str: string) {
|
||||
let mathBlockRegex = /(\$\$)(.*?)(\$\$)/gis
|
||||
str = str.replace(mathBlockRegex, function (match, p1, p2) {
|
||||
return '\\\\(' + escapeMarkdown(p2) + ' \\\\)'
|
||||
return '\\\\[' + escapeMarkdown(p2) + ' \\\\]'
|
||||
})
|
||||
|
||||
let mathInlineRegex = /(\$)(.*?)(\$)/gi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user