Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 -- |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 .... ![]() |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. For an explanation, see https://asciidoctor.org/docs/user-manual/#literal-monospace 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. ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |