build: fix mdx issue with escaped pipe character

This commit is contained in:
Folke Lemaitre 2023-01-20 20:36:55 +01:00
parent 3a1ef4150d
commit 99ee77a03d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

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(