We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f31c9fd commit 5c1f513Copy full SHA for 5c1f513
beta/plugins/remark-header-custom-ids.js
@@ -32,7 +32,7 @@ module.exports = ({
32
visit(tree, 'heading', (node) => {
33
// Support custom-id syntax.
34
const rawHeader = toString(node);
35
- const match = /^.+(\s*\{#([a-z0-9\-_]+?)\}\s*)$/.exec(rawHeader);
+ const match = /^.+(\s*\{#([\p{L}0-9\-_]+?)\}\s*)$/u.exec(rawHeader);
36
const id = match ? match[2] : slugs.slug(rawHeader, maintainCase);
37
if (match) {
38
// Remove the custom ID part from the text node.
0 commit comments