V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Daring Fireball: Markdown
CommonMark
MacDown Open Source Markdown Editor
Marked
GitHub Flavored Markdown
zxgngl
V2EX  ›  Markdown

[英文] 为什么 Markdown 烂

  •  
  •   zxgngl · 2016-03-22 09:52:37 +08:00 · 3409 次点击
    这是一个创建于 3174 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原文:

    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.

    5 条回复    2016-04-30 09:14:07 +08:00
    caoyue
        1
    caoyue  
       2016-03-22 10:46:58 +08:00
    想起老爷子的「 Why OO Sucks 」,还是这么犀利 =-=

    全文看完的话,也不全是黑,说的还是挺有道理的,里面讲的问题也确实存在
    newghost
        2
    newghost  
       2016-03-22 14:46:32 +08:00
    Markdown 挺好的呀
    redkei
        3
    redkei  
       2016-03-22 15:10:54 +08:00
    sucks 是 sucks 可哪里都有啊
    wizardforcel
        4
    wizardforcel  
       2016-04-20 08:34:59 +08:00 via Android
    还“ large documents ”。。去 gitbook 看看吧,那里面全是“ large documents ”,你还想要多 large ?
    dvorak4tzx
        5
    dvorak4tzx  
       2016-04-30 09:14:07 +08:00
    老爷子习惯了手写 XML……而已……外,他只是吐槽 Markdown 各种规范太繁杂,自己不能预期生成的格式。(其实选定一个标准,很容易适应(关键是老爷子自己的老文章要一个个改好……有点累))
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3556 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 04:34 · PVG 12:34 · LAX 20:34 · JFK 23:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.