Skip to content

How to write a diary in Markdown

Organize entries with headings, lists, quotes, and tables, comparing source and rendered output line by line. Covers escaping, links, and code blocks.

Updated 3 min read
Written by ⁨The iDiary.ai Team⁩

Learn the symbols you’ll actually use

Markdown expresses structure with a handful of symbols, which suits splitting long text, making lists, or comparing data. You don’t need to format every sentence. For more syntax, see the Markdown cheat sheet in the help center.

Headings and emphasis

#, ##, and ### mark heading levels. When the page already has a title, the body usually starts at ##. Typing ## One moment from today gives you a second-level heading.

Source Rendered
*italic* italic
**bold** bold
~~struck out~~ struck out
`inline code` inline code
\*literal asterisks\* *literal asterisks*

The last row is escaping: a backslash before an asterisk makes it display literally instead of marking italic. Bold suits a few keywords; you don’t need to bold whole paragraphs. The core syntax—headings, emphasis, lists, block quotes, links and images, fenced code blocks, and backslash escapes—is defined by the CommonMark specification (version 0.31.2).

Lists: parallel items and steps

Source:

- Take an umbrella
- Return the library book

1. Read the last entry
2. Write what changed today

Rendered:

  • Take an umbrella
  • Return the library book
  1. Read the last entry
  2. Write what changed today

Leave one space after the dash or the number. Use unordered lists for parallel items and ordered lists when sequence matters. A list only lists things; feelings can go in a separate paragraph.

Quotes: keep someone’s exact words

Source:

> She said, "You don't have to decide today."
>
> I want to keep that sentence.

Rendered:

She said, “You don’t have to decide today.”

I want to keep that sentence.

Use > for the empty line inside a quote block too, so both paragraphs stay in one block. When you can’t recall the exact words, mark it as a paraphrase; don’t turn a memory into a precise quote for the sake of layout.

Tables: only data you need to compare

Source:

| Date | Reading time | Where I stopped |
| --- | --- | --- |
| 11/25 | 20 minutes | Chapter 2, the characters meet |
| 11/26 | 15 minutes | Chapter 3, want to reread the earlier dialogue |

Rendered:

Date Reading time Where I stopped
11/25 20 minutes Chapter 2, the characters meet
11/26 15 minutes Chapter 3, want to reread the earlier dialogue

The separator row can’t be omitted. Many columns are hard to read on a phone, so keep two to four. Complex feelings don’t belong in a table. Tables, strikethrough, task lists, and autolinks belong to the GitHub Flavored Markdown (GFM) extensions: the GFM spec states explicitly that it is a strict superset of CommonMark, and these constructs are not part of the CommonMark core.

Typing [Help center](/en/help/) renders as Help center. Make the link text describe the destination instead of writing only “here.”

The image syntax is ![alt text](image URL). The alt text should describe the image. Referencing an image URL doesn’t upload or back up the image, and it doesn’t change access at the original address. Don’t put sensitive images on public links.

Code blocks: keep text as typed

To show a template or code as typed instead of rendering its symbols, wrap it in three backticks:

```text
Fact:
Feeling:
Question:
```

Rendered:

Fact:
Feeling:
Question:

Preview when you’re done, checking list indentation, table column counts, and closed code fences. A lone --- line creates a horizontal rule; use it only when the topic clearly shifts, not as a replacement for subheadings. Formatting only needs to make the record readable, not show off every syntax rule.

References

FAQ

Can I write a diary without knowing Markdown?

Yes. Plain text records fine; learn the symbols when you need sections or lists.

Does iDiary support tables and code blocks?

Yes. The body renders tables, strikethrough, and fenced code blocks. Preview after writing to check.

Can I export a Markdown diary?

You can export a selected diary's published entries as Markdown text. Drafts and deleted entries are not included.

Start a free diary