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.
2 parents edfb006 + 4734e06 commit 75f3f08Copy full SHA for 75f3f08
1 file changed
components/Plate/plugins/tag.jsx
@@ -4,7 +4,7 @@ import { createPluginFactory } from "@udecode/plate";
4
import { ELEMENT_TAG } from "../../../utils/slate";
5
6
// inspired by https://stackoverflow.com/a/60972027
7
-const tagRegex = /#(\w{1,100})(.*)/
+const tagRegex = /#([\w\-]{1,100})(.*)/
8
9
function hasTagParent(editor, path) {
10
const parent = Node.get(editor, path.slice(0, -1))
0 commit comments