On 11 February 2013 22:57, Const Volatile <[email protected]> wrote: > Hi there, > > When there is a single ~ within an url, asciidoc leave it as it is. > But if there is two ~ in one line, asciidoc always interpret them as > <sub>...</sub>. > > A simple test case is presented below, which illustrates several > aspects of the above problem. The first case is actually the real case > and is hard to be spotted (from the html file) until someone reported > the url is invalid. Same problem with ver 8.6.8 under Debian too. > > Not sure how to solve it, but a quick solution maybe to automatically > ~ inside urls (identified by a regexp like ^http[s]://) to %7E, before > ~ ~ to <sub></sub> substitution occurs? >
Hi, Unfortunately quotes substitution happens long before identification of URLs happens (during macro substitution) so this can't be done automatically. You will have to manually escape the quotes. See http://www.methods.co.nz/asciidoc/userguide.html#X51. Cheers Lex > Thanks. > Wei > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
