Skip to content

Commit

Permalink
update counts
Browse files Browse the repository at this point in the history
  • Loading branch information
aquilesg committed Jul 30, 2024
1 parent d4cf161 commit 3e9d89a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/obsidian/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ local function update_extmarks(bufnr, ns_id, ui_opts)
elseif not inside_code_block then
-- Mark that we have a highlight group now
if string.match(line, search.Patterns.Callout) then
local count = #(line:match "^(>+)" or ">")
local arrows, _ = line:gsub(">", ""):find "%[!%]"
local count = arrows - 1
local highlight = get_callout_hl_group(line, ui_opts)
callout_block_highlights[count] = highlight
log.debug("Inserting callout highlight: " .. highlight .. " into idx: " .. count)
Expand Down

0 comments on commit 3e9d89a

Please sign in to comment.