mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
support server side js and arbitrary assets
proper chaining for emoji so other hooks can be called
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
// Regiest a before cook event
|
||||
Discourse.Markdown.on("beforeCook", function(event) {
|
||||
var text = event.detail;
|
||||
var text = this.textResult || event.detail;
|
||||
var opts = event.opts;
|
||||
|
||||
this.textResult = text.replace(/\:([a-z\_\+\-0-9]+)\:/g, function (m1, m2) {
|
||||
|
||||
Reference in New Issue
Block a user