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
1 changed files with 1 additions and 0 deletions

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