[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-html-use-unicode-chars breaks source code blocks

From: Vladimir Alexiev
Subject: [O] org-html-use-unicode-chars breaks source code blocks
Date: Tue, 4 Aug 2015 13:40:58 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I've set org-html-use-unicode-chars since I want ox-html to leave IRIs as IRIs.
But this has another undesired effect: it breaks <URL> references in code,
since it doesn't escape the brackets.

Eg this:

#+BEGIN_SRC Turtle
@prefix aat:   <http://vocab.getty.edu/aat/>.

results in the URL being invisible in the exported HTML.
The fault is here:

(defun org-html-final-function (contents backend info)
    (when org-html-use-unicode-chars
      (require 'mm-url)

previous code carefully escaped the entities in org-html-protect-char-alist, 
only for mm-url-decode-entities to unescape them.

http://article.gmane.org/gmane.emacs.orgmode/94742 is somewhat related.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]