reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
897 stars 87 forks source link

Plugin adds \ when not needed. #53

Open fugohan opened 3 years ago

fugohan commented 3 years ago

NOTE: Do you have the last version of the plugin? If not that's probably the problem

Describe the bug Flashcards adds \ but its not needed.

To Reproduce

Expected behavior Anki Card should display 1/r and not 1\/r

Screenshots Selection_032 Selection_033

Markdown used

---
cards-deck: Bugs 
---

# This is a test $1/r$ #card 

this is a test $1/r$
m3nu commented 3 years ago

Seeing something similar.

$1 in Markdown becomes \\(1 in Anki.

But only if TWO $ are in a line. If there is only ONE $, it works fine.

Full example:

- Not working `$1`, `$2`
- Working `$#`

I guess $ inside code should be ignored to avoid mistaking it for Tex?

reuseman commented 2 years ago

@fugohan the first problem should be solved