1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-04 07:45:03 +03:00

No need to wrap the replacer in span now

This commit is contained in:
Alexander Yakovlev 2016-02-01 17:10:34 +07:00
parent b6696ff981
commit 53d9009fc6

View file

@ -180,8 +180,7 @@ class SaletRoom
system.view.write(output)
replacer: (ref) ->
content = that.writers[ref].fcall(that, system, action)
output = "<span>"+content+"</span>" # <p> tags are usually bad for replacers
system.view.replace(output, '#'+ref)
system.view.replace(content, '#'+ref)
inserter: (ref) ->
content = that.writers[ref].fcall(that, system, action)
output = markdown(content)