On 30/06/12 23:08, Lex Trotman wrote:
On 30 June 2012 20:59, Lex Trotman <[email protected]> wrote:
On 30 June 2012 19:54, Jeremy <[email protected]> wrote:
Hi All,

Below are two notations for links to local and public documents:

  * link:<target>[<caption>]
  * <scheme>://<url>[<captoin>]

I would like to know how can I represent (or encode) the caption is it
contains '[' or ']', For example:

  http://www.androidguys.com/2012/06/28/jelly-bean-play-store-download/[Jelly
Bean Play Store [Download] - AndroidGuys]

The following two attempts are all failed:

  http://www.androidguys.com/2012/06/28/jelly-bean-play-store-download/[Jelly
Bean Play Store \[Download\] - AndroidGuys]
  http://www.androidguys.com/2012/06/28/jelly-bean-play-store-download/[Jelly
Bean Play Store [Download\] - AndroidGuys]

Any suggestions? Thanks!!

Hi

If you are only producing html, you can replace the ] inside the
caption with &#93;

Cheers
Lex


@Stuart,

The user guide in
http://www.methods.co.nz/asciidoc/userguide.html#_macros says ] in
attribute lists can be \ed but AFAICT in fact this applies only to
passthrough text and should be clarified.

Thanks for spotting that Lex, I've committed a patch that fixes the problem for inline macros http, https, ftp, file, irc, mailto, callto, image, link, anchor, xref, indexterm, footnote:

https://code.google.com/p/asciidoc/source/detail?r=bb9fb58535eaa6711e65a3976dc6c24f4c7d3415


Cheers, Stuart


Cheers
Lex



--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.



--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to