fix(build): strip custom anchor with capital letters in outline (#1005)

pull/1007/head
Luka Skugor 2 years ago committed by GitHub
parent d5ed66c6d2
commit f6d5697ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save