
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
nodebb-plugin-katex2
Advanced tools
Modern KaTeX math rendering plugin for NodeBB 4+.
$$...$$ delimiterscd /path/to/nodebb
npm install nodebb-plugin-katex2
/nodebb/node_modules/cd /path/to/nodebb/node_modules
git clone https://github.com/mysteren/nodebb-plugin-katex.git
cd ../..
npm install ./node_modules/nodebb-plugin-katex
./nodebb restart
Currently, only the $$...$$ syntax is fully supported and tested:
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
Example with integrals:
$$
\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$
Note: While the code includes support for \[...\] (display) and \(...\) (inline) delimiters, these modes are not currently guaranteed to work correctly. Use $$...$$ for reliable math rendering.
lib/index.jsMain plugin module with hooks:
init() - Plugin initialization on loadstatic/js/render.jsClient-side script for:
static/css/katex.cssAdditional styles for:
npm run lint # Check code style
npm run fix # Auto-fix linting issues
MIT
Timofey (mysteren)
Современный плагин для поддержки математических выражений KaTeX в NodeBB 4+.
$$...$$cd /путь/к/nodebb
npm install nodebb-plugin-katex2
/nodebb/node_modules/cd /путь/к/nodebb/node_modules
git clone https://github.com/mysteren/nodebb-plugin-katex.git
cd ../..
npm install ./node_modules/nodebb-plugin-katex
./nodebb restart
В настоящее время полностью поддерживается и протестирован только синтаксис $$...$$:
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
Пример с интегралами:
$$
\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$
Примечание: Хотя в коде присутствует поддержка разделителей \[...\] (отображаемый режим) и \(...\) (встроенный режим), корректная работа этих режимов в настоящее время не гарантируется. Используйте $$...$$ для надёжного отображения формул.
lib/index.jsОсновной модуль плагина с хуками:
init() - Инициализация плагина при загрузкеstatic/js/render.jsКлиентский скрипт для:
static/css/katex.cssДополнительные стили для:
npm run lint # Проверка стиля кода
npm run fix # Автоматическое исправление ошибок стиля
MIT
Timofey (mysteren)
FAQs
KaTeX math rendering plugin for NodeBB
We found that nodebb-plugin-katex2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.