Open klinux opened 6 years ago
Seems like the highlight feature was removed (https://github.com/miaolz123/vue-markdown/commit/3ec711e0eae9828b53ca08e241647bc460eefc7b)
But you can use Prismjs instead, see the examples.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/themes/prism.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js"></script>
If I create a data bind with code like:
And in template I make
This works like a charm.
But if I use a external content for my markdown, and use a method to load the data bind, this not work.
The highlight doesn't work.
Someone has any idea about that?
Thank you.