Skip to content

Commit 5cefe6c

Browse files
authored
Merge pull request #116 from mysilio-co/staging-bugfix-032822
add comment next to tag
2 parents 75f3f08 + 63b0e24 commit 5cefe6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

components/Plate/plugins/tag.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createPluginFactory } from "@udecode/plate";
44
import { ELEMENT_TAG } from "../../../utils/slate";
55

66
// inspired by https://stackoverflow.com/a/60972027
7+
// the (.*) at the end allows us to detect situations where the tag needs to be split
78
const tagRegex = /#([\w\-]{1,100})(.*)/
89

910
function hasTagParent(editor, path) {

0 commit comments

Comments
 (0)