On 11/08/10 17:38, Suraj N. Kurapati wrote:
Hello, I have a bibliography item that has 2 colons in its name: ------------------------------------------------------------------------------ [horizontal] [[[Test::Unit]]]:: http://ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html ------------------------------------------------------------------------------ AsciiDoc 8.5.3 renders this as (seen in web browser): ------------------------------------------------------------------------------ [] http://ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html ------------------------------------------------------------------------------ I am currently working around this problem by explicitly dropping an anchor and putting the desired key name beside it: ------------------------------------------------------------------------------ [horizontal] [[Test::Unit]] [Test::Unit]:: http://ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html ------------------------------------------------------------------------------ This renders correctly in the web browser. But I am wondering, is there a better way to escape the double colons inside the variable list key name?
An AsciiDoc bibliographic anchor can only contain alphanumeric characters and dashes. I cannot remember why that restriction was adopted since you are allowed any ascii characters in the anchor name (http://www.w3.org/TR/html401/struct/links.html#h-12.2.1). My understanding is that in XHTML and DocBook the anchor id can be any valid XML name (http://www.w3.org/TR/REC-xml/#NT-Name), correct me if I'm wrong. So underscore and colon characters should also be allowed.
Cheers, Stuart
Thanks for your consideration.
-- 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.
