Comments¶
To leave feedback for other users collaborating on a document without changing the document text itself, you can leave comments.
Adding a Comment¶

Figure 7 Add comment¶
To add a comment, hover your cursor over the editor gutter (to the left of line numbers) on the line you want to comment on. This should make the comment icon appear. Click on the icon to create a comment.
Toggling Comments¶
Clicking on the comment icon can be used to hide/show a comment. By default, when you load a document, all preexisting comments will be expanded. All new comments will be expanded as well.
Collaborating on a Comment¶

Figure 8 Multiple comment authors¶
Comments can span multiple lines, and multiple users can participate in writing a single comment. MyST Editor enables comment discussions through a concept of line authorship. Every line of a comment is highlighted in the color of the line’s author. When you hover over a line, you can also see its author’s avatar to the left of the comment. If you want to participate in a discussion, it is recommended to add a new line (for example, at the end of a comment you want to reply to).
Moving Comments¶
As new lines are added above a line with a comment, the comment will move with its original line.
Pressing enter
at the beginning of a commented line will also move it downwards.
Warning
Pressing backspace at the beginning of a commented line will delete the comment.
You can also move comments via drag and drop. To move a comment to another line, drag its icon to the left of the desired line’s number.
Tip
Moving a comment onto another comment will append its contents.
Deleting Comments¶
Warning
Deleting a comment will delete input from all users, not just your text.
In order to delete a comment, you can:
Press backspace at the beginning of a commented line
Delete/cut a selection containing the commented line
Hover over the comment icon and press the delete button
Press the delete button in the resolved comments view (details in the Resolving Comments section).
Resolving Comments¶
MyST Editor offers a comment resolution functionality.
To resolve a comment, hover over its icon and click the resolve button.
This will move it to the Resolved Comments
view in the topbar where it will be accessible.
Click the Resolved Comments
button to see it.
Such comments are annotated with the following information:
Comment author
User who resolved the comment
Comment resolution time
Origin text line
You can access more options by hovering over the ...
button in the top right of a comment.

Figure 9 Resolved comment¶
Restoring Comments¶
After a comment is resolved, it will keep track of the line it was attached to.
Should the text in the line or its line number change, it will be reflected in this view.
You can bring back a comment to the editor by clicking the restore button in the ...
menu.
In case there is another comment in a resolved comment’s line, the restore button will read RESTORE AND MERGE
, indicating that the original line is occupied.
When you press this button, the resolved comment will be added to the bottom of the newer comment.

Figure 10 Merging comments¶
Orphaned Comments¶

Figure 11 Orphaned comment¶
If a resolved comment does not have a line number next to it or the text of the commented line is crossed out, the line the comment was assigned to has been deleted.
Such a comment is considered orphaned
.
If you try to restore such a comment, it will be added to the last line of the document.
From there you can move it wherever you want.
Warning
Applying a document template to a document with resolved comments, will make all of them orphaned
.
Suggestions¶

Figure 12 Change suggestion¶
You can suggest changes to a line in a comment. To do so, you can use the following syntax within the comment:
|<text to replace> -> <replacement>|
eg. |is -> was|
This will cross out all the occurrences of such text within the line and place a suggested replacement next to them in the document. The suggestion will be colored after the color of the comment line it is in. Clicking the colored suggestion will apply it, which can be undone/redone. This will only apply to one occurrence of the suggestion.
Note
Suggestions only match against whole words/symbols. If you want to match a certain occurrence of a word, try adding more context (more words/symbols around it).
You can also suggest deleting a portion of text. To do this, simply leave the replacement after ->
blank:

Figure 13 Removal suggestion¶
Tip
If you don’t specify a replacement, the text between ||
will be highlighted.
This can be useful to bring attention to a section of a line.
eg. |something| - this will highlight the word something
To easily add suggestions, you can select some text from one line and click the button that appears near your selection:

Figure 14 Add suggestion button¶