← Back to blog/Guides

What Is Markdown? Files, Formatting, and a First Document

Understand Markdown as readable plain-text source, open a .md file safely, and create a small document you can preview and publish.

F
Faizan Khan
• 6 min read

Markdown is a plain-text format that uses punctuation to describe document structure and formatting: # for a heading, - for a list item, and **text** for strong emphasis. A Markdown file usually ends in .md or .markdown. You can open it in a text editor to read the source or in a compatible previewer to see the formatted document.

You do not need to be a programmer to write Markdown. You do need to know which renderer will display the file, because extensions such as tables, footnotes, and styled warnings are not identical across platforms.

A Markdown file contains text, not a hidden page layout

Here is a complete small file:

Markdown
1# Export review
2
3Use this checklist before sharing the exported file.
4
5## Before you begin
6
7- Confirm the destination folder.
8- Keep a copy of the original file.
9
10## Review the export
11
121. Open the exported file.
132. Check that the expected sections are present.
143. Ask a reviewer to confirm the result.
15
16**Expected result:** The file opens and contains the reviewed material.
17
18For syntax details, read the [CommonMark reference](https://spec.commonmark.org/0.31.2/).

The file stores the heading markers, list markers, link destination, and words as ordinary text. A renderer turns those conventions into a structured presentation, commonly HTML.

For example, the first heading can become:

HTML
1<h1>Export review</h1>

The rendered font, margins, colors, and page width come from the application or site theme. Markdown provides the structure; it does not freeze an exact visual layout the way a finished page image would.

How to open a Markdown file

For source reading or editing, use a plain-text editor. For formatted reading, use a Markdown-aware editor's preview or the destination application's document viewer.

Text
1export-review.md Markdown source
2export-review.html A possible rendered web output
3images/export.png A separate image asset

These are different files. Renaming .md to .html does not perform a conversion. Renaming it to .txt may change which application opens it, but the Markdown characters remain text.

If a file opens as one long line, inspect whether it contains actual newline characters rather than literal \n sequences from another data format. If punctuation appears instead of formatting, you may be viewing source correctly rather than a broken document.

For an unfamiliar file, start by inspecting its source. Plain Markdown is text, but some preview systems permit raw HTML, remote images, or extensions, and MDX can include executable expressions and components. Avoid treating every document previewer as an identical security boundary.

Write and preview your first document

Create a plain-text file named export-review.md, use UTF-8 encoding, and add the example above. Preview it in the same family of renderer you plan to publish with.

Check five things rather than only whether it "looks formatted":

  1. The heading hierarchy communicates the outline.
  2. Prerequisites appear as bullets and ordered actions appear as numbers.
  3. Paragraphs are separated by blank lines.
  4. The link points to its intended destination.
  5. The expected result is readable without special styling.

Then change one element at a time. Add a subheading, a short code sample, or an image. This makes it easier to learn which punctuation changes structure and which characters remain literal.

Use the Markdown cheat sheet as the reference while writing. When source newlines do not display as expected, consult line breaks and paragraphs before adding repeated HTML breaks.

Markdown, CommonMark, and GFM

"Markdown" can refer to a broad family of related formats. The original Markdown project describes the text-to-HTML approach. CommonMark specifies detailed parsing rules so implementations can agree on edge cases. GitHub Flavored Markdown adds features such as task-list items, tables, and strikethrough.

FeatureCore CommonMarkGFM or platform feature
Headings, paragraphs, linksYesAlso available in GFM
Ordered and unordered listsYesAlso available in GFM
Fenced code blocksYesHighlighting depends on the renderer
Pipe tablesNoGFM extension
Task checkboxesNoGFM extension
Footnotes and styled alertsNoCheck the exact platform or plugins

An application saying "Markdown supported" does not specify every extension, HTML policy, or export behavior. Keep a small fixture containing the features you actually need and test that fixture before migrating a large collection.

Markdown is not MDX or a word-processing package

MDX combines Markdown with JSX and related JavaScript capabilities. An .mdx file may contain imported components, expressions, and site-specific elements that a plain Markdown renderer cannot interpret. The MDX introduction explains that additional model.

A word-processing document also commonly packages styles, page layout, and embedded assets differently. Converting it to Markdown can preserve useful structure while changing tables, captions, page breaks, or comments. Review the result instead of assuming conversion preserves every feature.

Similarly, a Markdown image reference usually points to a separate asset rather than packaging the image inside the file. Moving only the .md file can break the reference. The image guide shows how relative paths and published URLs differ.

When Markdown is a good fit

Markdown works well when readable source, version review, and reusable text matter: README files, technical guides, release notes, and small knowledge-base articles. A plain-text change is often easy to inspect line by line.

It is less suitable as a promise of identical page layout across tools. If you need exact print positioning, complex spreadsheet behavior, or a sophisticated interactive interface, Markdown alone does not provide those capabilities.

You can still use Markdown within a richer publishing system. The important distinction is between what the text format expresses and what the surrounding application adds. That keeps examples portable and troubleshooting focused on the right layer.

FAQ

What is a .md file?

A .md file is usually a plain-text Markdown document. Its punctuation describes formatting and structure for a compatible renderer.

Can I open Markdown without special software?

Yes. A plain-text editor can show and edit the source. A Markdown-compatible previewer is needed only when you want the formatted presentation.

Is Markdown a programming language?

Markdown is a document markup format, not a general-purpose programming language. MDX and platform extensions can add capabilities beyond plain Markdown.

Continue This Guide