Leo Butler <leo.but...@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_am...@ex.com][ex_ample]]= is expected to export
> to =\href{mailto:ex_am...@ex.com}{ex_ample}= but instead, we get
> [[mailto:ex_am...@ex.com][ex_ample]] exports to (in latex): 
> =\href{mailto:ex\_am...@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