No description
Find a file
2023-12-24 22:56:30 +01:00
unicodeit add unicodeit to the source 2023-03-14 12:01:41 +08:00
data.ts add unicodeit to the source 2023-03-14 12:01:41 +08:00
license license added 2023-03-08 19:25:50 +08:00
main.ts feat: good undo behaviour (only one setCursor call) 2023-12-24 22:56:30 +01:00
manifest.json first commit 2023-03-03 23:31:30 +08:00
README.md readme updated 2023-03-14 12:05:17 +08:00
styles.css small css change 2023-03-04 14:59:15 +08:00

Convert simple LaTeX symbols into Unicode

Obsidian supports LaTeX, but there are cases where Unicode symbols suffice.

How it works

Run command LaTeX to Unicode. In the pop-up box, type in the LaTeX commands, then insert the conversion results.

Input: 3^2 + 4^2 = 5^2
Output: 3² + 4² = 5²

Input: (x+y)^2 = x^2 + 2xy + y^2
Output: (x+y)² = x² + 2xy + y²

Input: H_2 + \sfrac{1}{2}O_2 \to H_2O
Output: H₂ + ½O₂ → H₂O

Input: -\mathbf{r} \times i\hbar\nabla
Output: 𝐫 × iℏ∇

Input: \sqrt(2) = 1.4142\cdots
Output: √(2) = 1.4142⋯

Input: x \in y \Rightarrow y \ni x
Output: x ∈ y ⇒ y ∋ x

Input: \mathbb{N} \equiv {1, 2, 3, \ldots}
Output:  ≡ {1, 2, 3, …}

Acknowledgment

  • This plugin is based on unicodeit, specifically this GitHub repository. The licenses and source code of unicodeit are included in the directory unicodeit.