Skip to content

Commit

Permalink
Add support for short mentions from ExpensiMark (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicu authored Jan 8, 2025
1 parent 07b95bd commit fef56a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type MarkdownType =
| 'emoji'
| 'mention-here'
| 'mention-user'
| 'mention-short'
| 'mention-report'
| 'link'
| 'code'
Expand Down
2 changes: 2 additions & 0 deletions src/parseExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ function parseTreeToTextAndRanges(tree: StackItem): [string, MarkdownRange[]] {
addChildrenWithStyle(node, 'mention-here');
} else if (node.tag === '<mention-user>') {
addChildrenWithStyle(node, 'mention-user');
} else if (node.tag === '<mention-short>') {
addChildrenWithStyle(node, 'mention-short');
} else if (node.tag === '<mention-report>') {
addChildrenWithStyle(node, 'mention-report');
} else if (node.tag === '<blockquote>') {
Expand Down

0 comments on commit fef56a0

Please sign in to comment.