mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Please makes sure these boxes are checked before submitting your PR, thank you! * [x] Make sure you are merging your commits to `master` branch. * [x] Add some descriptions and refer relative issues for you PR. * [x] DO NOT include files inside `lib` directory. A temporary solution, I will refactor this part of the code in the next major version.
This commit is contained in:
parent
ab19b13210
commit
fcd1087c16
@ -198,6 +198,17 @@ export function renderMixin(proto) {
|
||||
html = html.replace(m[0], '')
|
||||
}
|
||||
|
||||
// XXX: A Workaround
|
||||
html = html
|
||||
.split('\n')
|
||||
.map(part => {
|
||||
if (/^<a/.test(part)) {
|
||||
return part.replace('<a', '<a data-button')
|
||||
}
|
||||
return part
|
||||
})
|
||||
.join('\n')
|
||||
|
||||
this._renderTo('.cover-main', html)
|
||||
sticky()
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ section.cover
|
||||
max-width 500px
|
||||
padding 0
|
||||
|
||||
.cover-main > p:last-child a
|
||||
.cover-main > a[data-button]
|
||||
border-color var(--theme-color, $color-primary)
|
||||
border-radius 2rem
|
||||
border-style solid
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user