1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-02-04 13:19:10 -05:00
parent 5973359f39
commit 4c2a7ed02d
23 changed files with 228 additions and 129 deletions

View file

@ -158,7 +158,7 @@ as you would a regular DOM element:
* Unindents the markdown source that will be rendered.
*/
unindent: function(text) {
this._unindent(text);
return this._unindent(text);
},
get outputElement () {
@ -171,6 +171,14 @@ as you would a regular DOM element:
return this.$.content;
},
/**
* The `marked-render-complete` event is fired once Markdown to HTML
* conversion has finished, and the DOM has been populated via the resulting
* HTML.
*
* @event marked-render-complete
*/
/**
* Renders `markdown` into this element's DOM.
*
@ -193,6 +201,7 @@ as you would a regular DOM element:
smartypants: this.smartypants
};
Polymer.dom(this._outputElement).innerHTML = marked(this.markdown, opts);
this.fire('marked-render-complete');
},
_highlight: function(code, lang) {
@ -212,7 +221,7 @@ as you would a regular DOM element:
}, null);
return lines.map(function(l) { return l.substr(indent); }).join('\n');
},
}
});