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:
10
ox-rst.el
10
ox-rst.el
@@ -1232,15 +1232,7 @@ holding contextual information."
|
||||
(org-export-solidify-link-text label)))
|
||||
"\n"
|
||||
(when contents
|
||||
(if (string= "math" directive)
|
||||
(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)))))
|
||||
(org-rst--indent-string contents org-rst-quote-margin))))
|
||||
(t
|
||||
(concat
|
||||
(format "::\n")
|
||||
|
||||
Reference in New Issue
Block a user