From 71c01ec30c8e0c74394b6e6cd9e6a619bb6bded9 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 21 Jan 2024 16:48:09 +0100 Subject: [PATCH] chore: format --- src/node/markdown/plugins/githubAlerts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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