textarea-markdown
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -33,3 +33,4 @@ 'use strict'; | ||
csrfToken: null, | ||
placeholder: 'uploading %filename ...' | ||
placeholder: 'uploading %filename ...', | ||
plugins: [] | ||
}, options); | ||
@@ -101,2 +102,3 @@ this.previews = []; | ||
var plugins = this.plugins; | ||
if (this.previews) { | ||
@@ -110,2 +112,6 @@ this.previews.forEach(function (preview) { | ||
}); | ||
plugins.forEach(function (plugin) { | ||
return md.use(plugin); | ||
}); | ||
preview.innerHTML = md.render(_this3.textarea.value); | ||
@@ -112,0 +118,0 @@ }); |
{ | ||
"name": "textarea-markdown", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Make textarea a markdown editor.", | ||
@@ -5,0 +5,0 @@ "main": "lib/textarea-markdown.js", |
@@ -12,3 +12,4 @@ import 'whatwg-fetch' | ||
csrfToken: null, | ||
placeholder: 'uploading %filename ...' | ||
placeholder: 'uploading %filename ...', | ||
plugins: [] | ||
}, options) | ||
@@ -61,2 +62,3 @@ this.previews = []; | ||
applyPreview() { | ||
const plugins = this.plugins | ||
if (this.previews) { | ||
@@ -70,2 +72,4 @@ this.previews.forEach((preview) => { | ||
}); | ||
plugins.forEach((plugin) => md.use(plugin)) | ||
preview.innerHTML = md.render(this.textarea.value); | ||
@@ -72,0 +76,0 @@ }) |
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
15214
359