Skip to content

Commit

Permalink
fix: Fixed label text detection
Browse files Browse the repository at this point in the history
Ref: #177
  • Loading branch information
OXY2DEV committed Jan 10, 2025
1 parent a0f3961 commit 695ab81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/markview/renderers/typst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ typst.ns = vim.api.nvim_create_namespace("markview/typst");
typst.code_block = function (buffer, item)
---+${func, Renders Code blocks}

---@type typst.code_blocks?
local config = spec.get({ "typst", "code_blocks" }, { fallback = nil, eval_args = { buffer, item } });
local range = item.range;

Expand Down Expand Up @@ -346,7 +345,7 @@ typst.label = function (buffer, item)
---@type config.inline_generic?
local config = utils.match(
main_config,
string.sub(item.text[1], 1, #item.text[1] - 1),
item.text[1]:gsub("^%@", ""),
{
eval_args = { buffer, item }
}
Expand Down

0 comments on commit 695ab81

Please sign in to comment.