[PR #1] [MERGED] Inline elements and more regexp examples #3

Closed
opened 2026-10-15 13:25:50 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/Extension-LaTeX/pull/1
Author: @gakada
Created: 5/7/2025
Status: ✅ Merged
Merged: 5/7/2025
Merged by: @Cohee1207

Base: main ← Head: main


📝 Commits (6)

📊 Changes

71 files changed (+207 additions, -31 deletions)

View changed files

📝 README.md (+41 -5)
➕ assets/$$.json (+19 -0)
➕ assets/$.json (+19 -0)
➕ assets/(.json (+19 -0)
➕ assets/[.json (+19 -0)
➕ assets/latex.json (+62 -0)
➕ dist/fonts/KaTeX_AMS-Regular.ttf (+0 -0)
➕ dist/fonts/KaTeX_AMS-Regular.woff (+0 -0)
➕ dist/fonts/KaTeX_AMS-Regular.woff2 (+0 -0)
➕ dist/fonts/KaTeX_Caligraphic-Bold.ttf (+0 -0)
➕ dist/fonts/KaTeX_Caligraphic-Bold.woff (+0 -0)
➕ dist/fonts/KaTeX_Caligraphic-Bold.woff2 (+0 -0)
➕ dist/fonts/KaTeX_Caligraphic-Regular.ttf (+0 -0)
➕ dist/fonts/KaTeX_Caligraphic-Regular.woff (+0 -0)
➕ dist/fonts/KaTeX_Caligraphic-Regular.woff2 (+0 -0)
➕ dist/fonts/KaTeX_Fraktur-Bold.ttf (+0 -0)
➕ dist/fonts/KaTeX_Fraktur-Bold.woff (+0 -0)
➕ dist/fonts/KaTeX_Fraktur-Bold.woff2 (+0 -0)
➕ dist/fonts/KaTeX_Fraktur-Regular.ttf (+0 -0)
➕ dist/fonts/KaTeX_Fraktur-Regular.woff (+0 -0)

...and 51 more files

📄 Description

I removed output: 'mathml', assuming katex.min.css and its fonts can be added. With the included regexps, I'm getting:

$x^2$, $ x^3 $, $x^\$ + y^\$$, $\boxed{x^n}$

$$x^2$$

$$ x^3 $$

$$
x^\$
$$  

$$\boxed{x^n}$$

\(x^2\), \( x^3 \), \(x^\$ + y^\$\), \(\boxed{x^n}\)

\[x^2\]

\[ x^3 \]

\[
x^\$
\]

\[\boxed{x^n}\]

1746608960

Without CSS and fonts:

1746608998

output: 'mathml' without CSS and fonts:

1746609030

output: 'mathml' with CSS and fonts:

1746609038


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/Extension-LaTeX/pull/1 **Author:** [@gakada](https://github.com/gakada) **Created:** 5/7/2025 **Status:** ✅ Merged **Merged:** 5/7/2025 **Merged by:** [@Cohee1207](https://github.com/Cohee1207) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`3a0b68e`](https://github.com/SillyTavern/Extension-LaTeX/commit/3a0b68eedc5d3876ec80d7aadaf02dce91be1c4a) Add inline elements - [`abcf588`](https://github.com/SillyTavern/Extension-LaTeX/commit/abcf588b0fa572ee660c62469dbd9560b82c035f) Add more regexp examples - [`a8fa9dc`](https://github.com/SillyTavern/Extension-LaTeX/commit/a8fa9dc5a2b74acc85d18538982dfa20ccffdbfb) Add bundled examples - [`c334684`](https://github.com/SillyTavern/Extension-LaTeX/commit/c3346847206de5c995df551b10e50661532d8f44) Add KaTeX CSS and fonts - [`4df21d8`](https://github.com/SillyTavern/Extension-LaTeX/commit/4df21d8a77d19f1f0abe43a90631e0d302f6563e) Fix npm audit - [`23de829`](https://github.com/SillyTavern/Extension-LaTeX/commit/23de829fdfe838e208edbe635439d5a84bf5ec28) Update readme with new syntax and examples ### 📊 Changes **71 files changed** (+207 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+41 -5) ➕ `assets/$$.json` (+19 -0) ➕ `assets/$.json` (+19 -0) ➕ `assets/(.json` (+19 -0) ➕ `assets/[.json` (+19 -0) ➕ `assets/latex.json` (+62 -0) ➕ `dist/fonts/KaTeX_AMS-Regular.ttf` (+0 -0) ➕ `dist/fonts/KaTeX_AMS-Regular.woff` (+0 -0) ➕ `dist/fonts/KaTeX_AMS-Regular.woff2` (+0 -0) ➕ `dist/fonts/KaTeX_Caligraphic-Bold.ttf` (+0 -0) ➕ `dist/fonts/KaTeX_Caligraphic-Bold.woff` (+0 -0) ➕ `dist/fonts/KaTeX_Caligraphic-Bold.woff2` (+0 -0) ➕ `dist/fonts/KaTeX_Caligraphic-Regular.ttf` (+0 -0) ➕ `dist/fonts/KaTeX_Caligraphic-Regular.woff` (+0 -0) ➕ `dist/fonts/KaTeX_Caligraphic-Regular.woff2` (+0 -0) ➕ `dist/fonts/KaTeX_Fraktur-Bold.ttf` (+0 -0) ➕ `dist/fonts/KaTeX_Fraktur-Bold.woff` (+0 -0) ➕ `dist/fonts/KaTeX_Fraktur-Bold.woff2` (+0 -0) ➕ `dist/fonts/KaTeX_Fraktur-Regular.ttf` (+0 -0) ➕ `dist/fonts/KaTeX_Fraktur-Regular.woff` (+0 -0) _...and 51 more files_ </details> ### 📄 Description I removed `output: 'mathml'`, assuming `katex.min.css` and its fonts can be added. With the included regexps, I'm getting: ```md $x^2$, $ x^3 $, $x^\$ + y^\$$, $\boxed{x^n}$ $$x^2$$ $$ x^3 $$ $$ x^\$ $$ $$\boxed{x^n}$$ \(x^2\), \( x^3 \), \(x^\$ + y^\$\), \(\boxed{x^n}\) \[x^2\] \[ x^3 \] \[ x^\$ \] \[\boxed{x^n}\] ``` ![1746608960](https://github.com/user-attachments/assets/b643c638-9e2a-4968-8f2b-44110c4d1a7a) Without CSS and fonts: ![1746608998](https://github.com/user-attachments/assets/b11309a9-92c4-42e3-a369-84a377280abb) `output: 'mathml'` without CSS and fonts: ![1746609030](https://github.com/user-attachments/assets/af60397e-fdb4-4dd3-b08f-1c5513cec3bf) `output: 'mathml'` with CSS and fonts: ![1746609038](https://github.com/user-attachments/assets/69512d49-a513-48a1-b29c-70cf52892209) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 13:25:50 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-LaTeX#3
No description provided.