getMarkRange() will not return the actual end position of the current mark.
might reintroduce bug from #156 (i cannot reproduce #156 so i cannot check)
fixes in this commit:
A) work around a possible bug in indexAfter()?:
$pos.indexAfter() seems to return the same index as $pos.index() at some point
-> fixed by increasing startIndex by 1 instead of using indexAfter()
B) endPos needs to be initialized with initial startPos + nodeSize and not
with resulting startPos:
-> moved initialization right after setting startPos
fmt(tiptap-commands): Fix all ESLint violations with `--fix`
fmt(tiptap-commands): Ignore some ESLint rules on code copied from prosemirror.
fmt(tiptap): Apply ESLint autofix to `tiptap` package sources.
fmt(tiptap-extensions): Fix ESlint violations from `marks`
refactor(tiptap-extensions): Fix ESLint violations for `plugins/Suggestions.js`.
Some of the violations required a bit of restructuring of the code/logic
fmt(tiptap-utils): Fix ESLint violations.
feat(package.json): Add yarn script to lint source code before compiling the examples.