定制 the-turk/flarum-mathren 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

the-turk/flarum-mathren

最新稳定版本:1.0.7

Composer 安装命令:

composer require the-turk/flarum-mathren

包简介

TeX math rendering for your forum.

README 文档

README

MIT license Latest Stable Version Total Downloads

An extension that handles TeX math rendering for your Flarum forum.

Screenshot

Action

Click to view settings screenshot

Features

  • Based on KaTeX (the fastest math typesetting library on the web).
  • Supports AsciiMath 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

composer require the-turk/flarum-mathren

Updating

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

Usage

Enable the extension.

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

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

统计信息

  • 总下载量: 3.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 2
  • Forks: 5
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-03