Articles
Published · November 3, 2026

A Markdown Habit Tracker You'll Actually Keep Up With

A habit tracker that lives in a text file: a daily checklist, a monthly table, a dated log for streaks and a short weekly review. Copy the Markdown and start today.

Also in: Español中文हिन्दी

A Markdown habit tracker is a text file with a checklist for today, a table for the month and a short review each week. It needs no account and no subscription, and it opens in any editor. Most trackers fail because the app gets in the way. This one keeps the format small enough that you won't abandon it.

Pick a few habits you can define

Start with two or three habits, not ten. Each one needs a rule you can answer with yes or no. "Exercise more" fails that test. "Walk for 20 minutes" passes.

The mdkit monthly habit tracker template gives the same advice: track only behaviors you can define unambiguously. It also keeps a small definitions table with a code, the habit, the completion rule and how often it should happen. Here is a version you can paste at the top of your file:

| Code | Habit              | Counts as done when       | Frequency |
| ---- | ------------------ | ------------------------- | --------- |
| A    | Walk               | 20 minutes outside        | Daily     |
| B    | Write              | 200 words in any file     | Weekdays  |
| C    | Read               | 10 pages of a paper book  | Daily     |

Write the rule down once and you won't argue with yourself at 11 pm about whether a short stroll counts.

Start with a daily checklist

The lowest-friction format is a task list in your daily note. GitHub Flavored Markdown writes an open item as a hyphen, a space and [ ], and a finished one with [x], as the GitHub Docs describe.

## Habits

- [x] Walk: 20 minutes outside
- [ ] Write: 200 words
- [x] Read: 10 pages

If you already keep a daily note, paste this block into your template and it shows up every morning without any setup.

The limit is that a checklist resets. Tomorrow's note starts blank, so you can't see how last week went. That is what the next two formats are for. One caveat: task lists are an extension to Markdown. An app that doesn't support them shows the raw - [ ] text, which stays readable and still edits by hand.

Use a monthly table for the full picture

A table gives you the whole month on one screen. Put one row per date and one column per habit, and add a short context column. The mdkit template does the same and uses Y, N and N/A instead of checkboxes, with a legend so the marks are never ambiguous.

Legend: Y = done, N = missed, N/A = not scheduled

| Date       | A | B   | C | Context            |
| ---------- | - | --- | - | ------------------ |
| 2026-11-01 | Y | N/A | Y |                    |
| 2026-11-02 | Y | Y   | N | Late meeting       |
| 2026-11-03 | N | Y   | Y | Rain, skipped walk |

The GFM spec sets the rules that matter here:

  • The header row and the delimiter row (the line of hyphens) must have the same number of cells, or the table isn't recognized.
  • Colons in the delimiter row set alignment: :--- for left, ---: for right, :---: for centered.
  • A literal pipe inside a cell has to be escaped as \|.
  • Table cells can't hold block-level elements such as lists, so keep each cell to a short phrase.

Delete the dates that don't exist in the current month, and start a new file or a new section when the month rolls over. Don't fuss over aligned columns. A renderer lines the cells up for you, so the raw text only needs to be consistent.

Add a dated log for streaks

A table is good for scanning, but it is awkward to append to. If you prefer to add one line at a time, keep a log: a date first, then what you did. The open-source habits project uses this style, with a date and an activity, then indented details:

2021-01-01 Bicycling
  1 hour, 45 minutes
  :miles 20
  :location Gainesville-Hawthorne State Trail

Its app reads that file in the browser and, according to the README, never sends or records the data anywhere. You don't need the app to benefit from the format. A log like this stays easy to search, easy to sort and easy to count with a quick text search. Putting the date first has a side benefit, which is that the lines sort chronologically; the same reasoning applies to date-first file names. If you like the idea of one line per entry, one line, one task shows how far that approach goes.

A simple version for Markdown:

2026-11-02 walk, read
2026-11-03 write, read

Review weekly and adjust

The tracker only helps if you look at it. Add five short bullets at the bottom of the month, one per week, for patterns and obstacles:

## Weekly check-in

- Week 1: Walking fell apart on meeting days. Move it to lunch.
- Week 2:

The mdkit template suggests reviewing the context around misses before you change a target. A pattern such as "missed on Tuesdays" points to a schedule problem, and lowering the goal would only hide it. Keep the review to a couple of lines. If a habit stays hard for a whole month, shrink it. Ten pages becomes two.

Two cautions from the same source. Tracking shows patterns; it doesn't guarantee that behavior will change. And if the file lives in a shared folder or a public repository, keep sensitive health data out of it. If you want a card-based view of what you're working on instead, a plain-text kanban board works in one file in the same way.

Doing this with Carets

A habit tracker survives only if opening it takes seconds. Carets is a fast, native notes and code editor for iPhone, iPad, and Mac, and a few of its features suit this setup:

  • Markdown and plain text in one editor. The checklist, the table and the log are all text, and you edit them as text.
  • Files, projects, and tags. Keep habits-2026-11.md in one project beside your daily notes, and tag it so it is quick to find.
  • Native on iPhone, iPad, and Mac. Tick a box on your phone in the evening and review the month on your Mac.

Your files stay plain text, so they remain portable and future-proof if you ever change apps. Download Carets from the App Store for iPhone, iPad, and Mac.

Frequently Asked Questions

Do checkboxes work in every Markdown app?

Task lists are a GitHub Flavored Markdown extension, not part of original Markdown. Apps that don't support them still show the raw - [ ] text, which stays readable. You can tick an item by typing an x between the brackets.

How many habits should I track?

Start with two or three. Each one needs a definition you can answer yes or no to without arguing with yourself. Add more only once the first few have become routine.

What should I do when I miss a day?

Mark it N, add a few words of context and carry on. Look at the context column before you change a target, because the reason for a miss often points to the fix.