|
@@ -1691,8 +1691,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
|
|
|
"\\)?"
|
|
|
(org-create-multibrace-regexp "{" "}" 3))))
|
|
|
(while (re-search-forward re nil t)
|
|
|
- (add-text-properties (match-beginning 0) (match-end 0)
|
|
|
- '(org-protected t))))
|
|
|
+ (unless (save-excursion (goto-char (match-beginning 0))
|
|
|
+ (equal (char-after (point-at-bol)) ?#))
|
|
|
+ (add-text-properties (match-beginning 0) (match-end 0)
|
|
|
+ '(org-protected t)))))
|
|
|
|
|
|
;; Protect LaTeX entities
|
|
|
(goto-char (point-min))
|