Modified README.md
commitd40af6524defee69d5b6719a543259b0a4c34a30
authorilyakooo0 <ilyakooo0@gmail.com>
dateTue 19 Sep 2017, 17:43 (9 years ago)
parent2718878
Mathdown/Mathdown/main.swift+4−9
@@ -210,15 +210,10 @@ func process(element: Element) -> String {
210210 out.append("\n\n<math><mtable>")
211211 break // TODO: Figure out what to do
212212 case "[":
213− if !inMatrix {
214− out.append("<mtr><mtd><mrow><mo stretchy=\"true\">\(style.opening)</mo><mtable>")
215− inMatrix = true
216− first = true
217− continue
218− } else {
219− print("Inconsistent syntax. Opening a matrix from within a matrix.")
220− exit(0)
221− }
213+ out.append("<mtr><mtd><mrow><mo stretchy=\"true\">\(style.opening)</mo><mtable>")
214+ inMatrix = true
215+ first = true
216+ continue
222217 case "":
223218 if !first {
224219 out.append("</mtable><mtable>")
README.md+1−1
@@ -56,7 +56,7 @@ a=2b
5656```
5757
5858
59−`#` is used to make a `separator` comment. It separates your expressions into dedfferent `<math>` elements and is converted to an `xml` comment in the output document.
59+`#` 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.
6060
6161## Usage
6262`mathdown -b:r -i input.mth -o output.xml`