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? Thanks. Wei ========================================================= [2247][weiw:~/temp/4/asciidoc]$ uname -a Darwin weiw.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 [2250][weiw:~/temp/4/asciidoc]$ asciidoc --version asciidoc 8.6.5 [2250][weiw:~/temp/4/asciidoc]$ cat test.adoc == Test http://www.abc.com/~def[DEF] and http://www.abc.com/~ghi[GHI]. http://www.abc.com/~def~ghi.html[dd] http://www.abc.com/~defghi.html[A~b~C] [2250][weiw:~/temp/4/asciidoc]$ grep "<sub>" test.html <div class="paragraph"><p><a href="http://www.abc.com/<sub>def">DEF</ a> and <a href="http://www.abc.com/</sub>ghi">GHI</a>.</p></div> <div class="paragraph"><p><a href="http://www.abc.com/<sub>def</ sub>ghi.html">dd</a></p></div> <div class="paragraph"><p><a href="http://www.abc.com/ <sub>defghi.html">A</sub>b~C</a></p></div> -- 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.
