MOMO GUIDEMarkdown Syntax & Review Workflows
Markdown Comments: Every Syntax & Inline AI Review
Test hidden comments live — or leave real review comments for Claude Code & Codex.
Markdown has no native comment token, so developers rely on HTML comments, reference-link tricks, or editor-level annotations. Test how Markdown comments behave in the live sandbox below, and see when inline review comments beat raw syntax.
4 WAYS TO WRITE MARKDOWN COMMENTS
Comparing every Markdown comment syntax
Because CommonMark does not define a dedicated comment token, choosing the right Markdown comments syntax depends on whether you are writing a GitHub README, publishing static HTML, or reviewing drafts with an AI coding agent.
| Method | Syntax | Hidden in Rendered View | Stripped from HTML Source | Best For |
|---|---|---|---|---|
| 1. HTML Comment | <!-- note --> |
Yes (all parsers) | No (visible in View Source) | GitHub READMEs, internal RFCs, multi-line TODOs |
| 2. Reference-Link Hack | [//]: # (note) |
Yes (requires blank lines) | Yes (completely omitted) | Public docs or blog posts where notes must not leak |
| 3. Obsidian / App Syntax | %% private note %% |
Obsidian only | Obsidian only | Single-app vaults (renders as raw %% on GitHub) |
| 4. Momo Inline Comments | Select text + ⌥⌘M |
Clean side thread (non-destructive) | Never pollutes .md syntax |
Reviewing specs & handing edits to Claude Code or Codex |
-
Single-line & multi-line HTML comments
Wrap text in
<!--and-->. Avoid placing two consecutive hyphens (--) inside the comment body, and leave blank lines around multi-line HTML blocks so strict parsers do not swallow the next paragraph. -
Truly invisible reference-link comments
Write
[//]: # (your comment here)on its own paragraph separated by blank lines above and below. Because[//]is never referenced in the document, CommonMark discards it entirely during compilation — safe for public sites, though fragile if you forget blank lines. -
When syntax hacks break down
In-file Markdown comments work fine for tiny TODO reminders, but they clutter Git diffs and fail completely when you want a back-and-forth review thread with a teammate or an AI coding agent like Claude Code or Codex.
INLINE COMMENTS FOR CLAUDE CODE & CODEX
From hidden notes to actionable AI comments
When Claude Code, Codex, or Cursor writes a 300-line design doc in your repository, stuffing <!-- fix this --> comments into raw Markdown or copy-pasting quotes back into a terminal prompt is painfully slow. Momo gives plain .md files real side-by-side review comments over local MCP.
-
1. Highlight any passage & press ⌥⌘M
Select a sentence in Markdown, a range of lines in source code, or an element on a local HTML preview. Your comment stays cleanly anchored in the right-hand sidebar without injecting noisy HTML tags into your
.mdfile. -
2. Hand off over Momo’s local MCP server
Click Handle in Claude (or let Codex pick up open threads). The agent receives exact file paths, quoted context, and line anchors locally — zero cloud sync and zero prompt copy-pasting.
-
3. Review inline changes & resolve
Changed passages highlight with a crisp margin bar right inside Momo. Confirm each edit or ask for another pass — your Git working tree stays clean plain Markdown at every step.
FAQ
Markdown comments — common questions
Quick answers for GitHub, static site generators, and macOS Markdown workflows.
What is the standard syntax for Markdown comments?
Use standard HTML comment tags: <!-- your comment here -->. It works across GitHub, GitLab, VS Code, Notion imports, and native Mac Markdown viewers like Momo for both single-line and multi-line comments.
How do I hide a Markdown comment even from HTML View Source?
Place [//]: # (your comment) on its own line with blank lines above and below. Standard CommonMark and GFM compilers treat it as an unused link reference definition and drop it completely from the output HTML.
Does Momo add proprietary syntax to my .md files when I leave review comments?
No. Your Markdown files remain 100% standard plain .md files on disk. Review comment threads live locally alongside your workspace so Git diffs stay clean and other tools keep reading your files normally.