Add missing file into git.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
diff --git a/test/latex-math.txt b/test/latex-math.txt
new file mode 100644
index 0000000..21a7303
--- /dev/null
+++ b/test/latex-math.txt
@@ -0,0 +1,37 @@
+
+# LaTeX Math
+
+With the flag `MD_FLAG_LATEXMATHSPANS`, MD4C enables extension for recognition
+of LaTeX style math spans.
+
+A math span is is any text wrapped in dollars or double dollars (`$...$` or
+`$$...$$`).
+
+```````````````````````````````` example
+$a+b=c$ Hello, world!
+.
+<p><equation>a+b=c</equation> Hello, world!</p>
+````````````````````````````````
+
+If the double dollar sign is used, the math span is a display math span.
+
+```````````````````````````````` example
+This is a display equation: $$\int_a^b x dx$$.
+.
+<p>This is a display equation: <equation type="display">\int_a^b x dx</equation>.</p>
+````````````````````````````````
+
+Math spans may span multiple lines as they are normal spans.
+
+```````````````````````````````` example
+$$
+\int_a^b f(x) dx
+$$
+<p><equation type="display">\int_a^b f(x) dx </equation></p>
+````````````````````````````````
+
+Note though that many (simple) renderers may output the math spans just as a
+verbatim text. (This includes the HTML renderer used by the `md2html` utility.)
+
+Only advanced renderers which implement LaTeX math syntax can be expected to
+provide better results.