emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] exporting links with underscores


From: Ihor Radchenko
Subject: Re: [BUG] exporting links with underscores
Date: Sat, 17 Dec 2022 09:59:55 +0000

Leo Butler <Leo.Butler@umanitoba.ca> writes:

> The manual does not indicate that underscores need to be escaped in
> links (and they can't be, as far as I can tell). The latex and html
> exporters interpret them as the start of a subscript.
>
> The link =[[mailto:ex_ample@ex.com][ex_ample]]= is expected to export
> to =\href{mailto:ex_ample@ex.com}{ex_ample}= but instead, we get
> [[mailto:ex_ample@ex.com][ex_ample]] exports to (in latex): 
> =\href{mailto:ex\_ample@ex.com}{ex\textsubscript{ample}}=

This is expected. You mixed URL part of the link and the description.
Link description can have same formatting as any other Org text.
So, underscores are indeed treated as markup.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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