Skip to content

Commit

Permalink
feat: added support for <pre>{lang} code blocks used in the Neovim co…
Browse files Browse the repository at this point in the history
…debase
  • Loading branch information
folke committed Dec 3, 2022
1 parent ed8f8b8 commit de48a45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/noice/text/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ end

---@param text string
function M.parse(text)
---@type string
text = text:gsub("</?pre>", "```")
text = M.html_entities(text)

---@type Markdown
Expand Down

0 comments on commit de48a45

Please sign in to comment.