From 313640ac945ec63b7de37fe58d4e71098c2fa4d8 Mon Sep 17 00:00:00 2001 From: Igarashi Masanao Date: Thu, 22 Feb 2018 22:33:28 +0900 Subject: [PATCH] Add escaping for :: --- ox-rst.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ox-rst.el b/ox-rst.el index 055ffeb..8ea0562 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1074,6 +1074,8 @@ contextual information." (setq text (replace-regexp-in-string "[`*_\\]" "\\\\\\&" text)) ;; Protect .. (setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\\\&" text)) + ;; Protect :: + (setq text (replace-regexp-in-string "::" "\\\\:\\\\:" text)) ;; Return value. text)