Skip to content

Commit

Permalink
Clarify that new blocks are added to *container* blocks. (#598)
Browse files Browse the repository at this point in the history
My first attempt at writing a parser added new blocks to the last
matched block, regardless if it was a container or leaf. I think it
would have helped me if it had explicitly said "container" here.
  • Loading branch information
jayschwa authored and jgm committed Aug 5, 2019
1 parent 3991f05 commit 8b768f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9443,7 +9443,7 @@ blocks. But we cannot close unmatched blocks yet, because we may have a
blocks, we look for new block starts (e.g. `>` for a block quote).
If we encounter a new block start, we close any blocks unmatched
in step 1 before creating the new block as a child of the last
matched block.
matched container block.

3. Finally, we look at the remainder of the line (after block
markers like `>`, list markers, and indentation have been consumed).
Expand Down

0 comments on commit 8b768f7

Please sign in to comment.