mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-12 02:42:16 -05:00
Pass trough entity references into markdown
In order to allow e.g. &xepnnnn; references in text.
This commit is contained in:
parent
0ccc34d1cf
commit
e7e1fca3bf
@ -139,6 +139,7 @@ end
|
|||||||
-- Comments indicate the types of other variables.
|
-- Comments indicate the types of other variables.
|
||||||
|
|
||||||
function Str(s)
|
function Str(s)
|
||||||
|
if string.match(s, "^&[%w%-.]+;$") then return s; end
|
||||||
return escape(s)
|
return escape(s)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user