.. extension:: hello world
In markdown, on the other hand, you have multiple, incompatible versions which have entirely different syntax because there is no generic extension mechanism.
ReST feels more well thought-out, generally.
That said, I've pretty much given up advocating it, because markdown seems to have won and has so much more tool support.
It's more powerful and looks much cleaner
// e.g. how do you write footnotes in markdown? And how do you do this in markdown?
+------------+------------+-----------+
| Header 1 | Header 2 | Header 3 |
+============+============+===========+
| body row 1 | column 2 | column 3 |
+------------+------------+-----------+
| body row 2 | Cells may span columns.|
+------------+------------+-----------+
| body row 3 | Cells may | - Cells |
+------------+ span rows. | - contain |
| body row 4 | | - blocks. |
+------------+------------+-----------+It's certainly set up for extensibility, although some areas are a pain (e.g. blank lines may be ignored entirely, change vertical spacing or change semantics, that can be annoying).
The toolchain is also fairly complex and very badly documented (Sphinx itself is better documented than docutils, but either way you end up wading through piles of code to understand what happens, why, and what's available in the applicative context of your extension)
I am not bashing markdown and friends, as I understand there is a use for these tools in some cases, but I am surprised they are so widely embraced and loved.
To me they just evoke the days of typing an essay on dad's 386 with Word Perfect 5.1 installed, and having to hit "reveal codes" to figure out what is going on. MS Word won against WP when they completely did away with these codes.[1]
Now it's 2014 and we're loving building tables by hand-crafting ASCII art.
Am I the only who thinks we can do better?
[1] http://www.theoligarch.com/microsoft_vs_apple_history.htm
I can open a Markdown/ReST/Textile/... file with any text editor, including Notepad, Vim, Emacs etc., and also view it through more or less programs, or just cat them. I can pass them through head or tail; search them with common utilities and even edit them with some others. I am not bound to any programs in order to edit my program. If, on a computer I have to use, there is no Word, or Writer or Pages, I can still edit/read the document. I can read it online, via a browser. I can use programs that are decades old, and I also will be able to read the file decades later. When I send the file to someone else, I can be sure that they will be able to read it. Any usable operating system has a text editor bundled. This level of portability is just a dream for WYSIWYG editors. For these advantaged, I happily trade editing convenience off.
* Last summer, my cousins needed to use my computer for editing a docx document that was important for their undergraduate education. I was running Ubuntu OS at the time, so I told them to use the LibreOffice's word processor. The experience was bad; the document did not render properly, editing was problematic. This is the only case I can provide as an example to support my argument, as it has been multiple years since I used a word processor program.
But you seem to agree with me that the markdown editing experience leaves a little to be desired ("...I happily trade editing convenience off").
What I don't get is why that editing experience doesn't annoy people more. There are tons of markdown-powered blogging platforms, editors, commenting forms coming out every day, but you almost never see projects that try to solve the original problem.
I can easily glance at what has happened to the docs just by looking at a diff, much like I do with all code my team produces already.
And being represented by all text doesn't mean this is what you give your customers. With a bit of work with pandoc etc. you can get a really slick and impressive end result.
But I can't decide between ReST(+Sphinx) and AsciiDoc(+?) - ReST seems to me like it was better thought out, but somehow my AsciiDoc documents turn out looking better, even though I like ReST more.
Of course, this is one of the big problems with Markdown; there are a bunch of different implementations, each of which adds its own extensions. Actually, if you take a look at the Pandoc homepage, you'll see that it implements 5 different Markdown flavors: http://johnmacfarlane.net/pandoc/
(and as a result, it's tended up to spring numerous incompatible extensions e.g. TFA talks about Pandoc Markdown which adds tables, footnotes and a bunch of other stuff, not "Original" Markdown).
> somehow my AsciiDoc documents turn out looking better
Maybe it's just the default style of the Asciidoc HTML renderer, something like that?
For one, there are multiple (and good) implementations of Markdown in Javascript, so it's trivial to embed Markdown in web pages and do all the processing client-side -> faster and better user experience + much lower server load.
Pandoc a) only runs locally/server-side and b) requires a 200 MB Haskell install before it will work.
it's "lighter" than all the other light-markup languages.
it's more _powerful_ than the others, including asciidoc.
it's also far more agile, and much easier to understand.
and i won't allow it to be fragmented, like markdown is.
i've coded converters in javascript and other languages.
the javascript minimizes well for inclusion in web-pages.
i have cross-plat apps, and a web-app converter with a.p.i.
output formats include .html, .epub, .mobi, .pdf, and more.
if there's anything i haven't thought of, do please tell me.
you can reach me at my e-mail address given in my profile.
-bowerbird
BTW, Pandoc (which does do LaTeX math) really needs no improvement, only more widespread implementation (e.g., an online site, and/or a chrome extension coded in javascript.) I suppose its being written in Haskell has been an impediment.
Pandoc can be as simple as `pandoc input.md output.pdf` but can also handle things like a Table of Contents, different highlighting styles, latex engines and fonts:
pandoc --toc --variable version=0.0.1 -N --highlight-style=tango --latex-engine=xelatex --variable mainfont=Helvetica --variable monofont="Meslo LG L DZ" --chapters $(ls -d -1 `pwd`/_input/*.*) -o _output/book.pdf
I tend to set the more complicated command as a build file or alias and I've been considering using local markdown files and then using pandoc to convert them to .html for my WordPress-based blog.Not so different from the IEFT Document Conventions. http://www.rfc-editor.org/rfc/rfc3.txt
Or the RFC guidelines. https://www.rfc-editor.org/rfc-style-guide/rfc-style
I wrote a markdown renderer for my web dev stack. And I've been "cross compiling" to markdown, screen scrapping docs and persisting it to markdown.
Now I realize choosing markdown was rather arbitrary (personal preference, familiarity). Any document structure would suffice.
Nice comparison, thanks.
Sidenote: Wish Github Flavored Markdown would adopt some nice things from Pandoc, like multiline tables.
I ended up entering notes from such sessions into handwritten XML, which I am reconsidering. What is a good format to store one's notes? I am transcribing from handwritten text.