From de48a4528aad5c7b50cf4b4ec1b419762a95934d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 3 Dec 2022 10:22:19 +0100 Subject: [PATCH] feat: added support for
{lang} code blocks used in the
 Neovim codebase

---
 lua/noice/text/markdown.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lua/noice/text/markdown.lua b/lua/noice/text/markdown.lua
index 2b279e84..2bc7a42d 100644
--- a/lua/noice/text/markdown.lua
+++ b/lua/noice/text/markdown.lua
@@ -57,6 +57,8 @@ end
 
 ---@param text string
 function M.parse(text)
+  ---@type string
+  text = text:gsub("", "```")
   text = M.html_entities(text)
 
   ---@type Markdown