diff --git a/lua/symbols-outline/markdown.lua b/lua/symbols-outline/markdown.lua index c2b77d9..8503d30 100644 --- a/lua/symbols-outline/markdown.lua +++ b/lua/symbols-outline/markdown.lua @@ -21,10 +21,10 @@ function M.handle_markdown() local header, title = string.match(value, '^(#+)%s+(.*)$') if not header and next_value and not is_emtpy_line then - if string.match(next_value, '^===+%s*$') then + if string.match(next_value, '^=+%s*$') then header = '#' title = value - elseif string.match(next_value, '^---+%s*$') then + elseif string.match(next_value, '^-+%s*$') then header = '##' title = value end