Markdown
Markdown — облегчённый язык разметки с простым синтаксисом форматирования для создания структурированных документов. Он конвертируется в HTML и является стандартом для файлов README, документации, блогов и приложений для заметок. Markdown приоритизирует читаемость исходного текста.
MIME-тип
text/markdown
Тип
Текст
Сжатие
Без потерь
Преимущества
- + Extremely simple syntax that anyone can learn in minutes
- + Version-control friendly — clean diffs in Git
- + Renders beautifully on GitHub, GitLab, and most platforms
- + Converts easily to HTML, PDF, DOCX, and other formats
Недостатки
- − Limited formatting — no native support for tables of contents or footnotes
- − Flavor fragmentation (CommonMark, GFM, MDX) creates inconsistencies
- − No built-in styling — appearance depends on the renderer
Когда использовать .MD
Используйте Markdown для документации, файлов README, блогов, заметок и любого контента, для которого важны контроль версий и редактирование в виде текста.
Технические детали
Файлы Markdown — это обычный текст, использующий символы: # для заголовков, * для выделения и [ ] для ссылок. Обработчик Markdown (например, marked, markdown-it) разбирает синтаксис в AST и генерирует HTML.
История
Джон Грубер создал Markdown в 2004 году совместно с Аароном Шварцем, стремясь к формату, читаемому как обычный текст и легко конвертируемому в HTML. CommonMark (2014) и GitHub Flavored Markdown стандартизировали синтаксис.
Конвертировать из .MD
Конвертировать в .MD
Связанные форматы
Связанные термины
Learn More
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …
Regular Expressions: A Practical Guide for Text Processing
Regular expressions are powerful patterns for searching, matching, and transforming text. This guide covers the most useful regex patterns with …
Base64 Encoding: How It Works and When to Use It
Base64 converts binary data into ASCII text, making it safe for transmission through text-based systems. Learn when Base64 is the …
Markdown vs Rich Text vs Plain Text: When to Use Each
Choosing between Markdown, rich text, and plain text affects portability, readability, and editing workflow. This comparison helps you select the …