on master help sign in
Modified README.md
d40af65ilyakooo0
Mathdown/Mathdown/main.swift+4−9
@@ -210,15 +210,10 @@ func process(element: Element) -> String {
210 out.append("\n\n<math><mtable>")
210 out.append("\n\n<math><mtable>")
211 break // TODO: Figure out what to do
211 break // TODO: Figure out what to do
212 case "[":
212 case "[":
213− if !inMatrix {
214− out.append("<mtr><mtd><mrow><mo stretchy=\"true\">\(style.opening)</mo><mtable>")
213+ out.append("<mtr><mtd><mrow><mo stretchy=\"true\">\(style.opening)</mo><mtable>")
215− inMatrix = true
214+ inMatrix = true
216− first = true
215+ first = true
217− continue
216+ continue
218− } else {
219− print("Inconsistent syntax. Opening a matrix from within a matrix.")
220− exit(0)
221− }
222 case "":
217 case "":
223 if !first {
218 if !first {
224 out.append("</mtable><mtable>")
219 out.append("</mtable><mtable>")
README.md+1−1
@@ -56,7 +56,7 @@ a=2b
56```
56```
57![](images/mat4.png)
57![](images/mat4.png)
58
58
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.
60
60
61## Usage
61## Usage
62`mathdown -b:r -i input.mth -o output.xml`
62`mathdown -b:r -i input.mth -o output.xml`