Skip to content

Commit

Permalink
fix(markdown): strip "\r" chars
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 15, 2023
1 parent a132d42 commit 4d2801b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/text/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ end
function M.parse(text, opts)
opts = opts or {}
---@type string
text = text:gsub("</?pre>", "```")
text = text:gsub("</?pre>", "```"):gsub("\r", "")
text = M.html_entities(text)

---@type Markdown
Expand Down

0 comments on commit 4d2801b

Please sign in to comment.