remarkable
remarkable copied to clipboard
Feature request: add cols in tokens
I'm writing an markdown editor, so I want to know what the user is editing exactly. For example:
| title1 | title2|
|------|------|
|cont1| cont2|
When the user focus in the title2 cell:
(|| represents the cursor)
| title1 | title||2|
|------|------|
|cont1| cont2|
I want to know that the user is editing the second cell in the title. So every time the user do some actions, I re-parse the text, and get the position information of markdown.
But the problem is, remarkable gave out the lines of the markdown structure, but didn't gave out the cols information.
So, Is it possible to add the cols info into the tokens? (Which produces by parser.parse())