build: fix mdx issue with escaped pipe character

This commit is contained in:
Folke Lemaitre committed 2023-01-20 20:36:55 +01:00
1 parent 3a1ef4150d
commit 99ee77a03d
1 file changed
+3 -3
+3 -3
View File
@@ -72,9 +72,9 @@ function M.keymaps()
end)
for _, m in ipairs(mappings) do
lines[#lines + 1] = "| ``"
.. m.keys:gsub("|", "\\|"):gsub("`$", "` ")
.. "`` | "
lines[#lines + 1] = "| <code>"
.. m.keys:gsub(">", "&gt;"):gsub("<", "&lt;"):gsub("|", "&vert;")
.. "</code> | "
.. m.desc
.. " | "
.. table.concat(