diff --git a/beta/plugins/remark-header-custom-ids.js b/beta/plugins/remark-header-custom-ids.js index 00d33aef..8965163a 100644 --- a/beta/plugins/remark-header-custom-ids.js +++ b/beta/plugins/remark-header-custom-ids.js @@ -32,7 +32,7 @@ module.exports = ({ visit(tree, 'heading', (node) => { // Support custom-id syntax. const rawHeader = toString(node); - const match = /^.+(\s*\{#([a-z0-9\-_]+?)\}\s*)$/.exec(rawHeader); + const match = /^.+(\s*\{#([\p{L}0-9\-_]+?)\}\s*)$/u.exec(rawHeader); const id = match ? match[2] : slugs.slug(rawHeader, maintainCase); if (match) { // Remove the custom ID part from the text node.