Skip to content

Commit

Permalink
Adds new node type 'highlight_without_notification'
Browse files Browse the repository at this point in the history
  • Loading branch information
M-ZubairAhmed authored Nov 20, 2023
2 parents 4ab77bc + fce3e37 commit 7a86080
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The parser returns a Node. The following public properties are defined
`html_block`, `thematic_break`.
- (**Mattermost**) This fork also adds `at_mention`,
`channel_link`, `emoji`, `hashtag`, `latex_inline`,
`mention_highlight`, `search_highlight`, `table`, `table_row`,
`mention_highlight`, `highlight_without_notification`, `search_highlight`, `table`, `table_row`,
`table_cell`, `edited_indicator`, `checkbox`.
- `firstChild` (read-only): a Node or null.
- `lastChild` (read-only): a Node or null.
Expand Down
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type NodeType =
'text' |'softbreak' | 'linebreak' | 'emph' | 'strong' | 'html_inline' | 'link' | 'image' | 'code' | 'document' | 'paragraph' |
'block_quote' | 'item' | 'list' | 'heading' | 'code_block' | 'html_block' | 'thematic_break' | 'custom_inline' | 'custom_block' |
'at_mention' | 'channel_link' | 'emoji' | 'hashtag' | 'latex_inline' | 'table' | 'table_row' | 'table_cell' | 'mention_highlight' |
'search_highlight' | 'checkbox' | 'edited_indicator';
'highlight_without_notification' | 'search_highlight' | 'checkbox' | 'edited_indicator';

export class Node {
constructor(nodeType: NodeType, sourcepos?: Position);
Expand Down
1 change: 1 addition & 0 deletions lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function isContainer(node) {
case "image":
case "latex_inline":
case "mention_highlight":
case "highlight_without_notification":
case "search_highlight":
case "custom_inline":
case "custom_block":
Expand Down

0 comments on commit 7a86080

Please sign in to comment.