Markdown vs markup - are they related?

时间秒杀一切 提交于 2019-11-29 18:49:06
Keith

Mark-up is a term from print editing - the editor would go through the text and add annotations (i.e. this in italic, that in bold) for the printers to use when producing the final version. This was called marking up the text.

A computer mark-up language is just a standardised short-hand for these sorts of annotations.

HTML is basically the web's standard mark-up language, but it's rather verbose.

A list in HTML:

<ul>
    <li>Item one</li>
    <li>Item two</li>
</ul>

Markdown is a specific markup language, having its own simple syntax.

A list in Markdown:

* Item one
* Item two

Both of these will work in your stackoverflow posts.

Markdown can't do everything HTML can, but both are mark-up languages.

Markdown is a play on words because it is markup. "Markdown" is a proper noun.

Markup is just a way of providing functionality above plain text. For example: formatting, links, images, etc.

Markup is a general term for content formatting - such as HTML - but markdown is a library that generates HTML markup. Take a look at Markdown.

Markdown and the markup used in Mediawiki (the wiki software that powers Wikipedia) is not the same.

They're related in the sense that both are less verbose ways of entering html (with some added features), but I doubt that they are related to each other in any other sense.

If you want to implement Markdown on your site just Google Markdown + your favourite platform/language and you'll likely to find a library that does it for you.

If you want to implement Mediawiki's markup you probably need to look round for better ones (like Markdown).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!