As the MarkdownParser doesn’t accept html as input (it requires and parse only text) and i still need to parse markdown in my editor , i had to iterate over all its document’s content text nodes and parse their text using the MarkdownParser and then replacing them using tr.replaceWith().
As i need to repeat this process after each edit, i need to prevent re-parsing the same nodes everytime and only parse any new added content which may have unparsed markdown on it.
It’s not only for the matter of optimisation (although that’s very important too). Actually i also had some problems when reparsing the same nodes again (their content sometimes is wrong in a second parse)
Is it possible somehow to flag already parsed nodes to avoid reparsing them ?