mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
5973359f39
commit
4c2a7ed02d
23 changed files with 228 additions and 129 deletions
|
@ -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');
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue