Suppress mailto automatic linking

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Suppress mailto automatic linking

metro
When including a git clone command in a literal block like git clone user@server:repo, Asciidoctor generates a mailto:user@server link.

This can be surpressed by prepending a backslash, but unlike URLs, the backslash makes it into the output.

Is this intended?

MT
--
Reply | Threaded
Open this post in threaded view
|

Re: Suppress mailto automatic linking

mojavelinux
Administrator
MT,

I can assure you that Asciidoctor is not generating a mailto link in a literal block (at least, not by default). It could be that this is being added sometime after Asciidoctor converts the document. Where are you seeing this happen?

Cheers,

-Dan

On Sun, Sep 23, 2018 at 12:13 PM, metro [via Asciidoctor :: Discussion] <[hidden email]> wrote:
When including a git clone command in a literal block like git clone user@server:repo, Asciidoctor generates a mailto:[hidden email] link.

This can be surpressed by prepending a backslash, but unlike URLs, the backslash makes it into the output.

Is this intended?

MT
--


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Suppress-mailto-automatic-linking-tp6483.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Suppress mailto automatic linking

metro
I misspoke: the problem occurs when encapsulating the git command with monospace. The literal block does indeed behave correctly.

See below for example. Both docbook5 and html output convert user@server.com to an email address.

MT
--

= Git URL Test
First Last <first.last@company.com>

This document tests the rendering of git url's.

Git clone command with just server name shows up *correctly* as `git clone user@server:repo`.

Git clone command with domain shows up *incorrectly* with email address as `git clone user@server.com:repo`.

Literal block does behave correctly with domain:

....
git clone user@server.com:repo
....

Reply | Threaded
Open this post in threaded view
|

Re: Suppress mailto automatic linking

mojavelinux
Administrator
Ah, in that case what you are looking for is literal monospace.

`+literal monospace+`.

The backticks alone only make the text monospace. They do not escape it.


Cheers,

-Dan

On Sun, Oct 7, 2018 at 4:57 PM metro [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I misspoke: the problem occurs when encapsulating the git command with monospace. The literal block does indeed behave correctly.

See below for example. Both docbook5 and html output convert [hidden email] to an email address.

MT
--

= Git URL Test
First Last <[hidden email]>

This document tests the rendering of git url's.

Git clone command with just server name shows up *correctly* as `git clone user@server:repo`.

Git clone command with domain shows up *incorrectly* with email address as `git clone [hidden email]:repo`.

Literal block does behave correctly with domain:

....
git clone [hidden email]:repo
....




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Suppress-mailto-automatic-linking-tp6483p6501.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux