diff options
-rw-r--r-- | src/editor.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index cdbd5cc..ad1a863 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -52,7 +52,7 @@ let refLinks = [] | |||
52 | * @returns {boolean} True if the anchor name is unique, false otherwise | 52 | * @returns {boolean} True if the anchor name is unique, false otherwise |
53 | */ | 53 | */ |
54 | const validateAnchorName = anchorName => | 54 | const validateAnchorName = anchorName => |
55 | !refLinks.find(obj => obj.ref === anchorName) | 55 | !refLinks.find(obj => obj.ref.toLowerCase() === anchorName.toLowerCase()) |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * Appends a reference link to the CodeMirror instance | 58 | * Appends a reference link to the CodeMirror instance |