Comments (2)
- Markdown 本身并不具有样式。你可以在你的项目中任意添加样式。
- 如果你是想给代码块加上高亮,那你需要在你的项目中引入任意一个 highlightjs 的样式。具体请参考 https://github.com/wxsms/vue-md-loader/tree/master/example 这个示例项目。
如:
<template>
<div id="app">
<markdown></markdown>
</div>
</template>
<script>
import Markdown from './markdown.md'
import 'highlight.js/styles/github-gist.css'
export default {
components: {Markdown}
}
</script>
from vue-md-loader.
好的,了解了,非常感谢
from vue-md-loader.
Related Issues (12)
- I deal with the files in markdown format exactly according to the webpack settings of UIV,Markdown files can really be previewed, but the code has not been highlighted. Is I missing any configuration? Thanks~ HOT 2
- Dependency Dashboard
- Handle loading state HOT 1
- plugin.apply is not a function HOT 13
- can i generate source-map? HOT 1
- Vue 3 Support HOT 6
- Module build failed after update to 2.0.1 HOT 3
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed. HOT 3
- 启动不起来 HOT 2
- Syntax Error: TypeError: this.getOptions is not a function HOT 1
- Action Required: Fix Renovate Configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-md-loader.