PHPackages                             hamcq/flarum-mathren - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hamcq/flarum-mathren

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

hamcq/flarum-mathren
====================

TeX math rendering for your forum. Just For hamcq.cn version

1.0.10(10mo ago)05↓50%MITJavaScript

Since Jan 3Pushed 10mo agoCompare

[ Source](https://github.com/HamCQ/flarum-mathren)[ Packagist](https://packagist.org/packages/hamcq/flarum-mathren)[ RSS](/packages/hamcq-flarum-mathren/feed)WikiDiscussions v1.0.0 Synced 1mo ago

READMEChangelogDependencies (1)Versions (35)Used By (0)

MathRen for Flarum
==================

[](#mathren-for-flarum)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/the-turk/flarum-mathren/blob/master/LICENSE) [![Latest Stable Version](https://camo.githubusercontent.com/07a49f8d698be3723fdeb14fc815eea32d8d598544bee54aebe26f172b0fde27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468652d7475726b2f666c6172756d2d6d61746872656e2e737667)](https://packagist.org/packages/the-turk/flarum-mathren) [![Total Downloads](https://camo.githubusercontent.com/e273f5338bbe974873af5b4d019f54d1f1c729b7ba8e692e6d1b7c88ad9c834a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468652d7475726b2f666c6172756d2d6d61746872656e2e737667)](https://packagist.org/packages/the-turk/flarum-mathren)

An extension that handles TeX math rendering for your [Flarum](https://github.com/flarum) forum.

[![Screenshot](https://camo.githubusercontent.com/71114416869072d300b2d0ea557414475f8a0580538a88b56fe86a4628060e30/68747470733a2f2f692e696d6775722e636f6d2f4f7554384c75662e706e67)](https://camo.githubusercontent.com/71114416869072d300b2d0ea557414475f8a0580538a88b56fe86a4628060e30/68747470733a2f2f692e696d6775722e636f6d2f4f7554384c75662e706e67)

[![Action](https://camo.githubusercontent.com/558ad81828bf42df0165c9512a40b826a08433656a8204f2ca389bea4cbaeb1c/68747470733a2f2f692e696d6775722e636f6d2f47456b774674522e676966)](https://camo.githubusercontent.com/558ad81828bf42df0165c9512a40b826a08433656a8204f2ca389bea4cbaeb1c/68747470733a2f2f692e696d6775722e636f6d2f47456b774674522e676966)

[Click to view settings screenshot](https://i.imgur.com/psB1noF.png)

Features
--------

[](#features)

- Based on [KaTeX](https://github.com/KaTeX/KaTeX) (the fastest math typesetting library on the web).
- Supports [AsciiMath](http://asciimath.org/) syntax.
- Display expressions as an inline or a block element.
- Compatible with Markdown and BBCode.
- Copy any expression's source code to the clipboard.
- Integration with `flarum/mentions` extension so you can quote expressions with selection.
- Works on preview mode.

Installation
------------

[](#installation)

```
composer require the-turk/flarum-mathren
```

Updating
--------

[](#updating)

```
composer update the-turk/flarum-mathren
php flarum cache:clear
```

Usage
-----

[](#usage)

Enable the extension.

---

#### Block Expressions `displayMode: true`

[](#block-expressions-displaymode-true)

Wrap your TeX code with `[math]` and `[/math]` or your custom delimiters.

```
[math]\int_{-\infty}^\infty\hat\xi\,e^{2\pi i\xi x}\,d\xi[/math]

```

Block expressions will be wrapped with `.mathren-block` class.

#### Inline Expressions `displayMode: false`

[](#inline-expressions-displaymode-false)

Wrap your TeX code with `[imath]` and `[/imath]` or your custom delimiters.

```
Lorem ipsum dolor [imath]\varDelta = b^2-4ac[/imath] sit amet.

```

Inline expressions will be wrapped with `.mathren-inline` class.

---

Wrap your expression with `backticks` or `code` tag to skip rendering.

Links
-----

[](#links)

- [Flarum Discuss post](https://discuss.flarum.org/d/22439-mathren-tex-math-rendering)
- [Source code on GitHub](https://github.com/the-turk/flarum-mathren)
- [Changelog](https://github.com/the-turk/flarum-mathren/blob/master/CHANGELOG.md)
- [Report an issue](https://github.com/the-turk/flarum-mathren/issues)
- [Download via Packagist](https://packagist.org/packages/the-turk/flarum-mathren)

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance58

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 81.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~266 days

Total

31

Last Release

310d ago

Major Versions

0.2.6 → v02.x-dev2020-05-06

0.3.7 → v03.x-dev2021-06-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/5239669e26ddbddb4730d00f17eb0bd2b34494f32edfa5f4dd96c0ef78c50972?d=identicon)[Eminlin](/maintainers/Eminlin)

---

Top Contributors

[![hasan-ozbey](https://avatars.githubusercontent.com/u/48382593?v=4)](https://github.com/hasan-ozbey "hasan-ozbey (40 commits)")[![Eminlin](https://avatars.githubusercontent.com/u/20252561?v=4)](https://github.com/Eminlin "Eminlin (5 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![vlntsolo](https://avatars.githubusercontent.com/u/25847225?v=4)](https://github.com/vlntsolo "vlntsolo (1 commits)")

---

Tags

mathematicsexpressionsflarumlatexkatextexmathren

### Embed Badge

![Health badge](/badges/hamcq-flarum-mathren/health.svg)

```
[![Health](https://phpackages.com/badges/hamcq-flarum-mathren/health.svg)](https://phpackages.com/packages/hamcq-flarum-mathren)
```

###  Alternatives

[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)[fof/drafts

Allow users to create post and discussion drafts

1771.1k5](/packages/fof-drafts)[fof/best-answer

Mark a post as the best answer in a discussion

26135.2k15](/packages/fof-best-answer)[fof/polls

 A Flarum extension that adds polls to your discussions

25122.4k9](/packages/fof-polls)[fof/user-directory

The permission based public user directory extension for your Flarum forum.

2789.7k5](/packages/fof-user-directory)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
