@@ -1,5 +1,8 @@
2009-12-16 Carsten Dominik <carsten.dominik@gmail.com>
+ * org-exp.el (org-export-target-internal-links): Check for
+ protectedness earlier in the string.
+
* org-agenda.el (org-agenda-highlight-todo): Match TODO keywords
case sensitively.
@@ -1508,7 +1508,7 @@ This function also handles the id links, if they have a match in
the current file."
(goto-char (point-min))
(while (re-search-forward org-bracket-link-regexp nil t)
- (org-if-unprotected
+ (org-if-unprotected-at (match-beginning 1)
(let* ((md (match-data))
(desc (match-end 2))
(link (org-link-unescape (match-string 1)))