Giter Site home page Giter Site logo

terrylinooo / wp-mathjax Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 8.98 MB

Displays mathematical notation in web browsers, using MathML, LaTeX and ASCIIMathML markup on WordPress.

License: GNU General Public License v3.0

JavaScript 95.26% CSS 0.12% PHP 4.62%
wordpress-plugin mathjax katex math

wp-mathjax's Introduction

WP Mathjax

WP Mathjax displays mathematical notation in web browsers, using MathML, LaTeX and ASCIIMathML markup on WordPress by using MathJax.js.

Download

source download
WordPress https://wordpress.org/plugins/wp-mathjax-plus
GitHub repository https://github.com/terrylinooo/wp-mathjax/releases
PHP Composer composer create-project terrylinooo/wp-mathjax wp-mathjax

Installation

  1. Upload the plugin files to the /wp-content/plugins/wp-mathjax directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to the WP mathjax menu in Settings and set your options.

How to use

WP Mathjax is smart enough that loads mathjax.js only when your posts contain mathjax syntax, by detecting the use of shortcode and block. So it will not be loaded on your website everywhere.

Shortcode

In classic editor, you can use the shortcode to render your mathjax syntax. If you are using WordPress version below 5.0, this is the only way you can use this feature.

[mathjax]
x = {-b \pm \sqrt{b^2-4ac} \over 2a}.
[/mathjax]

Gutenberg Block

Choose a mathjax block:

Fill in your mathjax syntax in the editor.

Changelog

  • 1.0.0

    • First release.
  • 1.0.1

    • Test up to PHP 8.2.5 and WordPress 6.2.2
    • Add Japanese translation, thanks to Colocal.
    • Upgrade MathJax.js from 2.7.8 to 2.7.9

License

WP Mathjax is developed by Terry Lin and released under the terms of the GNU General Public License v3.

Also See

If you are looking for a Markdown editor supporting mathjax, you can also check out my another WordPress plugin called the WP Githuber MD, which provides a variety of features not just mathjax, it is worth to try.

wp-mathjax's People

Contributors

terrylinooo avatar

Stargazers

Fremder avatar  avatar Erikson avatar  avatar

Watchers

 avatar  avatar

Forkers

royswale

wp-mathjax's Issues

TinyMCE

Some version for TinyMCE classic wordpress

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.