On 9 February 2011 02:29, Tong Sun <[email protected]> wrote:
> Hi,
>
> I need to have a blank xref to an anchor, how can I do that?
>
> $ echo 'TT<<anchor-1, >>' | asciidoc -s -
> <div class="paragraph"><p>TT<a href="#anchor-1">[anchor-1]</a></p></div>
>
> I.e., instead of getting '<a href="#anchor-1">[anchor-1]</a>', please give
> me a way to have '<a href="#anchor-1"> </a>' instead.
>
> I tried, '<<anchor-1, >>', '<<anchor-1,%20>>', '<<anchor-1, >>',
> '<<anchor-1,\ >>', but all failed to get what I want.
>
> Please help.
>
> PS. If not possible, I think the asciidoc syntax can be expand so that,
> '<<anchor-1>>' gives '<a href="#anchor-1">[anchor-1]</a>', while
> '<<anchor-1, >>' gives '<a href="#anchor-1"> </a>'.
>
> please tell me how can hack current python code to archive that.
>
> Thanks
>
You need to re-configure the output, make an asciidoc.conf in the same
directory as the source containing:
[xref2-inlinemacro]
<a href="#{1}">{2?{2}}</a>
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.