From: Vladimír Vondruš
Date: Mon, 18 Jun 2018 09:42:07 +0000 (+0200)
Subject: m.math: properly escape formula sources in the output.
X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=0761aebb8ff6c5b55e1c2a4f3d5e4cfad53a327e;p=blog.git
m.math: properly escape formula sources in the output.
---
diff --git a/doxygen/test/contents_math/index.html b/doxygen/test/contents_math/index.html
index 6c9b9592..f7cc6df0 100644
--- a/doxygen/test/contents_math/index.html
+++ b/doxygen/test/contents_math/index.html
@@ -108,7 +108,7 @@ $c^2$
should be part of a new paragraph, not stuck out of it. The following formula has a custom environment:
diff --git a/pelican-plugins/m/test/math/page.html b/pelican-plugins/m/test/math/page.html
index 8c1669a3..bffc2b62 100644
--- a/pelican-plugins/m/test/math/page.html
+++ b/pelican-plugins/m/test/math/page.html
@@ -191,6 +191,25 @@ W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}
+
Properly escape the formula source:
+
+
diff --git a/pelican-plugins/m/test/math/page.rst b/pelican-plugins/m/test/math/page.rst
index d5e8c3c2..c1867088 100644
--- a/pelican-plugins/m/test/math/page.rst
+++ b/pelican-plugins/m/test/math/page.rst
@@ -20,3 +20,11 @@ the lines :math:`W = \sum_{i=0}^{n} \frac{w_i}{h_i}` because
:math:`Y = \sum_{i=0}^{n} B`
The ``\cfrac`` thing doesn't align well: :math:`W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}`
+
+Properly escape the formula source:
+
+.. math::
+
+ \begin{array}{rcl}
+ x & = & 1
+ \end{array}