diff --git a/ox-rst.el b/ox-rst.el index 2464da6..b9c90f9 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1179,9 +1179,9 @@ containing export options. Modify DATA by side-effect and return it." (entity (org-element-property :latex-math-p obj)) (latex-fragment (let ((value (org-element-property :value obj))) - (or (org-string-match-p "\\`\\\\([^\000]*\\\\)\\'" value) - (org-string-match-p "\\`\\$[^\000]*\\$\\'" value) - (org-string-match-p "\\`\\\\\\[[^\000]*\\\\\\]\\'" value)))) + (or (string-match-p "\\`\\\\([^\000]*\\\\)\\'" value) + (string-match-p "\\`\\$[^\000]*\\$\\'" value) + (string-match-p "\\`\\\\\\[[^\000]*\\\\\\]\\'" value)))) ((subscript superscript) t)))))) (org-element-map data '(entity latex-fragment subscript superscript) (lambda (object)