Clean up org-rst-plain-text (Fix #37)

This commit is contained in:
Igarashi Masanao
2018-02-22 22:00:13 +09:00
parent 4f2c4ddb22
commit 905825229c

View File

@@ -1073,9 +1073,7 @@ contextual information."
;; Protect `, *, _ and \
(setq text (replace-regexp-in-string "[`*_\\]" "\\\\\\&" text))
;; Protect ..
(setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\.. " text))
;; Protect ^\d+.
(setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\." "\\1\\." text))
(setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\\\&" text))
;; Return value.
text)