Replace text of produced Spans #809
Unanswered
omarsamir27
asked this question in
Q&A
Replies: 1 comment
-
i kind of achieved what i want by searching through the nodes for the specific Rule and used its Span start and end positions to edit the original text |
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
-
I would like to know if there is a way to modify the str member of a Span , what I basically need to do is modify the text of certain rules if they are present and preserve the Node structure.
I can do this with
regex
but I want to avoid the cost after already parsingBeta Was this translation helpful? Give feedback.
All reactions