From f6d5697ed7f247e8673614f4e0ff7232e808ef1e Mon Sep 17 00:00:00 2001 From: Luka Skugor Date: Sun, 17 Jul 2022 12:17:39 +0200 Subject: [PATCH] fix(build): strip custom anchor with capital letters in outline (#1005) --- src/node/utils/parseHeader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/parseHeader.ts b/src/node/utils/parseHeader.ts index 35c2732c..6258184d 100644 --- a/src/node/utils/parseHeader.ts +++ b/src/node/utils/parseHeader.ts @@ -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()