Markdown
Lightweight markup language that uses plain-text conventions such as asterisks and pound signs to format text that converts easily to HTML.
Markdown is a way of writing formatted text using simple, readable punctuation instead of tags. A line beginning with a pound sign becomes a heading; words wrapped in asterisks are emphasized; lines beginning with hyphens become a bulleted list; and text in square brackets followed by a web address in parentheses becomes a link. A converter turns the result into HTML or other formats. The design goal was that a Markdown document should be readable as plain text, without looking as though it had been marked up with tags or formatting instructions.
John Gruber created Markdown in 2004, with significant input from Aaron Swartz, and published a description of the syntax along with a Perl script to convert it. Because the original description left many edge cases ambiguous, implementations diverged into numerous dialects. The CommonMark project, begun in 2014, produced an unambiguous specification, and GitHub Flavored Markdown extended it with tables, task lists and other features. Markdown spread from blogging to README files, documentation sites, chat apps, forums, note-taking tools and Jupyter notebooks.
Markdown's success comes from making structured writing portable and durable: plain-text files open in any editor, work well with version control and do not depend on proprietary software. That makes it popular for personal knowledge management and for static site generators that turn folders of Markdown into websites. Its limitations include weak support for complex layouts, inconsistent extensions between tools and the need for embedded HTML, or richer formats such as AsciiDoc and reStructuredText, when documents require more structure.
Key points
- Markdown formats text with readable plain-text conventions that convert to HTML.
- John Gruber created Markdown in 2004 with significant input from Aaron Swartz.
- CommonMark provides a precise specification that resolves ambiguities in the original description.
- Plain-text Markdown files are portable, version-control friendly and independent of any single application.
Related entries
HTML
Markup language used to structure content on the World Wide Web, describing headings, paragraphs, links, images and interactive elements.
Static Site
Website made of prebuilt HTML, CSS and JavaScript files served exactly as stored, without generating pages on a server for each visitor.
Personal Knowledge Management
Practices and tools individuals use to capture, organize, connect and retrieve information and ideas for learning, thinking and creative work.
Digital Garden
Personal website of interlinked, evolving notes and essays, tended over time rather than published as a dated chronological blog.
Aaron Swartz
American programmer and activist who contributed to RSS, Markdown, Reddit and Creative Commons and campaigned for open access to knowledge.
GitHub
Web platform owned by Microsoft for hosting Git repositories and collaborating on software through pull requests, issues and automation.
Literate Programming
Programming methodology, introduced by Donald Knuth, in which programs are written as explanatory documents for people with the code embedded in them.
Jupyter
Open-source project for interactive computing whose notebooks combine live code, results, equations and narrative text in one document.
Referenced by
Other entries that discuss or point to Markdown.