support server side js and arbitrary assets

proper chaining for emoji so other hooks can be called
This commit is contained in:
Sam
2013-08-01 17:35:31 +10:00
parent d15083d3ee
commit 1132c10074
3 changed files with 19 additions and 3 deletions

View File

@@ -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) {