You can now do this with an attribute entry in your AsciiDoc source document:
:xref2-inlinemacro.: <a href="#{1}">{2?{2}}</a>
See:
http://groups.google.com/group/asciidoc/browse_thread/thread/73cdcc957bcd1889
Cheers, Stuart
On 09/02/11 04:29, Tong Sun 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 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.