mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
REFACTOR: Migrate markdown functionality in ES6
This commit is contained in:
parent
bc25d9a7a0
commit
a546395397
146 changed files with 3259 additions and 5675 deletions
|
@ -1,5 +1,6 @@
|
|||
/* global ace:true */
|
||||
import loadScript from 'discourse/lib/load-script';
|
||||
import escapeExpression from 'discourse/lib/utilities';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
mode: 'css',
|
||||
|
@ -16,7 +17,7 @@ export default Ember.Component.extend({
|
|||
render(buffer) {
|
||||
buffer.push("<div class='ace'>");
|
||||
if (this.get('content')) {
|
||||
buffer.push(Discourse.Utilities.escapeExpression(this.get('content')));
|
||||
buffer.push(escapeExpression(this.get('content')));
|
||||
}
|
||||
buffer.push("</div>");
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue