Clean up org-rst-plain-text (Fix #37)
This commit is contained in:
@@ -1073,9 +1073,7 @@ contextual information."
|
|||||||
;; Protect `, *, _ and \
|
;; Protect `, *, _ and \
|
||||||
(setq text (replace-regexp-in-string "[`*_\\]" "\\\\\\&" text))
|
(setq text (replace-regexp-in-string "[`*_\\]" "\\\\\\&" text))
|
||||||
;; Protect ..
|
;; Protect ..
|
||||||
(setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\.. " text))
|
(setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\\\&" text))
|
||||||
;; Protect ^\d+.
|
|
||||||
(setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\." "\\1\\." text))
|
|
||||||
;; Return value.
|
;; Return value.
|
||||||
text)
|
text)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user