mirror of
https://github.com/ilyakooo0/Mathdown.git
synced 2024-10-03 18:07:12 +03:00
A lightweight syntax for matrices.
images | ||
Mathdown | ||
.gitignore | ||
README.md |
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