Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The interesting parts of this are about tracking on each block inline container (notably each
ParagraphNode
) the set of link nodes found in its subtree. We'll need that information for #71, for reasons explained there.Computing it involves adding a bit of complexity (that we were pretty much bound to eventually need for one reason or another), making the content-parser a stateful object.
This PR doesn't yet go on to have the widgets actually consume this information. I have a draft branch for that (corresponding to part of #204), but want to write some tests for it.