Closed tlyau62 closed 3 years ago
After some experiments, the problem should be related to vue-live, not this plugin nor vue-prism-editor.
A very easy workaround is to import the prism/core
at the beginning of the enhanceApp.js.
import "prismjs/components/prism-core";
export default ...
@tlyau62 Big thanks, it fix ts
highlight in code, i think it fix all other languages except 'markup', 'css', 'javascript'
(they preloaded)
Before vue-live's component is loaded, the prism syntax highlight works fine in other places at the same markdown.
But, it fails after the vue-live component is loaded.