io12 / org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
MIT License
405 stars 14 forks source link

Displaying the literal $ character #51

Open mandarm opened 2 months ago

mandarm commented 2 months ago
  1. Start emacs -Q.
  2. In the *scratch* buffer, evaluate (package-initialize).
  3. M-x org-mode
  4. Type the sequence \$A1 A\$1 with and without org-fragtog-mode.

Observations: Without org-fragtog, the sequence is displayed as typed. With org-fragtog turned on, I see \A1A$1. The first \ and the last 1 are in my default font, while the 4 characters in the middle (A1A$) are shown as a latex preview.

Emacs version: GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.42, cairo version 1.18.0) org-fragtog-20220714.2146