The Exercise has a proofEditor too. But since there is text which will be added before and after the input the index can land outside of the proofEditor and later on when text will be marked in the input it cannot mark the correct places.
There should be:
Handling for the cases when it falls outside of the proofEditor
It should reduce the index by the length of the appended starting line for correct marking
The Exercise has a proofEditor too. But since there is text which will be added before and after the input the index can land outside of the proofEditor and later on when text will be marked in the input it cannot mark the correct places.
There should be: