vue-code-highlight
Advanced tools
Comparing version 0.7.6 to 0.7.8
@@ -788,5 +788,7 @@ /* eslint-disable */ | ||
beforeUpdate: function beforeUpdate() { | ||
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, ''); | ||
this.$el.querySelector('code').textContent = newText; | ||
Prism.highlightAllUnder(this.$refs.codeBlock); | ||
if(this.$slots.default[0].text){ | ||
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, ''); | ||
this.$el.querySelector('code').textContent = newText; | ||
Prism.highlightAllUnder(this.$refs.codeBlock); | ||
} | ||
}, | ||
@@ -793,0 +795,0 @@ }; |
@@ -791,5 +791,7 @@ var vueCodeHighlight = (function (exports) { | ||
beforeUpdate: function beforeUpdate() { | ||
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, ''); | ||
this.$el.querySelector('code').textContent = newText; | ||
Prism.highlightAllUnder(this.$refs.codeBlock); | ||
if(this.$slots.default[0].text){ | ||
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, ''); | ||
this.$el.querySelector('code').textContent = newText; | ||
Prism.highlightAllUnder(this.$refs.codeBlock); | ||
} | ||
}, | ||
@@ -796,0 +798,0 @@ }; |
{ | ||
"name": "vue-code-highlight", | ||
"version": "0.7.6", | ||
"version": "0.7.8", | ||
"author": "Jan Bílek", | ||
@@ -5,0 +5,0 @@ "email": "honza@elision.design", |
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
786814
3695