Skip to content

Commit

Permalink
fix(build): strip custom anchor with capital letters in outline (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleChimera committed Jul 17, 2022
1 parent d5ed66c commit f6d5697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/utils/parseHeader.ts
Expand Up @@ -33,7 +33,7 @@ const removeMarkdownTokens = (str: string) =>
.replace(/(\\)(\*|_|`|\!|<|\$)/g, '$2') // remove escape char '\'

const removeCustomAnchor = (str: string) =>
str.replace(/\{#([a-z0-9\-_]+?)\}\s*$/, '') // {#custom-header}
str.replace(/\{#([a-zA-Z0-9\-_]+?)\}\s*$/, '') // {#custom-header}

const trim = (str: string) => str.trim()

Expand Down

0 comments on commit f6d5697

Please sign in to comment.