Compare commits

..

1 Commits

2 changed files with 8 additions and 1 deletions

View File

@ -314,6 +314,7 @@ 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)`,
}, },
@ -322,6 +323,12 @@ 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': {

View File

@ -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), `i`) const typeRegexp = new RegExp(createSyntaxPattern(variantType))
Object.assign(token, { Object.assign(token, {
type: `alert`, type: `alert`,