Skip to content

GiovanniSalmeri/asciimathml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

AsciiMathMl

Convert AsciiMath to MathML.

Introduction

This PHP class converts AsciiMath expressions in MathML. Since January 2023, MathML works across the latest devices and major browser versions.

PHP >= 7.0 is required.

Class synopsis

class AsciiMathMl {

    /* Methods */
    public __construct(string $decimal = ".", bool $isAnnotated = true)
    public parseMath(string $str, bool $isDisplay = true): string
	
}

Example

require "asciimathml.php";

$parser = new AsciiMathMl();
$asciimath = "x=(-b+-sqrt(b^2-4ac))/(2a)";
$mathml = $parser->parse($asciimath);

Acknowledgements

This class is a port of the original asciimathml 2.2 by Peter Jipsen and other contributors.

Developer

Giovanni Salmeri.

About

Convert AsciiMath to MathML

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages