no message

Former-commit-id: 51fd4c40e3d45c1d426d90842ba58aea2810aa7c
Former-commit-id: 858c106a99c795aa2b1eb3f6d4efeadfb46a2068
Former-commit-id: 305e2fb9469fa614728642ab1b89ad5715d3bc37
This commit is contained in:
李杨
2018-02-24 09:38:42 +08:00
parent a10a08aafa
commit ce0b0812d8
5 changed files with 23 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ export default {
},
methods: {
async getReadme () {
const data = await this.$axios.get('/static/markdownFiles/demo/baseMarkdowmFile.md')
const data = await this.$axios.get('/static/markdownFiles/demo/base.md')
return data
}
}

View File

@@ -41,7 +41,7 @@ export default {
},
methods: {
async getReadme () {
const data = await this.$axios.get('/static/markdownFiles/demo/baseMarkdowmFile.md')
const data = await this.$axios.get('/static/markdownFiles/demo/base.md')
return data
}
}

View File

@@ -23,7 +23,6 @@
<script>
import marked from 'marked'
import highlight from 'highlight.js'
export default {
data () {
return {
@@ -33,15 +32,19 @@ export default {
},
async mounted () {
this.mdSource = await this.getReadme(this.url)
const renderer = new marked.Renderer()
renderer.blockquote = (quote) => {
// 链接: https://pan.baidu.com/s/1pMNNDZP 密码: vc95
// https://pan.baidu.com/s/1c3gQGxE
return `<blockquote>${quote}</blockquote>`
}
this.markedHTML = marked(this.mdSource, {
highlight: (code) => {
return highlight.highlightAuto(code).value
}
renderer
})
},
methods: {
async getReadme () {
const data = await this.$axios.get('/static/markdownFiles/demo/baseMarkdowmFile.md')
const data = await this.$axios.get('/static/markdownFiles/demo/baiduyun.md')
return data
}
}

View File

@@ -0,0 +1,13 @@
[https://github.com/FairyEver](https://github.com/FairyEver)
一般引用
> 引用文字
百度云分享链接
> https://pan.baidu.com/s/1c3gQGxE
百度云私密分享链接
> 链接: https://pan.baidu.com/s/1pMNNDZP 密码: vc95