Login  Register

Render a link that includes the @ character

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Render a link that includes the @ character

aalmiray
31 posts
Hello gang,

Does anyone know how such a link can be rendered? Here's an example

    http://xircles.codehaus.org/lists/dev@geb.codehaus.org[here]

Problem is that Asciidoctor renders the following HTML

    <a href="http://xircles.codehaus.org/lists/<a href="mailto:dev@geb.codehaus.org">dev@geb.codehaus.org">here

As it gets confused by the e-mail address found in the link. Apparently e-mail address are automatically translated into mailto: links.

I've tried defining an attribute and using pass:macros as suggested by the Asciidoctor manual but it didn't work either.

Environment:
------------------------------------------------------------
Gradle 1.9
------------------------------------------------------------

Build time:   2013-11-19 08:20:02 UTC
Build number: none
Revision:     7970ec3503b4f5767ee1c1c69f8b4186c4763e3d

Groovy:       1.8.6
Ant:          Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:          2.2.0
JVM:          1.7.0_45 (Oracle Corporation 24.45-b08)
OS:           Mac OS X 10.9 x86_64

asciidoctor-gradle-plugin: 0.7
asciidoctor: 0.1.4.0

TIA
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Render a link that includes the @ character

LightGuardjp
354 posts
I created an issue and a new test. Feel free to add more. https://github.com/asciidoctor/asciidoctor/pull/849

As a side note, the tests dealing with mailto in document_test.rb and substitutions_test.rb should probably be moved to the links_test.rb


On Sat, Dec 14, 2013 at 5:25 AM, aalmiray [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello gang,

Does anyone know how such a link can be rendered? Here's an example

    http://xircles.codehaus.org/lists/dev@...[here]

Problem is that Asciidoctor renders the following HTML

    <a href="http://xircles.codehaus.org/lists/<a href="mailto:[hidden email]">[hidden email]">here

As it gets confused by the e-mail address found in the link. Apparently e-mail address are automatically translated into mailto: links.

I've tried defining an attribute and using pass:macros as suggested by the Asciidoctor manual but it didn't work either.

Environment:
------------------------------------------------------------
Gradle 1.9
------------------------------------------------------------

Build time:   2013-11-19 08:20:02 UTC
Build number: none
Revision:     7970ec3503b4f5767ee1c1c69f8b4186c4763e3d

Groovy:       1.8.6
Ant:          Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:          2.2.0
JVM:          1.7.0_45 (Oracle Corporation 24.45-b08)
OS:           Mac OS X 10.9 x86_64

asciidoctor-gradle-plugin: 0.7
asciidoctor: 0.1.4.0

TIA


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Render-a-link-that-includes-the-character-tp1200.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--