org-fragtog
org-fragtog copied to clipboard
Plugin doesn't work in markdown mode
Description and steps to reproduce In markdown-mode, the plugin fails to render the latex fragments, outputting this error:
Warning (org-element-cache): org-element--cache: Org parser error in test.md::5. Resetting.
The error was: (error "rx ‘**’ range error")
Backtrace:
nil
The above error only occurs when a markdown header is present, similarly to this issue.
For instance the file used to generate the above error was this:
# H
$\omega$
While a markdown file with just latex code will work perfectly (even switching on and off if the cursor is on/off the code snippet), for example:
$\omega$
(I'm not sure if this is to be considered a org-fragtog bug or a emacs orgmode bug)
Version and environment
- OS: Debian 12 on Windows WSL
- Emacs version 28.2 (Doom)
- Org version 9.6.24
- org-fragtog version 20220714.2146