issues in `replacementPrefix` when the replaced `prefix` is a paragraph and wrapped in several lines.
Hi there,
I found this issue when I try to convert unicode text (such as Chinese) into a JSON format, but I can reproduce it easily with any text such as English.
How to reproduce
- I implemented a simple suggestion list with 3 options: "Introduction", "text" and "summary" to replace a certain paragraph based on users' choice, so the
prefixwill be the whole paragraph instead of a single word.


- If the paragraph is one line long, it works
- If the paragraph is two line long, then the replacement will be inserted after the first character
- If the paragraph is three line long, then the replacement will be inserted after the first two characters and so on.

Noted two issues:
- the replacement was inserted in wrong place, and
- the
Putshould not be there.
Best
-John
The default prefix (which I'm assuming the default provider uses) only captures a single line at most.
If you are writing your own package with your own prefix, I suggest also writing your own replacement prefix / just using the one you've already written. Additionally, the provider API allows for an optional method called immediately after a text insertion. That may be of use.
Also, you should note that your "how to reproduce" section is severely lacking. Having read it, I still have no idea how to replicate it myself. That final image looks like it was inserted after 4 characters, not 3.