Changed order of filters to be applied to story text to make autolinking more reliable
This commit is contained in:
parent
1812a8bc98
commit
01ec0ba1e4
1 changed files with 3 additions and 2 deletions
|
@ -592,10 +592,11 @@ Story.prototype.format_filter = function(value, param, mode) {
|
|||
break;
|
||||
|
||||
default:
|
||||
value = this.macro_filter(format(value), param);
|
||||
value = this.url_filter(value, param);
|
||||
var parts = value.split(/(?:\n\n|\r\r|\r\n\r\n)/);
|
||||
value = '<p>' + parts.join('</p><p>') + '</p>';
|
||||
value = this.macro_filter(format(value), param);
|
||||
return this.url_filter(value, param);
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return String.EMTPY;
|
||||
|
|
Loading…
Add table
Reference in a new issue