GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jmnote/SimpleMathJax: MediaWiki Extension SimpleMathJax

BranchesTags
Open more actions menu

Latest commit

 

History

187 Commits
187 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
docs
docs
 
 
hack
hack
 
 
i18n
i18n
 
 
includes
includes
 
 
resources
resources
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.phpcs.xml
.phpcs.xml
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
extension.json
extension.json
 
 

Repository files navigation

The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments. It requires MediaWiki 1.43 or later.

https://www.mediawiki.org/wiki/Extension:SimpleMathJax

Installation

  • git clone in extensions directory
  • Using CDN is recommended. Because it's much faster than using local resources in most cases. ("the benefits of using a CDN")
$ git clone https://github.com/jmnote/SimpleMathJax.git
  • (Optional) If you want to use not CDN but local mathjax scripts, you can use git clone recursive, then set $wgSmjCdnEnabled = false (see $wgSmjCdnEnabled).
$ git clone --recursive https://github.com/jmnote/SimpleMathJax.git
  • LocalSettings.php
wfLoadExtension( 'SimpleMathJax' );

Optional Settings

Setting name Default value Description Custom value example
$wgSmjCdnEnabled true Whether to load MathJax from a CDN false
$wgSmjCdnVersion '4' MathJax version to load from the CDN '4.1.3'
$wgSmjScale 1 MathJax.chtml.scale 1.5
$wgSmjEnableMenu true MathJax.options.enableMenu false
$wgSmjExplorerEnabled false Whether to enable MathJax's accessibility explorer (click/keyboard exploration, speech, Braille) true
$wgSmjDelimitersEnabled false Whether to also scan for bare delimiters (e.g. $...$) outside <math>/<chem> true
$wgSmjDelimitersInlineMath [] Inline math delimiter pairs [['$','$']]
$wgSmjDelimitersDisplayMath [] Display math delimiter pairs [['$$','$$']]
$wgSmjAllowedAttributes [] List of generic HTML attributes to carry over to the output <span> ['class', 'title']
$wgSmjIgnoreHtmlClass 'mathjax_ignore|comment|
diff-(context|
addedline|deletedline)'
MathJax.options.ignoreHtmlClass 'mathjax_ignore|comment|
diff-(context|
addedline|deletedline)|my_custom_class'
$wgSmjRevisionOverrides [] Switch the configuration according to the article's revision [['max'=>1048576,
'wgSmjScale'=>1.5]]

See docs/configuration.md for a detailed walkthrough of each setting, with usage examples. Upgrading from before 1.0.0? See the migration guide for what to change in your LocalSettings.php.

See docs/displaystyle.md for the <math display> rendering modes and examples.

Need to keep another extension (e.g. Lingo) from interfering with MathJax's rendering? See Hooks in the configuration guide for the SimpleMathJaxAttributes hook.

About

MediaWiki Extension SimpleMathJax

www.mediawiki.org/wiki/Extension:SimpleMathJax

Topics

mathjaxmediawiki-extension

Resources

Readme
MIT license
Activity

Stars

30 stars

Watchers

2 watching

Forks

29 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.