emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jay Kamat <jaygkamat@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Export of irc links in ox-html
Date: Sun, 24 Sep 2017 09:20:57 +0200	[thread overview]
Message-ID: <87tvzs8sva.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <8760c8r7wj.fsf@gmail.com> (Jay Kamat's message of "Sun, 24 Sep 2017 01:18:52 -0400")

Hello,

Jay Kamat <jaygkamat@gmail.com> writes:

> IRC links in ox-html are currently broken.

They are not handled, which is slightly different.

> 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.

The proper fix would be to patch "org-irc.el" and add an export function
there. "irc" links are not default links in Org, so there is no reason
to hard-code them in "ox-html.el".

You can look into `org-info-export' in "org-info.el", which is an
example on how optional link types are handled.

Thank you!

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-09-24  7:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-24  5:18 [PATCH] Export of irc links in ox-html Jay Kamat
2017-09-24  7:20 ` Nicolas Goaziou [this message]
2017-09-24 16:28   ` Jay Kamat
2017-09-24 16:35     ` Nicolas Goaziou
2017-09-25  1:34       ` Jay Kamat
2017-09-25 13:52         ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvzs8sva.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jaygkamat@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).