Skip to content

Commit e3900a8

Browse files
docs: Correct typos; add "the" to a few sentences
1. has -> have 2. "You can note, that..." -> "Note that..." 3. sequence -> "the sequence" 4. "top level of token stream" -> "the top level of the token stream"
1 parent 87b16e2 commit e3900a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/architecture.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ In total, a token stream is:
6060
- On the top level - array of paired or single "block" tokens:
6161
- open/close for headers, lists, blockquotes, paragraphs, ...
6262
- codes, fenced blocks, horizontal rules, html blocks, inlines containers
63-
- Each inline token have a `.children` property with a nested token stream for inline content:
63+
- Each inline token has a `.children` property with a nested token stream for inline content:
6464
- open/close for strong, em, link, code, ...
6565
- text, line breaks
6666

@@ -81,7 +81,7 @@ Rules are functions, doing "magic" with parser `state` objects. A rule is associ
8181

8282
Rules are managed by names via [Ruler](https://markdown-it.github.io/markdown-it/#Ruler) instances and can be `enabled` / `disabled` from the [MarkdownIt](https://markdown-it.github.io/markdown-it/#MarkdownIt) methods.
8383

84-
You can note, that some rules have a `validation mode` - in this mode rules do not
84+
Note that some rules have a `validation mode` - in this mode rules do not
8585
modify the token stream, and only look ahead for the end of a token. It's one
8686
important design principle - a token stream is "write only" on block & inline parse stages.
8787

@@ -160,9 +160,9 @@ JSON/XML... You can even use it to generate AST.
160160

161161
## Summary
162162

163-
This was mentioned in [Data flow](md/data-flow), but let's repeat sequence again:
163+
This was mentioned in [Data flow](md/data-flow), but let's repeat the sequence again:
164164

165-
1. Blocks are parsed, and top level of token stream filled with block tokens.
165+
1. Blocks are parsed, and the top level of the token stream filled with block tokens.
166166
2. Content on inline containers is parsed, filling `.children` properties.
167167
3. Rendering happens.
168168

0 commit comments

Comments
 (0)