joeyuping / quick_latex_obsidian

MIT License
326 stars 21 forks source link

Minor issue with \limits auto-fill #13

Closed nathancartlidge closed 3 years ago

nathancartlidge commented 3 years ago

https://github.com/joeyuping/quick_latex_obsidian/blob/a1fa65f51ade718b66691d04bb71620d56888875/main.ts#L401

Because the auto-replace does not test for the \ before the sum, it will trigger when typing the word sum in another context - for example, trying to type \text{sum will lead to \limits being auto-inserted

Thanks!

joeyuping commented 3 years ago

thank you!! I have resolved this in 1.5.2