You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/architecture.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ In total, a token stream is:
60
60
- On the top level - array of paired or single "block" tokens:
61
61
- open/close for headers, lists, blockquotes, paragraphs, ...
62
62
- 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:
64
64
- open/close for strong, em, link, code, ...
65
65
- text, line breaks
66
66
@@ -81,7 +81,7 @@ Rules are functions, doing "magic" with parser `state` objects. A rule is associ
81
81
82
82
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.
83
83
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
85
85
modify the token stream, and only look ahead for the end of a token. It's one
86
86
important design principle - a token stream is "write only" on block & inline parse stages.
87
87
@@ -160,9 +160,9 @@ JSON/XML... You can even use it to generate AST.
160
160
161
161
## Summary
162
162
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:
164
164
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.
166
166
2. Content on inline containers is parsed, filling `.children` properties.
0 commit comments