Account for markdown styling in mentions offset calculation.
This also means that we can support smart punctuation. Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
763b13e700
commit
812ff9a97d
7 changed files with 207 additions and 96 deletions
|
@ -179,7 +179,7 @@ impl MessageEditor {
|
|||
editor.clear_highlights::<Self>(cx);
|
||||
editor.highlight_text::<Self>(
|
||||
anchor_ranges,
|
||||
theme::current(cx).chat_panel.mention_highlight,
|
||||
theme::current(cx).chat_panel.rich_text.mention_highlight,
|
||||
cx,
|
||||
)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue