Am I able to display an asciidoc file on github in the same way that I can currently view a markdown file? According to this blog entry, I should be able to do this:
If you’re interested in using AsciiDoc, head over to GitHub and create a new file in one of your repositories or gists using the file extension .asciidoc or .adoc.
However I tried to do this and it did not work. Can anyone tell me how to get an asciidoc document to display the nicely formatted text on Github?
Here is a document that I was trying to test with Asciidoc. https://github.com/00krishna/proj_blog/blob/master/test.adoc
Your file isn't syntactically valid (or rather the line is treated as plain text).
Your original file:
There's no space after the
==
; I believe it's required.A modified version that displays correctly:
See
test.adoc
andtest2.adoc
in this Gist.The syntax for this feature, "One line titles", is documented in the Asciidoc user guide, section 11.2.