on master help sign in

A lightweight syntax for matrices.

git clone ssh://git.iko.soy/Mathdown

Mathdown

A lightweight syntax for matrices. Outputs MathML format.

Syntax

[
1 2 3
3 2 8
]

You can also use Markdown-style text emphasis

[
***1*** 2 __3__
   3   _2_  8
]

You can use _ to leave an empty space in the matrix

[
***1*** 2 __3__ | _
   _   _2_  8   | 4
]

Newlines separate elements of your expressions. // denotes the start of a normal comment. It is not present in the output.

[
***1*** 2 __3__ | _ // This is a normal comment
_      _2_  8   | 4
]

1⊕=0
->
a=2b

// This is also a normal comment

[
1 2
5 3
]

# is used to make a separator comment. It separates your expressions into different <math> elements and is converted to an xml comment in the output document.

Usage

mathdown -b:r -i input.mth -o output.xml

Parameters