Skip to content

Commit 3d8f688

Browse files
committed
fix(renderers, markdown, tables): Fixed handling of :text: for non-emoji
Closes #505
1 parent fbe5ec7 commit 3d8f688

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lua/markview/renderers/markdown/tostring.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,11 @@ md_str.emoji = function (match)
255255
local symbols = require("markview.symbols");
256256
if symbols.shorthands and symbols.shorthands[removed] then
257257
return symbols.shorthands[removed];
258+
else
259+
-- fix(#505): Return original text if it's not a shorthand
260+
return match;
258261
end
259262

260-
return removed;
261-
262263
---|fE
263264
end
264265

0 commit comments

Comments
 (0)