mirror of
https://github.com/doocs/md.git
synced 2025-02-10 16:55:49 +08:00
Compare commits
3 Commits
06612b3be4
...
4cfe14b68e
Author | SHA1 | Date | |
---|---|---|---|
|
4cfe14b68e | ||
|
5e2535f143 | ||
|
f55285d93b |
@ -314,7 +314,6 @@ const graceTheme = toMerged(defaultTheme, {
|
|||||||
'border-left': `4px solid var(--md-primary-color)`,
|
'border-left': `4px solid var(--md-primary-color)`,
|
||||||
'border-radius': `6px`,
|
'border-radius': `6px`,
|
||||||
'color': `rgba(0,0,0,0.6)`,
|
'color': `rgba(0,0,0,0.6)`,
|
||||||
'background': `linear-gradient(to right, #f7f7f7, #ffffff)`,
|
|
||||||
'box-shadow': `0 4px 6px rgba(0,0,0,0.05)`,
|
'box-shadow': `0 4px 6px rgba(0,0,0,0.05)`,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -323,12 +322,6 @@ const graceTheme = toMerged(defaultTheme, {
|
|||||||
|
|
||||||
'markdown-alert': {
|
'markdown-alert': {
|
||||||
'font-style': `italic`,
|
'font-style': `italic`,
|
||||||
'padding': `1em 1em 1em 2em`,
|
|
||||||
'border-left': `4px solid var(--md-primary-color)`,
|
|
||||||
'border-radius': `6px`,
|
|
||||||
'color': `rgba(0,0,0,0.6)`,
|
|
||||||
'background': `linear-gradient(to right, #f7f7f7, #ffffff)`,
|
|
||||||
'box-shadow': `0 4px 6px rgba(0,0,0,0.05)`,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'code_pre': {
|
'code_pre': {
|
||||||
|
@ -27,7 +27,7 @@ export default function markedAlert(options: AlertOptions = {}): MarkedExtension
|
|||||||
title = ucfirst(variantType),
|
title = ucfirst(variantType),
|
||||||
titleClassName = `${className}-title`,
|
titleClassName = `${className}-title`,
|
||||||
} = matchedVariant
|
} = matchedVariant
|
||||||
const typeRegexp = new RegExp(createSyntaxPattern(variantType))
|
const typeRegexp = new RegExp(createSyntaxPattern(variantType), `i`)
|
||||||
|
|
||||||
Object.assign(token, {
|
Object.assign(token, {
|
||||||
type: `alert`,
|
type: `alert`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user