by Jiwoo Roh
Margin comments stored inline in your Markdown, with a formatting toolbar, custom highlight colors, and an underline style.
Notion-style Comments
This is a fork of Document Comments by Kyle McDonald (@kylemcd). All credit for the original plugin goes to the original author. This fork adds the features listed below. The original work is used under the MIT License; see LICENSE.
Notion-style Comments adds inline comments to Obsidian notes. It shows each comment as a card beside the text on desktop and iPad.
Install it from the Obsidian community plugin directory.
The plugin stores each comment inside its Markdown file as an HTML comment. Other editors, version control tools, and agents can read the comment.
Check this out!
For more Notion-style editing, check out Notion Selection Toolbar, another plugin of mine.

What this fork adds
Suggesting mode (suggest edits)
Like Notion's Suggest edits and Google Docs' Suggesting, switch a note from editing to suggesting so your changes are proposed instead of made:
- Editing: you change the text directly, as usual.
- Suggesting: the original text is kept. What you type shows as a suggested addition (teal, underlined — a color the highlight palettes don't use, so it never looks like a comment highlight). What you delete stays in place, struck through in gray, as a suggested deletion. Typing over a selection, or typing right after deleting, suggests a replacement: the old text struck through, followed by the new text, with one Replace card that accepts or rejects both.
Each suggestion gets a card beside the text with who suggested it, what it adds or deletes, and ✓ Accept / ✕ Reject. Click the card to reply to a suggestion, like any comment. Accepting an addition (or rejecting a deletion) keeps the text; accepting a deletion (or rejecting an addition) removes it.
- Switch modes with the ✏️ / 💡 button in the ribbon (it works on iPad and phones too), ✏️ Editing / 💡 Suggesting in the desktop status bar, the Toggle suggesting mode command, or Editing mode in settings.
- Keep typing to grow your suggestion; Backspace inside your own suggested text really deletes it, and deleting all of it removes the suggestion.
- Korean, Japanese, and Chinese input works: composed text is marked once the input method finishes each word.
- Accept all suggestions in this note and Reject all suggestions in this note resolve them in one step.
- Suggestions show in Live Preview, Source view, Reading view, the comments sidebar, and PDF export.
- Edits inside code, front matter, and link targets are made directly, since a marker there would break the Markdown.
Text formatting toolbar in comments
Select text while you write or edit a comment, and a small toolbar appears above the comment box:
- B / I / U /
S: bold, italic, underline, strikethrough - Text color
- Highlight color

Highlight colors
Choose how commented text is marked in your notes.
- Color scheme: Notion (soft, solid fills) or Apple (bright Apple-style colors with translucent fills). Both have separate light and dark palettes and also set the text colors in the comment toolbar.
- Highlight color: your theme's highlight color, or one of the scheme's 9 colors (yellow, green, blue, purple, pink, red, orange, brown, gray).
- Highlight intensity: 0% (the default) is Notion's exact color. Raise it to make every highlight bolder.
- Custom colors: pick your own hex value for each color, separately for light and dark themes. Each picker shows the default until you change it; ↺ resets it.

Color codes for both schemes
Text colors the underline, hover tint, and colored comment text. Highlight is the fill behind commented text (at 0% intensity). Apple's highlights are translucent: the last two digits are opacity (26 = 15%, 33 = 20%). For text + background, use a color's text value on its own highlight, for example #EC1313 on #EC131326. "What you see" is that translucent highlight over a white (light) or dark page.
Notion
| Color | Text: light | Text: dark | Highlight: light | Highlight: dark |
|---|---|---|---|---|
| Red | #C4554D | #CF5D57 | #FAECEC | #4D302B |
| Orange | #CC782F | #BD8052 | #F8ECDF | #573C27 |
| Yellow | #C29343 | #C29A56 | #FAF3DE | #53442C |
| Green | #548164 | #659C75 | #EEF3EC | #2A3C31 |
| Blue | #487CA5 | #6786C4 | #E9F3F7 | #1E394C |
| Purple | #8A67AB | #956ACD | #F6F3F9 | #3A2E47 |
| Pink | #B35388 | #C25F94 | #FDE8F1 | #492E3B |
| Gray | #787774 | #9B9B9B | #F1F1EF | #2F2F2F |
| Brown | #976D57 | #B28773 | #F3EEEE | #46332A |
| Default | theme text | theme text | theme highlight | theme highlight |
Apple
| Color | Text: light | Text: dark | Highlight: light | Highlight: dark | Light: what you see | Dark: what you see |
|---|---|---|---|---|---|---|
| Red | #EC1313 | #F23636 | #EC131326 | #F2363626 | #FCDCDC | #3E2222 |
| Orange | #F09343 | #F09748 | #F0934326 | #F0974826 | #FDEFE3 | #3D3024 |
| Yellow | #F5BA0A | #F7CB3B | #F5BA0A33 | #F7CB3B26 | #FDF1CE | #3E3822 |
| Green | #5AC5B3 | #63D7C3 | #5AC5B326 | #63D7C326 | #E6F6F4 | #283A37 |
| Blue | #3B86F7 | #3F8FF7 | #3B86F726 | #3F8FF726 | #E2EDFE | #232F3E |
| Purple | #BB3ED9 | #CA43EA | #BB3ED926 | #CA43EA26 | #F5E2F9 | #38243C |
| Pink | #EB445A | #EB4B63 | #EB445A26 | #EB4B6326 | #FCE3E6 | #3D2528 |
| Gray | #8A8A93 | #9898A0 | #8A8A9326 | #9898A026 | #EEEEEF | #303031 |
| Brown | #A88457 | #B89A75 | #A8845726 | #B89A7526 | #F2EDE6 | #35302B |
| Default | theme text | theme text | theme highlight | theme highlight | theme highlight | theme highlight |
Underline style and per-comment overrides
- Annotation style: mark commented text with a highlight only, an underline only, or both.
- Use a comment's ⋯ menu to change the color or style of that single comment.

Comment from a selection toolbar
Pair this fork with Notion Selection Toolbar, another plugin of mine. Select text in a note and choose Comment from its floating toolbar to start a comment.

Card views
Switch how comments look from 💬 in the status bar at the bottom of Obsidian: the card view, the card color indicator, the highlight style, and whether resolved comments show. The same choices are in settings, and every change applies right away.

Card views:
- Default: full cards with author, date, buttons, and reactions.
- Compact: only the comment text; click a card to see its buttons.
- PDF style: like a PDF reader. Each comment is a small note icon in its color right next to the text. Hover it to see the first line, and click the icon or the highlight to open the card beside it. Press Escape, click elsewhere, or click the icon again to close it.

Card color indicator shows each card's highlight color as a line on the left, a colored card, a dot, or nothing, so you can tell which card belongs to which text. Set the line's thickness (Indicator line thickness) and how strongly a colored card is filled (Colored card strength) in settings.
Focus borders, the comment you're writing, and selected items use a neutral gray instead of your theme's accent color, so the only colors beside your note are the comments' own.
In the sidebar, pick one or more colors under Open / Resolved / All to see only those comments.
Comments in PDF export
When you export a note to PDF, each commented passage is highlighted, and its comment (with replies) is printed beside it in a right-hand margin column, in the same color and kept on one page. Comments on nearby lines are spread around their text without overlapping. Turn it off with Show comments in PDF export in settings, or run Toggle comments in PDF export from the command palette. Resolved comments are included only when Show resolved comments is on.
Narrow window layout
When the window is too narrow for the margin, comment cards hide and appear when you hover over the highlighted text (on iPad: tap it), so the note keeps its full width. On iPad this happens when the pane is narrower than about 690px, for example in Split View or Slide Over.

Profile photo
In settings, set Profile photo to an image from your vault (Choose…) or an image link. It shows as a small round photo next to your name on your own comments and replies. Turn off Show my profile to hide your name and photo on your comments.
Hide author names
Turn off Show author names in settings to hide who wrote each comment and reply, on comment cards and in highlight hover previews.
Long comments
Long comments show in full when there's room. A comment folds to a "more" preview only when it would run into the next card, or when it's taller than the window (then it offers Open in sidebar →). Use less / more to fold or unfold one yourself; your choice stays until you click the other.
iPad support

- iPad shows comment cards in the margin, like desktop. When a note has comments, the text narrows so the column fits beside it. In a narrow pane (Split View, Slide Over), cards hide and appear when you tap a highlight.
- Cards are compact on iPad: a 270px column, tighter spacing, and smaller buttons, sitting evenly between the text and the screen edge.
- Each comment shows just React and ⋯. Resolve is in the ⋯ menu; tap the card to reply.
Phones show highlights only, and you read and add comments in the sidebar and a pop-up.
Reliable Reading view

Comments show in Reading view even when the commented text has formatting in it (bold, italic, links, wikilinks, ==highlights==), crosses a formatting boundary, runs across blockquote or list lines, or overlaps another comment. A comment that lost one of its markers (for example after an edit outside the plugin) is found by the quote saved with it.
Scrolling and speed
In the editor, comment cards scroll exactly with the text, without re-measuring on every scroll frame. Highlights on formatted text appear together with the text as you scroll or type, and hovering a highlight doesn't re-lay out the margin.
Smaller touches
- Comment boxes grow as you type.
- Comments use the interface font, even in notes with their own font (a serif cssclass, for example).
- A comment on bold or other formatting at the start of a line no longer breaks that line's formatting.
- Click your own comment text to edit it.
Original features
Comments and storage
- Store comments inside Markdown files without a separate database.
- Add comments to prose, inline code, tables, and selected lines in fenced code blocks.
- Save an empty comment and highlight its selected text.
- Reply (click the card), resolve, reopen, edit, delete, or react to a comment.
- Write Markdown in comments, including links, lists, bold text, and code spans.
- Use the same notes on desktop and mobile.
Views and controls
- Show comment cards in Live Preview, Source view, and Reading view.
- Open long comments in the sidebar.
- Filter the sidebar by open, resolved, or all comments.
- Hide all comments or hide resolved comments.
Comment format
The plugin uses an anchor pair and a comment block:
We should <!--c:k3f9-->ship on Friday<!--/c:k3f9--> regardless of the QA timeline.
<!--co:k3f9 by:kyle at:2026-06-17T10:00:00.000Z status:open quote:"ship on Friday"
kyle (2026-06-17T10:00:00.000Z): I thought we agreed Thursday?
sam (2026-06-17T10:05:00.000Z): Thursday is better for QA.
-->
The <!--c:ID--> and <!--/c:ID--> markers identify the selected text. The matching <!--co:ID ...--> block stores the comment thread.
Markdown renderers hide these HTML comments. Tools that read the source file can find each comment and its selected text.
Deleting a comment removes only its markers and its comment block. The selected text, and the line breaks around it, stay exactly as they were.
Comments on fenced code blocks use the same format. The comment block also stores the selected line range and exact code text.
A comment's color or style override (set from its ⋯ menu) is stored in the same header, for example color:blue style:underline.
A suggested edit (Suggesting mode) is a comment with suggest:insert or suggest:delete in its header. The anchored text is the suggested addition, or the text suggested for deletion:
We ship <!--c:d4k2-->on Friday<!--/c:d4k2--><!--c:a9x1-->on Thursday<!--/c:a9x1--> after QA.
<!--co:d4k2 by:sam at:2026-06-17T10:00:00.000Z status:open suggest:delete quote:"on Friday"
-->
<!--co:a9x1 by:sam at:2026-06-17T10:00:00.000Z status:open suggest:insert replaces:d4k2 quote:"on Thursday"
-->
replaces: links an insertion to the deletion it replaces; the pair shows as one Replace card.
Other Markdown renderers hide the markers and show both the suggested addition and the text suggested for deletion, so nothing is lost before a suggestion is resolved.
An empty comment uses the same markers. Its comment block has no thread lines:
We should <!--c:h7k2-->ship on Friday<!--/c:h7k2--> regardless of the QA timeline.
<!--co:h7k2 by:kyle at:2026-06-17T10:00:00.000Z status:open quote:"ship on Friday"
-->
Install
Notion-style Comments requires Obsidian 1.7.2 or newer. It supports desktop and mobile.
Community plugins
Install it from Obsidian:
- Open Settings → Community plugins.
- Select Browse.
- Search for Notion-style Comments.
- Select Install.
- Select Enable.
BRAT
Use BRAT to install a pre-release build:
- Install BRAT from Community plugins.
- Enable BRAT.
- Run BRAT: Add a beta plugin for testing.
- Enter
jiwooroh/notion-document-comments. - Enable Notion-style Comments in Community plugins.
BRAT installs the latest GitHub release and checks for updates.
Manual install
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Copy the files to
<your-vault>/.obsidian/plugins/notion-style-comments/. - Restart or reload Obsidian.
- Enable Notion-style Comments in Community plugins.
Create the notion-style-comments directory if it does not exist.
Build from source
git clone https://github.com/jiwooroh/notion-document-comments
cd notion-document-comments
npm install
npm run build
Copy or link main.js, manifest.json, and styles.css to <your-vault>/.obsidian/plugins/notion-style-comments/.
Then enable Notion-style Comments in Community plugins.
Use the plugin
Add a comment in an editing view
- Select text or one or more lines in a fenced code block.
- Run Add comment from the command palette or your configured editor menu.
- Write the comment in the margin composer.
- Press Enter to save the comment.
Press Shift+Enter to add a line break. On a phone, use the dialog to save the comment.
Add an empty comment
Notion-style Comments disables empty comments by default.
- Open Settings → Notion-style Comments.
- Enable Allow empty comments.
- Select text and run Add comment.
- Leave the comment field empty.
- Press Enter on desktop or tablet, or select Empty comment on a phone.
The plugin highlights the selected text and shows a comment card. The card shows Empty until you add text.
Select Empty to add the first comment text. Use the card menu to delete the empty comment.
You can also select all the highlighted text and run Add comment again. Write text to add the first comment. Submit the empty field to delete it.
When Allow empty comments is off, an empty field closes without a change. Existing empty comments remain available. You can add text or delete them.
Add the command to the right-click menu
The optional Commander plugin can add commands to the editor menu.
Install Commander
- Install Commander.
- Enable Commander.
Configure the editor menu
- Open Settings → Commander.
- Select Editor Menu.
- Select Add command.
- Search for
Notion-style Comments: Add comment. - Select the command.
- Choose an icon.
The command now appears at the bottom of the editor right-click menu. Select text before you use it.
Add a comment in Reading view
- Select text in the active note.
- Run Add comment in reading view.
- Write the comment.
- Save the comment.
The Reading view command cannot add comments to embedded content.
Manage a comment
Click a card to open its reply field. Each comment has react and resolve buttons, plus a ⋯ menu to change the comment's color or style, or delete it. On iPad, only react and ⋯ are shown and resolve is in the ⋯ menu. Click your own comment text to edit it.
Use the Open comments sidebar command or ribbon icon to show all comments in the active note.
Use Toggle comments to show or hide all cards and highlights. Use Toggle resolved comments to show or hide resolved comments. Use Toggle comments in PDF export to include or leave out comments when exporting to PDF.
Suggest edits
- Click the ✏️ button in the ribbon (or ✏️ Editing in the desktop status bar), or run Toggle suggesting mode. It turns into 💡 while suggesting.
- Edit the note. Additions and deletions become suggestions with their own cards.
- Use ✓ or ✕ on a card to accept or reject one suggestion, or run Accept all suggestions in this note / Reject all suggestions in this note.
Set the author
Open Settings → Notion-style Comments. Set Author to the name that the plugin adds to new comments.
The plugin uses me when the Author setting is empty. Your profile photo and Show my profile apply to comments written under this name.
Settings
| Setting | What it does | Default |
|---|---|---|
| Author | Name added to your new comments | me |
| Editing mode | Editing (change the text) or Suggesting (edits become suggestions); also in the status bar | Editing |
| Profile photo | Small round photo next to your name on your own comments (vault image or link) | None |
| Show comments | Show the comment cards and highlights | On |
| Show my profile | Show your name and photo on your own comments | On |
| Show author names | Show who wrote each comment and reply, on cards and hover previews | On |
| Show resolved comments | Keep resolved comments visible | Off |
| Allow empty comments | Let a comment be saved without text (highlight only) | Off |
| Comment card view | Default, Compact, or PDF style (also in the status bar) | Default |
| Card color indicator | How a card shows its highlight color: line, colored card, dot, or nothing | Line |
| Show comments in PDF export | Print comments in a margin column when exporting to PDF | On |
| Annotation style | Highlight, Underline, or Highlight + underline | Highlight |
| Color scheme | Palette for the 9 colors: Notion or Apple | Notion |
| Highlight color | Theme default or one of the scheme's 9 colors | Theme default |
| Highlight intensity | How bold the highlight color is (0% = the scheme's exact color) | 0% |
| Custom highlight colors | Your own hex for each color, per light/dark theme | The scheme's palette |
Desktop, tablet, and phone behavior
Desktop and tablet (iPad) views show cards in a margin beside the note. The cards align with their selected text and avoid overlaps. On iPad the text always narrows to make room for the column; on desktop a very narrow window hides cards until you hover a highlight.
Phone views show the highlights without a margin. Use the sidebar to read and manage comments there.
Phones use a dialog for new comments. The stored comment format stays the same on all devices.
Agent support
This repository includes an agent skill for the comment format:
skills/document-comments/
The skill explains how to read and edit comments without damaging their markers. It also includes a validation script:
python3 skills/document-comments/scripts/validate_comments.py path/to/file.md
Privacy
The plugin does not use the network, telemetry, or accounts. It stores all comment data in the note.
Known limitations
- In Reading view, cards follow scrolling a moment behind the text (in the editor they move exactly with it).
- Reading view cannot add a comment to text inside an embed.
- Overlapping comments display correctly, but comments on the same words can be difficult to manage.
- The sidebar shows an orphaned comment when no matching selected text remains.
- Live Preview table highlights require browser support for CSS Custom Highlight.
- Suggesting mode tracks typing, deleting, pasting, and dragging text. Changes made by commands or other plugins (for example, a formatting command that rewrites the line) are applied directly.
- Suggesting mode is one setting for all notes, not a per-note mode.
Development
npm install
npm run dev
npm run build
npm run check
npm test
npm run devwatches the source files and rebuildsmain.js.npm run buildchecks types and creates a production bundle.npm run checkchecks formatting, lint rules, types, and tests.npm testruns the test suite.
Release
Update manifest.json, package.json, versions.json, and CHANGELOG.md before a release. The tag must match the version in manifest.json exactly, with no leading v.
Build, then create the GitHub release with the plugin files attached, using that version's CHANGELOG section as the notes:
npm run build
gh release create 0.2.9 --title 0.2.9 --notes "…" main.js manifest.json styles.css
License
Notion-style Comments uses the MIT License. See LICENSE.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.