A lightweight syntax for matrices.
Go to file
2017-10-05 20:58:34 +03:00
images Slightly touched up the syntax and added comments. 2017-09-16 22:12:37 +03:00
Mathdown Added subscript and superscript 2017-10-05 20:58:34 +03:00
.gitignore Initial commit 2017-09-13 22:06:42 +03:00
README.md Modified README.md 2017-09-19 17:43:58 +03:00

Mathdown

A lightweight syntax for matrices. Outputs MathML format.

Syntax

[
1 2 3
3 2 8
]

You can also use Markdown-style text emphasis

  • _<text>_ or *<text>* for italic
  • __<text>__ or **<text>** for bold
  • ___<text>___ or ***<text>*** for italic and bold
[
***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

  • -i <file path> Specifies the input path
  • -o <file path> Specifies the output pathfile
  • -b:s Uses square brackets
  • -b:r Uses round brackets
  • -b:l Uses line brackets