LaTeX Conceal replaces common LaTeX math commands with Unicode glyphs directly in the editor while keeping your original source unchanged. (e.g., \alpha is displayed as α)
🖼️ Example
⬅️ Before
➡️ After
In math mode:
\alpha → α
\mathbb{R} / \R → ℝ (depending on replacement table)
_{123} → ₁₂₃
Your file content is not modified; this is visual decoration only.
🚀 Features
🔒 Math-only conceal: Conceals LaTeX commands only inside math environments (inline and block).
👀 Smart reveal: Reveals source text around the cursor for easier editing.
Automatically load custom replacements from the document (e.g., from \newcommand definitions). It is low priority to setting.json. Commands with arguments are not supported.
⚠️ Known Issues
Nested math environments are not handled correctly (e.g., $ ... \text{ $ ... $ } ... $).
Clicking the right side of a concealed glyph (e.g., α) may still place the caret on the left side of the original source token (e.g., \alpha). This is a limitation of decoration-based rendering.
🙏 Credits
The default LaTeX-to-Unicode mapping data is based on unicodeit (MIT License).
Inspired by Vim's conceal feature and similar extensions.