no message
Former-commit-id: 51fd4c40e3d45c1d426d90842ba58aea2810aa7c Former-commit-id: 858c106a99c795aa2b1eb3f6d4efeadfb46a2068 Former-commit-id: 305e2fb9469fa614728642ab1b89ad5715d3bc37
This commit is contained in:
@@ -36,7 +36,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getReadme () {
|
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
|
return data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getReadme () {
|
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
|
return data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import marked from 'marked'
|
import marked from 'marked'
|
||||||
import highlight from 'highlight.js'
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -33,15 +32,19 @@ export default {
|
|||||||
},
|
},
|
||||||
async mounted () {
|
async mounted () {
|
||||||
this.mdSource = await this.getReadme(this.url)
|
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, {
|
this.markedHTML = marked(this.mdSource, {
|
||||||
highlight: (code) => {
|
renderer
|
||||||
return highlight.highlightAuto(code).value
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getReadme () {
|
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
|
return data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
static/markdownFiles/demo/baiduyun.md
Normal file
13
static/markdownFiles/demo/baiduyun.md
Normal 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
|
||||||
Reference in New Issue
Block a user