How to create a custom syntax that can render a wrapper DOM node for inner content #1748
Unanswered
backrunner
asked this question in
Q&A
Replies: 1 comment
-
Hi there, I also tried to use the decoration based on ProseMirror, but it still difficult to create a "wrapper" to wrap the inner tags, it can only create a wrapper for the tags separately, which will cause a break in the interaction. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a syntax like "!annotation(content)" to mark a part of content as an annotation.
I used the solution in https://github.com/orgs/Milkdown/discussions/1674 to create a plugin for the custom syntax, and it can create the right DOM nodes when the content is pure text.
But when I inserted a content like this:
It will only rendered the inline code content, the "!annotation" syntax rendered as normal text directly, how should I deal with the nested syntax and create a wrapper for the inner nodes?
Beta Was this translation helpful? Give feedback.
All reactions