mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-25 00:58:52 -05:00
Merge pull request #1048 from Zash/markdownspacefix
xep2md: fix spaces around links or spans
This commit is contained in:
commit
812ab80047
@ -225,7 +225,7 @@ end
|
||||
|
||||
-- Oh god oh god we're all gonna die!
|
||||
local function escape_text(event)
|
||||
event.text = event.text:gsub("['&<>\"]", "\\%1"):gsub("^%s+", ""):gsub("%s+$", ""):gsub("%s+", " ");
|
||||
event.text = event.text:gsub("['&<>\"]", "\\%1");
|
||||
end
|
||||
events.add_handler("#text", escape_text, 1000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user