Hi! IRC links in ox-html are currently broken. There exists a special 'irc' content handler on the web, telling browsers to open an irc link in an external irc client. The format for such links seems identical to org (irc:irc.freenode.net/user).
Previously links such as: [[irc:irc.freenode.net/test][Irc link]] Would export to <a href="irc.freenode.net/test">Irc link</a> in ox-html. After this tiny patch, it exports to: <a href="irc:irc.freenode.net/test">Irc link</a> which tells browsers such as firefox to open links in irc clients. Let me know if you find any issues! -Jay
>From fa1a5ad3bf63158775ffa8ab3de37fb056103ab4 Mon Sep 17 00:00:00 2001 From: Jay Kamat <jaygka...@gmail.com> Date: Sun, 24 Sep 2017 01:11:42 -0400 Subject: [PATCH] ox-html.el: Fix irc links exporting to link to local files * lisp/ox-html.el: Add "irc" to special link types which are exported as their link type and path separated by ':', so that browser irc content handlers work properly. --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index d91ca73622..8756cda7e5 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2973,7 +2973,7 @@ INFO is a plist holding contextual information. See (desc (org-string-nw-p desc)) (path (cond - ((member type '("http" "https" "ftp" "mailto" "news")) + ((member type '("http" "https" "ftp" "mailto" "news" "irc")) (url-encode-url (org-link-unescape (concat type ":" raw-path)))) ((string= type "file") ;; Treat links to ".org" files as ".html", if needed. -- 2.11.0