@polymer/marked-element
Advanced tools
Comparing version 3.0.0-pre.6 to 3.0.0-pre.7
@@ -1,3 +0,5 @@ | ||
import '../polymer/polymer.js'; | ||
import { html } from '../polymer/polymer.js'; | ||
import './marked-import.js'; | ||
import { Polymer } from '../polymer/lib/legacy/polymer-fn.js'; | ||
import { dom } from '../polymer/lib/legacy/polymer.dom.js'; | ||
/** | ||
@@ -94,3 +96,3 @@ @license | ||
Polymer({ | ||
_template: Polymer.html` | ||
_template: html` | ||
<style> | ||
@@ -209,3 +211,3 @@ :host { | ||
// "text/markdown". Script elements beyond the first are ignored. | ||
this._markdownElement = Polymer.dom(this).querySelector('[type="text/markdown"]'); | ||
this._markdownElement = dom(this).querySelector('[type="text/markdown"]'); | ||
if (!this._markdownElement) { | ||
@@ -258,3 +260,3 @@ return; | ||
get outputElement () { | ||
var child = Polymer.dom(this).queryDistributedElements('[slot="markdown-html"]')[0]; | ||
var child = dom(this).queryDistributedElements('[slot="markdown-html"]')[0]; | ||
return child || this.$.content; | ||
@@ -286,3 +288,3 @@ }, | ||
if (!this.markdown) { | ||
Polymer.dom(this._outputElement).innerHTML = ''; | ||
dom(this._outputElement).innerHTML = ''; | ||
return; | ||
@@ -307,3 +309,3 @@ } | ||
Polymer.dom(this._outputElement).innerHTML = marked(this.markdown, opts, this.callback); | ||
dom(this._outputElement).innerHTML = marked(this.markdown, opts, this.callback); | ||
this.fire('marked-render-complete', {}, {composed: true}); | ||
@@ -310,0 +312,0 @@ }, |
{ | ||
"name": "@polymer/marked-element", | ||
"flat": true, | ||
"version": "3.0.0-pre.6", | ||
"version": "3.0.0-pre.7", | ||
"description": "Element wrapper for the marked library", | ||
@@ -24,8 +24,8 @@ "contributors": [ | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.6" | ||
"@polymer/polymer": "^3.0.0-pre.7" | ||
}, | ||
"devDependencies": { | ||
"@polymer/paper-styles": "^3.0.0-pre.6", | ||
"@polymer/iron-component-page": "^3.0.0-pre.6", | ||
"@polymer/test-fixture": "^3.0.0-pre.6", | ||
"@polymer/paper-styles": "^3.0.0-pre.7", | ||
"@polymer/iron-component-page": "^3.0.0-pre.7", | ||
"@polymer/test-fixture": "^3.0.0-pre.7", | ||
"wct-browser-legacy": "0.0.1-pre.11", | ||
@@ -32,0 +32,0 @@ "@webcomponents/webcomponentsjs": "^1.0.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48300
21
424