mirror of
https://gitlab.com/Oreolek/salet.git
synced 2024-07-07 01:04:25 +03:00
No need to wrap the replacer in span
now
This commit is contained in:
parent
b6696ff981
commit
53d9009fc6
|
@ -180,8 +180,7 @@ class SaletRoom
|
||||||
system.view.write(output)
|
system.view.write(output)
|
||||||
replacer: (ref) ->
|
replacer: (ref) ->
|
||||||
content = that.writers[ref].fcall(that, system, action)
|
content = that.writers[ref].fcall(that, system, action)
|
||||||
output = "<span>"+content+"</span>" # <p> tags are usually bad for replacers
|
system.view.replace(content, '#'+ref)
|
||||||
system.view.replace(output, '#'+ref)
|
|
||||||
inserter: (ref) ->
|
inserter: (ref) ->
|
||||||
content = that.writers[ref].fcall(that, system, action)
|
content = that.writers[ref].fcall(that, system, action)
|
||||||
output = markdown(content)
|
output = markdown(content)
|
||||||
|
|
Loading…
Reference in a new issue