3 ms·
What about using inline "floating" checkpoints for the ranges, instead of character indexes? {text: "Lorem ipsum {{1}}dolor sit {{2}}amet{{3}}, consectetur{{
by feoren 3y ago
What about using inline "floating" checkpoints for the ranges, instead of character indexes?
{text: "Lorem ipsum {{1}}dolor sit {{2}}amet{{3}}, consectetur{{4}} adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
annotations: [{tag: "sometag", ranges: [{from: 1, to: 3}]},
{tag: "sometothertag", ranges: [{from: 2, to: 4}]}