1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-11 10:22:19 -05:00

Pass trough entity references into markdown

In order to allow e.g. &xepnnnn; references in text.
This commit is contained in:
Kim Alvefur 2021-03-03 15:43:00 +01:00
parent 0ccc34d1cf
commit e7e1fca3bf

View File

@ -139,6 +139,7 @@ end
-- Comments indicate the types of other variables.
function Str(s)
if string.match(s, "^&[%w%-.]+;$") then return s; end
return escape(s)
end