Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
kemo-1 committed Jul 20, 2024
1 parent 3fff4c7 commit d73524b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remark-custom-header-id/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {visit, SKIP} from 'unist-util-visit';

// TODO: Use the same identifier for both when it's possible: https://github.com/tc39/proposal-duplicate-named-capturing-groups
const idRegex = / {#(?<id1>[^}]+)}$| [(?<id2>[^|]+)]$/;
const idRegex = / {#(?<id1>[^}]+)}$| \[(?<id2>[^|]+)\]$/;

export default function remarkCustomHeaderId() {
return function (node) {
Expand Down

0 comments on commit d73524b

Please sign in to comment.