diff --git a/src/node/markdown/plugins/githubAlerts.ts b/src/node/markdown/plugins/githubAlerts.ts index 73efadf9..238cf98f 100644 --- a/src/node/markdown/plugins/githubAlerts.ts +++ b/src/node/markdown/plugins/githubAlerts.ts @@ -15,7 +15,8 @@ export const gitHubAlertsPlugin = ( danger: options?.dangerLabel || 'DANGER' } as Record - const RE = /^\[\!(TIP|NOTE|INFO|IMPORTANT|WARNING|CAUTION|DANGER)\]([^\n\r]*)/i + const RE = + /^\[\!(TIP|NOTE|INFO|IMPORTANT|WARNING|CAUTION|DANGER)\]([^\n\r]*)/i md.core.ruler.after('block', 'github-alerts', (state) => { const tokens = state.tokens