-
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.
most features working, added positions for styling to the blocks
- Loading branch information
Showing
83 changed files
with
264 additions
and
269 deletions.
There are no files selected for viewing
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: 0 additions & 6 deletions
6
packages/MarkdownEditor-Parsing.package/MarkdownATXHeading2.class/class/newFrom..st
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownATXHeading2.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
Empty file.
11 changes: 0 additions & 11 deletions
11
packages/MarkdownEditor-Parsing.package/MarkdownBlankLine2.class/class/newFrom..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/MarkdownEditor-Parsing.package/MarkdownBlankLine2.class/instance/continue..st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
packages/MarkdownEditor-Parsing.package/MarkdownBlankLine2.class/methodProperties.json
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
packages/MarkdownEditor-Parsing.package/MarkdownBlankLine2.class/properties.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/acceptsLines.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,4 +1,4 @@ | ||
newStrat | ||
accessing | ||
acceptsLines | ||
|
||
^ self subclassResponsibility |
9 changes: 5 additions & 4 deletions
9
...ages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/adaptToDocumentWith..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,5 +1,6 @@ | ||
accessing | ||
applying | ||
adaptToDocumentWith: aParsingState | ||
|
||
aParsingState tip addChild: self. | ||
aParsingState tip: self. | ||
|
||
aParsingState tip addChild: self withState: aParsingState. | ||
aParsingState tip: self. | ||
aParsingState reduceCurrentLineTo: self innerLine. |
8 changes: 0 additions & 8 deletions
8
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/addChild..st
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/addChild.withState..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,9 @@ | ||
applying | ||
addChild: aBlock withState: aParsingState | ||
|
||
(self canContain: aBlock) | ||
ifFalse: [self finalize: aParsingState. | ||
self beClosed. | ||
^ self container addChild: aBlock withState: aParsingState]. | ||
self appendChild: aBlock. | ||
^ aBlock. |
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/asString.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,4 +1,4 @@ | ||
accessing | ||
debugging | ||
asString | ||
|
||
^ self asStringWithIndent: '' |
8 changes: 8 additions & 0 deletions
8
...downEditor-Parsing.package/MarkdownBlock2.class/instance/closeUnsuitableFor.withState..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,8 @@ | ||
applying | ||
closeUnsuitableFor: aBlock withState: aParsingState | ||
|
||
(self canContain: aBlock) | ||
ifFalse: [self finalize: aParsingState. | ||
self beClosed. | ||
^ self container closeUnsuitableFor: aBlock withState: aParsingState]. | ||
^ aBlock. |
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/continue..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,4 +1,4 @@ | ||
newStrat | ||
applying | ||
continue: aParserState | ||
|
||
^ self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/endPosition..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,3 @@ | ||
accessing | ||
endPosition: anObject | ||
endPosition := anObject |
3 changes: 3 additions & 0 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/endPosition.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,3 @@ | ||
accessing | ||
endPosition | ||
^ endPosition |
4 changes: 2 additions & 2 deletions
4
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/finalize..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,4 +1,4 @@ | ||
as yet unclassified | ||
applying | ||
finalize: aParsingState | ||
|
||
^ self | ||
self endPosition: aParsingState charPos - 1. |
3 changes: 3 additions & 0 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/innerLine..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,3 @@ | ||
accessing | ||
innerLine: anObject | ||
innerLine := anObject |
1 change: 0 additions & 1 deletion
1
...ontainerBlock.class/instance/innerLine.st → ...arkdownBlock2.class/instance/innerLine.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,4 +1,3 @@ | ||
accessing | ||
innerLine | ||
|
||
^ innerLine |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/lastChild.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 @@ | ||
accessing | ||
lastChild | ||
|
||
^ self subclassResponsibility. |
3 changes: 3 additions & 0 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/startPosition..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,3 @@ | ||
accessing | ||
startPosition: anObject | ||
startPosition := anObject |
3 changes: 3 additions & 0 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownBlock2.class/instance/startPosition.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,3 @@ | ||
accessing | ||
startPosition | ||
^ startPosition |
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
10 changes: 0 additions & 10 deletions
10
packages/MarkdownEditor-Parsing.package/MarkdownBlockquote2.class/class/newFrom..st
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
packages/MarkdownEditor-Parsing.package/MarkdownBlockquote2.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
2 changes: 1 addition & 1 deletion
2
...ages/MarkdownEditor-Parsing.package/MarkdownContainerBlock.class/instance/appendChild..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,4 +1,4 @@ | ||
as yet unclassified | ||
accessing | ||
appendChild: aMarkdownBlock | ||
|
||
aMarkdownBlock container: self. | ||
|
4 changes: 2 additions & 2 deletions
4
...rkdownEditor-Parsing.package/MarkdownContainerBlock.class/instance/asStringWithIndent..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,7 +1,7 @@ | ||
accessing | ||
debugging | ||
asStringWithIndent: aString | ||
|
||
^ (self children | ||
inject: (aString, 'a', self class, ' with subelements: ', Character cr, aString, '{ ', Character cr) | ||
inject: (aString, 'a', self class, ' range: (', self startPosition, ', ', self endPosition, ') with subelements: ', Character cr, aString, '{ ', Character cr) | ||
into: [:text :child | text, (child asStringWithIndent: aString, ' '), ',', Character cr]) | ||
,aString, '}' |
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownContainerBlock.class/instance/initialize.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,4 +1,4 @@ | ||
accessing | ||
initialisation | ||
initialize | ||
|
||
super initialize. | ||
|
4 changes: 0 additions & 4 deletions
4
packages/MarkdownEditor-Parsing.package/MarkdownContainerBlock.class/instance/innerLine..st
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/MarkdownEditor-Parsing.package/MarkdownContainerBlock.class/instance/lastChild.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,5 @@ | ||
accessing | ||
lastChild | ||
|
||
self children ifEmpty: [^nil]. | ||
^ self children last. |
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
6 changes: 0 additions & 6 deletions
6
packages/MarkdownEditor-Parsing.package/MarkdownDocument.class/class/newFrom..st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownDocument.class/instance/acceptsLines.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,4 +1,4 @@ | ||
as yet unclassified | ||
applying | ||
acceptsLines | ||
|
||
^ false |
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownDocument.class/instance/canContain..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,4 +1,4 @@ | ||
as yet unclassified | ||
applying | ||
canContain: aMarkdownBlock | ||
|
||
^ aMarkdownBlock class ~= MarkdownListItem2 |
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownDocument.class/instance/continue..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,4 +1,4 @@ | ||
as yet unclassified | ||
applying | ||
continue: aParsingState | ||
|
||
^ 0 |
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Parsing.package/MarkdownDocument.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
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: 3 additions & 3 deletions
6
packages/MarkdownEditor-Parsing.package/MarkdownFencedCodeBlock2.class/instance/continue..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
3 changes: 2 additions & 1 deletion
3
packages/MarkdownEditor-Parsing.package/MarkdownFencedCodeBlock2.class/instance/finalize..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,5 +1,6 @@ | ||
applying | ||
finalize: aParsingState | ||
|
||
super finalize: aParsingState. | ||
(self content lines) | ||
ifNotEmpty: [self info: (self content lines) first] | ||
ifNotEmpty: [self info: (self content lines) first]. |
Oops, something went wrong.