Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/markview/renderers/latex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ latex.subscript = function (buffer, item)
end_col = range.col_end,
conceal = "",
});
elseif symbols.subscripts[item.text[1]:sub(3)] then
elseif symbols.subscripts[item.text[1]:sub(2)] then
if item.preview then
table.insert(latex.cache.style_regions.subscripts, item);
end
Expand Down Expand Up @@ -566,7 +566,7 @@ latex.superscript = function (buffer, item)
end_col = range.col_end,
conceal = "",
});
elseif symbols.superscripts[item.text[1]:sub(3)] then
elseif symbols.superscripts[item.text[1]:sub(2)] then
if item.preview then
table.insert(latex.cache.style_regions.superscripts, item);
end
Expand Down