Closed Navyroot closed 4 years ago
The markdown style does not come with vue-showdown
nor showdown
. You need to import it yourself.
The style of demo page comes from vuepress.
Try github-markdown-css, and add .markdown-body
on your vue-showdown component.
Thx 🙏 , it's work .
How about Syntax highlighting ? Like this :
var foo = function(bar) {
return bar++
}
console.log(foo(5))
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
<ul>
<li v-for="todo in todos" :key="todo.id">
{{ todo.text }}
</li>
</ul>
It's out of scope of this vue component.
You can try something like highlight.js
Yes,thank I will try 😃
I have the same problem, how did you find a solution?
index.js
Vue template code :
Markdown script :
Result of my test page:
Result demo page :