Revert "Replace reST roles of subscript and superscript with the MathJax style at math directive block. request #1"

This reverts commit e32ac2cdf0.
This commit is contained in:
IGARASHI Masanao
2014-12-15 06:16:17 +09:00
parent 18b4c4d74f
commit 7f344d2f6b

View File

@@ -1232,15 +1232,7 @@ holding contextual information."
(org-export-solidify-link-text label))) (org-export-solidify-link-text label)))
"\n" "\n"
(when contents (when contents
(if (string= "math" directive) (org-rst--indent-string contents org-rst-quote-margin))))
(let* ((rcontents
(replace-regexp-in-string
"\\\\ :sub:`\\(.+\\)`\\\\ " "_{\\1}" contents))
(rcontents
(replace-regexp-in-string
"\\\\ :sup:`\\(.+\\)`\\\\ " "^{\\1}" rcontents)))
(org-rst--indent-string rcontents org-rst-quote-margin))
(org-rst--indent-string contents org-rst-quote-margin)))))
(t (t
(concat (concat
(format "::\n") (format "::\n")