From 38fb652d0a95780d20a551a6ec44b01226476c99 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 16 Apr 2023 12:06:39 +0200 Subject: [PATCH] fix(markdown): replace ``. Fixes #424 --- lua/noice/text/markdown.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/noice/text/markdown.lua b/lua/noice/text/markdown.lua index cef6b13..b14a2c0 100644 --- a/lua/noice/text/markdown.lua +++ b/lua/noice/text/markdown.lua @@ -58,12 +58,13 @@ function M.conceal_escape_characters(buf, ns, range) end end +-- This is a test **booo** ---@param text string ---@param opts? MarkdownFormatOptions function M.parse(text, opts) opts = opts or {} ---@type string - text = text:gsub("", "```"):gsub("\r", "") + text = text:gsub("", "```"):gsub("\r", ""):gsub("", "`") text = M.html_entities(text) ---@type Markdown