Markdown Guide
Write project notes, checklists, technical explanations, and longer documents with Markdown. This guide pairs copyable source with rendered examples for the syntax MDash supports. Use Split view to see your source and Preview together as you write.
Table of Contents
Write a Project Brief
This sample reviews the instructions for Anini Counter. Paste it into an editable Markdown document to try headings, a checklist, a table, and a link to a section.
# Anini Counter Documentation Review
Make it easier to set up a countdown to a specific date or for a fixed duration.
See the [review checklist](#next-steps) for what remains.
## Next Steps
- [x] Outline the guide
- [ ] Review the time zone examples
- [ ] Check the English and Arabic instructions
| Countdown Type | What to Check |
| --- | --- |
| Fixed Date | Confirm which time zone the example uses |
| Fixed Duration | Verify the example in minutes |
In Preview, the link jumps to Next Steps in the same document. See Wiki-Links for links between vault files.
Inline Formatting
| Goal | Syntax | Result |
|---|---|---|
| Bold | **text** | text |
| Italic | *text* | text |
| Strikethrough | ~~text~~ | |
| Highlight | <mark>text</mark> | text |
| Inline code | `code` | code |
| Superscript | text^sup^ | text^sup^ |
| Subscript | text~sub~ | text |
| Link | [MDash Documentation](https://mdash.anini.me/docs/) | MDash Documentation |
| Image |  | See the image example |
Inline-formatting buttons act on selected text and do not show detected active states. Apply the same action to the unchanged selection again to remove its markers, including Inline Code and Highlight. Without a selection, the command inserts markers at the cursor so you can start typing. Highlight uses the HTML <mark> element; ==text== is not supported.
Headings
Markdown Source
# H1
## H2
### H3
#### H4
##### H5
###### H6
Headings receive anchors so you can link to a section. For example, ## Next Steps can be linked with [next steps](#next-steps). Use descriptive headings and a clear hierarchy so readers can scan the page and navigate its table of contents.
Use the toolbar Heading menu to apply Heading 1 through Heading 6. Applying the active heading again removes it. Choose Paragraph, or press Ctrl/⌘ + Alt + 0, to remove a heading prefix from the selected lines.
You can also write H1 and H2 headings by placing === or --- on the line below their text. The toolbar uses # prefixes.
Text Alignment
Use the toolbar Text Alignment menu to choose Left, Center, or Right. With no selection, MDash aligns the current paragraph or heading. A text selection expands to complete supported blocks, including a complete list, so its Markdown structure stays intact. An empty line creates an empty wrapper with one blank typing line and places the cursor inside it.
Place the cursor inside aligned content to see its current alignment marked in the menu. Choosing another alignment updates the same wrapper. Remove Alignment appears only while an alignment is active, below a separator. It preserves the content and retains a container if it carries unrelated attributes. Use Undo or Redo to reverse or restore the change.
Alignment controls are available while editing a writable document. They are disabled for read-only documents and Preview-only mode.
Markdown Source
<div align="center">
Try a **fixed-duration countdown** in [Anini Counter](https://counter.anini.me/) and record the result in `Review.md`.
</div>
Rendered Result
Try a fixed-duration countdown in Anini Counter and record the result in Review.md.
MDash renders Markdown inside these compact alignment wrappers in Preview, shared documents, and rendered exports. You can still use Bold, links, and other formatting buttons inside the wrapper's text. A whole sentence containing inline code or inline math can be aligned without adding a line break before the code or math.
Alignment controls where text sits horizontally. Use Document Direction in Edit Metadata to change reading direction. See Themes and Direction for mixed-language examples. Set table-column alignment in Insert Table.
Safe Editing and Compatibility
Safe Editing
Select the whole paragraph to align a sentence that includes code or math. If the command rejects your selection, move outside the protected content and try again. MDash leaves the selected text intact. Toolbar commands protect opening and closing tags, including their attributes, as well as frontmatter, code blocks, math blocks, tables, and other raw HTML.
These safeguards apply to editing commands. You can still edit the source manually; keep wrapper tags complete and on their own lines.
Spacing and Compatibility
Alignment uses the legacy HTML align attribute. MDash adds the blank lines needed to render the wrapper without changing the stored Markdown or how the source and Preview scroll together.
Other Markdown viewers may require blank lines after the opening tag and before the closing tag. When sharing Markdown source with another application, use this form and check that application allows HTML alignment:
<div align="center">
**Centered Text**
</div>
Lists
Markdown Source
- bullet
- nested
- nested
- bullet
1. first
2. second
3. third
- [ ] task
- [x] done
Rendered Result
- bullet
- nested
- nested
- bullet
- first
- second
- third
- task
- done
In an editable vault document, click a task checkbox in Split, Stacked, or Preview view to update the Markdown source and save the change locally. You can also focus a checkbox with Tab and press Space. Each toggle is a separate Undo step, shared with source edits, even when you change views.
Checkboxes remain static in read-only documents, Presentation Mode, shared viewers, and exports. To work through a shared checklist, open it in MDash and edit your local vault copy. Create a new share URL to share your changes.
Quote, Bullet List, Numbered List, and Task List are toggles. Applying the current action again removes its prefix. Applying a different list action converts the existing marker.
To nest list items, place the caret in an item and press Tab, or select several list-item lines and press Tab to indent them together. Press Shift + Tab to outdent them. After indenting a child item, apply Bullet List, Numbered List, or Task List when you want its style to differ from its parent.
Paragraphs and Line Breaks
Separate paragraphs with a blank line. A normal newline inside a paragraph remains part of the same paragraph. End a line with two spaces when you need an explicit line break without starting a new paragraph.
Indent nested list items consistently. Four spaces are a reliable choice when a list item contains its own paragraph, quote, or code block.
Blockquotes and Callouts
Markdown Source
> A regular blockquote.
> [!NOTE]
> Standard GitHub-style alert.
> [!TIP]
> Use the Insert Alert toolbar button.
> [!WARNING]
> Review the final document before publishing it.
> [!CAUTION]
> Restoring a backup replaces the vault in this browser. Back up any work you want to keep before restoring.
Rendered Result
A regular blockquote.
[!NOTE] Standard GitHub-style alert.
[!TIP] Use the Insert Alert toolbar button.
[!WARNING] Review the final document before publishing it.
[!CAUTION] Restoring a backup replaces the vault in this browser. Back up any work you want to keep before restoring.
MDash supports NOTE, TIP, IMPORTANT, WARNING, and CAUTION alerts. Use the type that best matches the reader's next action, and avoid stacking several alerts when a short section would be easier to scan.
Choose Insert Alert in the toolbar or Insert or Edit Alert in the command palette. Select a type, replace the example with your own Markdown in Content, and confirm with Ctrl/⌘ + Enter. Selected text fills the content field. Place the cursor inside an existing alert and use the same action to change its type or content. You can also insert an empty alert and continue writing in the editor.
Collapsible Sections
Use Insert Collapsible Section in the toolbar or command palette. Enter a Summary, write Markdown in Content, and choose whether the section is Initially Expanded. Selected content fills the body. With no selection, the section is inserted after the current block. You can leave the body empty and write inside it afterward. Place the cursor inside an existing section and choose Edit Collapsible Section to update it.
Markdown Source
<details>
<summary>More Information</summary>
**Markdown** works inside the section.
- First item
- Second item
</details>
Rendered Result
More Information
Markdown works inside the section.
- First item
- Second item
<details> and <summary> are native HTML elements. Add open to the opening tag to start expanded. Omit it to start collapsed; open="false" still starts expanded because the attribute is Boolean. Keep blank lines after the summary and before </details> so Markdown in the body renders correctly. The insertion dialog supplies these lines.
Use collapsible sections for optional detail, such as a meeting transcript or a longer explanation. Keep essential instructions visible. MDash remembers a section's expanded state while its tab remains open; closing the tab clears that choice. Editing its summary or initial state can reset it. HTML exports retain the authored initial state. PDF exports expand every section so its content is included.
Other Markdown viewers may strip raw HTML or require different spacing. Check the destination when sharing Markdown source.
Find in Preview includes text in collapsed sections. Going to a match opens the section that contains it. Heading links also open the sections that contain their targets.
Code Blocks
Use triple backticks with a language hint:
Markdown Source
```python
print("Review the release notes.")
```
Rendered Result
print("Review the release notes.")
Highlighting is powered by Shiki and its bundled TextMate grammars. See Code and Syntax Highlighting for examples and the complete language annex.
Choose Insert Code Block to search supported languages, write or paste code, and check a live highlighted preview before inserting the completed fence. Compact screens use Source and Preview tabs; wider screens show both panes. If highlighting cannot load, you can still insert the code. Place the cursor inside an existing fenced block to edit it through the same modal.
Four-space indentation also creates a code block. Fenced blocks are preferable when you want a language hint. Tilde fences such as ~~~python are supported too.
Emoji and Symbols
Emoji and typographic symbols are ordinary Unicode text:
Markdown Source
- 🚀 Launch
- 🧭 Explore
- ✨ Refine
Plan → Draft → Review
Copyright © 2026
Rendered Result
- 🚀 Launch
- 🧭 Explore
- ✨ Refine
Plan → Draft → Review
Copyright © 2026
Use Insert Emoji and Insert Symbol in the toolbar to search the built-in catalogues.
The emoji picker contains more than 1,100 entries across groups such as smileys, gestures, people, animals, food, travel, activities, objects, office, symbols, and flags. Search with familiar words such as happy, warning, book, or travel.
The symbol picker contains more than 270 punctuation marks, quotes, arrows, mathematical operators, Greek letters, fractions, currencies, marks, shapes, and spacing characters. Search by purpose with terms such as arrow, quote, copyright, check, fraction, or space.
Use Unicode Clearly
Emoji and symbols work in headings, paragraphs, lists, tables, links, presentations, and exports without special Markdown syntax. Their appearance can vary by operating system and font. Some flags may appear as letter pairs on platforms without a matching flag glyph.
Pair visual markers with words when the meaning matters:
Markdown Source
- ✅ Complete
- ⚠️ Needs Review
- ⏳ Waiting
Rendered Result
- ✅ Complete
- ⚠️ Needs Review
- ⏳ Waiting
Do not rely on color or emoji alone. Clear labels help screen readers and remain understandable in monochrome output.
For structured equations, use KaTeX instead of assembling a formula from individual Unicode symbols. A symbol such as ± works well in prose, while fractions, alignment, and full expressions are clearer as math source.
Invisible Spaces and Direction Controls
The symbol picker includes nonbreaking, thin, figure, and zero-width spaces, plus LTR and RTL marks. These can solve a specific line-breaking or mixed-direction problem, but they are invisible in the editor and can make source harder to inspect.
Use them sparingly. For a whole document, prefer the dir frontmatter field or the Direction tab action described in Themes and Direction.
Tables
Create a Basic Table
Markdown Source
| Task | Owner |
| --- | --- |
| Verify the fixed-date countdown example | Mohammad |
Rendered Result
| Task | Owner |
|---|---|
| Verify the fixed-date countdown example | Mohammad |
Align Table Columns
Markdown Source
| Aligned Left | Aligned Center | Aligned Right |
| :--- | :---: | ---: |
| Short | Medium-length text | A much longer entry |
| A longer left entry | Brief | Short |
Rendered Result
| Aligned Left | Aligned Center | Aligned Right |
|---|---|---|
| Short | Medium-length text | A much longer entry |
| A longer left entry | Brief | Short |
Markdown pipe tables work best for compact structured data and cannot merge cells. Use a list or headings when a table becomes difficult to read on a narrow screen.
Choose Insert Table to build a table without writing separators by hand. Use the plus controls at the right and bottom edges to add columns and rows. Remove controls appear in column headers and row gutters. You can also set alignment or paste tab-separated spreadsheet data.
Fill in the Header row with your column names. Place the cursor inside an existing Markdown table to open Edit Table with its cells and alignments loaded. A new table is inserted as a standalone block after the current paragraph, list, quote, frontmatter, or fenced code block.
Images
Use descriptive alternative text:
Markdown Source

Rendered Result

MDash stores the image URL in Markdown. It does not copy a remote image into the vault or ZIP, so the image must remain reachable when the document is viewed later. The /og-image.png example uses a path on the MDash site. Use a reachable full URL if the exported document will be opened elsewhere. Avoid embedding private URLs in documents you plan to share.
Links, Footnotes, and References
Markdown Source
Read the [MDash documentation](https://mdash.anini.me/docs/) or use a [reference link][docs].
Add a useful aside with a footnote.[^guide-note]
[docs]: https://mdash.anini.me/docs/ "MDash Documentation"
[^guide-note]: Footnotes are collected at the bottom of the rendered document.
Rendered Result
Read the MDash documentation or use a reference link.
Add a useful aside with a footnote.1
Use [[Note Name]] for a vault wiki-link and an alias such as [[Note Name|visible label]] to choose its wording. Links can also target code and plain-text files. See Wiki-Links for relative paths, duplicate filenames, and unresolved targets.
The footnotes section renders at the bottom of the preview automatically.
Choose Insert Footnote in the toolbar or command palette, enter Note Text, and confirm. MDash generates an unused numeric label, inserts its marker at the cursor, and appends the definition. A selected phrase stays in the prose, with the marker added after it. The dialog supports Markdown and multiple paragraphs. Place the cursor inside a footnote marker or definition and choose Edit Footnote to update the shared note text.
Insert Reference creates a numbered URL link such as [1] with a [1]: https://example.com definition. This differs from a footnote, which uses [^1] and displays note text at the bottom. Reference links also support [label][key], [key][], and [key] when a matching definition exists.
Place the cursor inside a reference and choose Insert Reference to edit its URL or title. Changes apply wherever that reference is used in the document.
Web URLs such as https://example.com and email addresses such as writer@example.com become links automatically. Use Insert Link or Ctrl/⌘ + K to add a descriptive label or edit the link at your cursor. The link and reference dialogs add https:// to bare web addresses such as example.com. Use ./Notes.md for a relative file link or #setup for a heading in the same document.
In workspace Preview and public guides, links to MDash pages such as https://mdash.anini.me/docs/ open in the current tab. Links to other sites open in a new tab. Shared document links also open in a new tab from the workspace, and web links open in a new tab during a presentation.
Escaping Markdown
Add a backslash before punctuation when it should remain literal:
Markdown Source
- \# Literal heading marker
- \* Literal asterisk
- \[Literal brackets\]
Rendered Result
- # Literal heading marker
- * Literal asterisk
- [Literal brackets]
Use inline code or a fenced code block when showing several lines of Markdown source.
Horizontal Rule
Put three dashes on their own line, with a blank line between the dashes and any preceding paragraph. Without that blank line, Markdown can treat the dashes as a heading underline. In Presentation Mode, a standalone --- separates slides.
Markdown Source
---
Special Markers
| Marker | Inserts |
|---|---|
[[toc]] | Auto-generated table of contents |
[[Note Name]] | Wiki-link to a vault file |
#hashtag | Inline tag chip |
<time>label</time> | Date or time chip |
The generated table of contents includes H1 through H4 headings and preserves their explicit ranks, even when a document skips or reverses heading levels. H5 and H6 still receive anchors, but remain outside the contents list. It starts expanded. MDash remembers whether you collapse it while its tab remains open and forgets that choice when you close the tab. If the document has no H1 through H4 headings, [[toc]] renders an empty contents block instead of behaving like a wiki-link.
Markdown Source
Status: #documentation
Next meeting: <time datetime="2026-10-29">October 29, 2026</time>
Rendered Result
Status: #documentation
Next meeting:
Choose Date and Time in the toolbar, or run Insert Date and Time from the command palette, to insert a <time> element. Choose Date and Time, Date Only, or Time Only; type an ISO date or use the calendar; adjust the time; and select a format from live examples. Preview matches the visible text, and MDash remembers one format choice for each mode.
A complete <time>...</time> element behaves as one inline item while editing. Place the cursor outside it before applying formatting to the surrounding sentence.
Raw HTML and Safety
MDash accepts useful inline HTML, but sanitizes every preview before inserting it into the page. Scripts, forms, frames, event handlers, and unsafe URLs are removed. Use Markdown syntax whenever it can express the same result.
These HTML elements are also supported without dedicated toolbar controls:
| Purpose | Source |
|---|---|
| Keyboard label | <kbd>Ctrl</kbd> |
| Abbreviation with an expansion | <abbr title="Hypertext Markup Language">HTML</abbr> |
| Underline | <u>text</u> |
| Added or removed text | <ins>added</ins> and <del>removed</del> |
| Smaller text | <small>text</small> |
| Definition list | <dl><dt>Term</dt><dd>Meaning</dd></dl> |
| Explicit line break | <br> |
Appearance follows the document theme and browser defaults. HTML definition lists are supported; Markdown Term followed by : Meaning is not.
HTML comments such as <!-- author note --> stay in the source and are hidden in the preview. Character entities such as ©, , and → render as their corresponding characters. Emoji shortcodes such as :smile: stay literal; use the Emoji picker or ordinary Unicode emoji.
Troubleshooting
- If a table does not render, check that the header and its separator have the same number of columns. Use
---for a basic separator cell. - If a heading link misses its target, inspect the generated heading text and duplicate-heading suffix.
- If a horizontal line starts a presentation slide unexpectedly, remember that Presentation Mode also uses
---as its slide separator. - If Text Alignment rejects a selection, move outside protected tags or code and select the surrounding paragraph. Inline code inside a whole sentence is supported.
- If an exported Markdown wrapper shows literal formatting in another viewer, add blank lines around its body and check that the viewer permits raw HTML.
Related Guides
Footnotes
-
Footnotes are collected at the bottom of the rendered document. ↩