Repository navigation
feat: Add API to parse one block at the time - #247
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
||
| /** | ||
| * Parses one top-level block of [text] from [startOffset] with `parseInlines = false`. | ||
| * The parse stops at the next line start where no block is open. [startOffset] must be such a line start too. |
There was a problem hiding this comment.
must
What will happen otherwise?
There was a problem hiding this comment.
Then guarantee
The children of the result are the same as the children of a full parse in that range.
won't hold
There was a problem hiding this comment.
That's probably worth expressing in the doc. Or there could be an assertion
|
Is there any logic reuse between block boundaries and streaming parser safe separators? |
|
No description provided.