Skip to content

Commit

Permalink
fix: flip matchCaseSensitive to false, align with GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 21, 2024
1 parent 9e94643 commit 34f264d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface MarkdownItGitHubAlertsOptions {

/**
* If markers case sensitively on matching.
* @default true
* @default false
*/
matchCaseSensitive?: boolean

Expand Down Expand Up @@ -49,7 +49,7 @@ const MarkdownItGitHubAlerts: MarkdownIt.PluginWithOptions<MarkdownItGitHubAlert
const {
markers = ['TIP', 'NOTE', 'IMPORTANT', 'WARNING', 'CAUTION'],
icons = DEFAULT_GITHUB_ICONS,
matchCaseSensitive = true,
matchCaseSensitive = false,
titles = {},
classPrefix = 'markdown-alert',
} = options
Expand Down

0 comments on commit 34f264d

Please sign in to comment.