On 31/01/11 12:51, Tong Sun wrote:
Hi,

Is "#" a special char?

$ echo '### abc' | asciidoc -s -
<div class="paragraph"><p># abc</p></div>

Why "#" chars are being eaten?

The # is used to quote "unquoted text" (see http://www.methods.co.nz/asciidoc/userguide.html#X51), you've quoted a # with #'s. Use a backslash to escape the quotes:

$ echo '\### abc' | asciidoc -s -
<div class="paragraph"><p>### abc</p></div>


Cheers, Stuart



FYI:

$ apt-cache policy asciidoc
asciidoc:
   Installed: 8.5.2-1ubuntu1
   Candidate: 8.5.2-1ubuntu1
   Version table:
  *** 8.5.2-1ubuntu1 0
         500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
         100 /var/lib/dpkg/status

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.

Reply via email to