Implemented latex compatibility with plugin#14
Merged
marcuswu5 merged 2 commits intoCMU-313:mainfrom Feb 15, 2026
Merged
Conversation
unnecessary readme
Pull Request Test Coverage Report for Build 22022418762Details
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds LaTeX/math support to the forum so users can write and render math in new topics and replies.
$$ $$or wraps the selection with$$...$$.$...$and display$$...$$in the composer preview and in posts.Changes
vendor/nodebb-plugin-composer-latex/(library, client scripts, MathJax loader, language file).package.json: dependency added fornodebb-plugin-composer-latex(localvendorpath).How to use
$...$(inline) or$$...$$(display).Setup for reviewers / after merge
npm installthen./nodebb build(Redis or DB must be running).Testing
$$ $$is inserted.$$x^2 + y^2 = z^2$$and use Preview to confirm it renders.NOTE
generated from ai: What it does support (math):$...$ and display $$...$$ math
Equations: fractions, roots, integrals, sums, limits
Symbols: Greek letters, operators, relations
Matrices, cases, align-style blocks
Inline
So anything you’d write in LaTeX math mode (or that MathJax’s TeX input supports) works.
What it does not do:
Full document LaTeX – no \documentclass, \begin{document}, sections, etc.
Arbitrary packages – no TikZ, full tabular, custom .sty files, etc.
Chemistry – no \ce{...} unless you add something like the mhchem extension to MathJax.
General typography – it’s a math renderer, not a full LaTeX compiler.