zephyrisle/latex-pro
最新稳定版本:v2.0.0
Composer 安装命令:
composer require zephyrisle/latex-pro
包简介
TeX math rendering for your Flarum forum.
README 文档
README
TeX math rendering for your Flarum forum, powered by KaTeX.
Forked from the-turk/flarum-mathren and adapted for Flarum v2.0.
Features
- KaTeX-based rendering (fast and accurate)
- Inline expressions:
[imath]...[/imath]or$...$ - Block expressions:
[math]...[/math]or$$...$$ - AsciiMath syntax support (optional)
- Compatible with Markdown and BBCode
- Copy-to-clipboard for rendered expressions
- Quote button integration with
flarum/mentions - Text editor toolbar buttons
- Live preview support
- Fully configurable via admin panel (delimiters, CDN, KaTeX options)
Requirements
- Flarum
^2.0.0 - PHP
^8.3
Installation
composer require zephyrisle/latex-pro
Then enable it in your Flarum admin panel.
Updating
composer update zephyrisle/latex-pro php flarum cache:clear
Usage
Block expression (displayMode: true):
[math]\int_{-\infty}^\infty\hat\xi\,e^{2\pi i\xi x}\,d\xi[/math]
Inline expression (displayMode: false):
Lorem ipsum [imath]\varDelta = b^2-4ac[/imath] sit amet.
Wrap with backticks or code tag to skip rendering.
Building from Source
cd js
npm install
npm run build
License
MIT — see LICENSE.
Original work © 2019 Hasan Özbey
Modifications © 2026 zephyrisle
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-25