Skip to content

Feature/latex compatability frontend button#12

Closed
zenxol wants to merge 3 commits intomainfrom
feature/latex-compatability
Closed

Feature/latex compatability frontend button#12
zenxol wants to merge 3 commits intomainfrom
feature/latex-compatability

Conversation

@zenxol
Copy link

@zenxol zenxol commented Feb 11, 2026

Adds a LaTeX button to the new-topic and reply composer toolbar (next to bold, italic, upload image, etc.). The button inserts display-math delimiters so users can write LaTeX in posts. Rendering of $$...$$ as math is left for a future change (e.g. KaTeX/MathJax).

New plugin: vendor/nodebb-plugin-composer-latex
Server: filter:composer.formatting adds one formatting option (name latex, superscript icon, label “LaTeX”).
Client: On action:composer.enhanced, registers a handler that:
With selection: wraps the selection in $$ $$. (TO BE done in the future, its just the button for now)
No selection: inserts $$ $$ and places the cursor between the dollar signs.
i18n: public/languages/en_GB.json for the button tooltip.

Plugin is referenced from the repo via file:vendor/nodebb-plugin-composer-latex in both root and install/package.json.
Added to default plugins in src/install.js so new installs enable it automatically.

@zenxol zenxol changed the title Feature/latex compatability Feature/latex compatability frontend button Feb 11, 2026
@zenxol
Copy link
Author

zenxol commented Feb 11, 2026

$$ $$ insertion not functional yet, only button for now

@zenxol zenxol closed this Feb 11, 2026
@zenxol
Copy link
Author

zenxol commented Feb 11, 2026

fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments