Skip to content

Commit

Permalink
Merge pull request #166 from gustavkrist/main
Browse files Browse the repository at this point in the history
fix: allow single space between > and callout bracket
  • Loading branch information
OXY2DEV authored Oct 6, 2024
2 parents 42b57e8 + 9e50dbb commit fb10bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/markview/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -842,13 +842,13 @@ parser.md_inline = function (buffer, TStree, from, to)
col_start = col_start,
col_end = col_end,
});
elseif before:match("%>$") then
elseif before:match("%> ?$") then
local title = string.match(line or "", "%b[](.*)$")

for _, extmark in ipairs(parser.parsed_content) do
if extmark.type == "block_quote"
and extmark.row_start == row_start
and extmark.col_start == col_start - 1
and extmark.col_start == col_start - before:match("%> ?$"):len()
then
extmark.callout = string.match(capture_text, "%[!([^%]]+)%]");
extmark.title = title;
Expand Down

0 comments on commit fb10bcb

Please sign in to comment.