原文:
Why Markdown Sucks by Joe Armstrong (Armstrong 爷爷是 Erlang 语言的设计者之一)
http://joearms.github.io/2016/03/21/Why-Markdown-Sucks.html
摘录:
“ There are only two kinds of languages: the ones people complain about and the ones nobody uses.” – Bjarne Stroustrup
I discovered that about a third of my old blog entries were incorrectly formatted...
Editing my old pages is more difficult than it seems, since neither the old dialect of markdown rdiscount nor the new kramdown have a formal grammar and I haven ’ t a clue what output they will produce, since it is not formally specified.
I am reluctant to say this, but there is a future proof way of making markdown - that ’ s to write documents directly in XML with a strict DTD and then generate markdown from the XML...
For high quality text, I choose XML markup with my own custom DTD, then an Erlang program to transform this to XSL-FO using an Apache FOP backend.
For low-quality text (like blogs) and emails, markdown is fine - but please don ’ t change the formatting rules after you ’ ve written dozens of large documents.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.