-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor lookForNewBlockStarts, fix HTM tests
- Loading branch information
Marie Fischer
committed
Jul 27, 2021
1 parent
1a0e31c
commit 63e156d
Showing
15 changed files
with
80 additions
and
54 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...es/MarkdownEditor-Parsing.package/MarkdownBlock.class/instance/canContainFurtherBlocks.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
parsing | ||
canContainFurtherBlocks | ||
|
||
^ true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...nEditor-Parsing.package/MarkdownFencedCodeBlock.class/instance/canContainFurtherBlocks.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
parsing | ||
canContainFurtherBlocks | ||
|
||
^ false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownListItem.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...ges/MarkdownEditor-Parsing.package/MarkdownParser.class/instance/lookForNewBlockStarts.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
phase 2 | ||
lookForNewBlockStarts | ||
|
||
self state oldTip class = MarkdownFencedCodeBlock | ||
ifTrue: [^ self processRemainderOfLine]. | ||
self state oldTip canContainFurtherBlocks | ||
ifFalse: [^ self processRemainderOfLine]. | ||
self blockChecklist do: [:class || result | | ||
result := class createNew: self state. | ||
|
||
result = 1 "matched container block - try again for the rest of the line" | ||
ifTrue: [self incorporateNewBlock. | ||
^ self lookForNewBlockStarts]. | ||
|
||
result = 2 "matched leaf block - we are done" | ||
ifTrue: [self incorporateNewBlock. | ||
^ self processRemainderOfLine]]. | ||
|
||
^ self processRemainderOfLine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters