-
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.
- Loading branch information
Showing
50 changed files
with
82 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am a part of the block structure of a Markdown document. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I provide a simple text area for writing Markdown. Your Markdown will be styled as you type. |
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
1 change: 0 additions & 1 deletion
1
packages/MarkdownEditor-Core.package/MarkdownEmphasisDelimiter.class/README.md
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 +0,0 @@ | ||
I am a token for emphasis. I listen to asterisks. | ||
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: 0 additions & 2 deletions
2
packages/MarkdownEditor-Core.package/MarkdownInlineTextStyler.class/README.md
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,2 +0,0 @@ | ||
I am a parser for parsing inline markdown text. | ||
Pass a text to me via the parse: function and I'll give you back a text with attributes. | ||
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
1 change: 0 additions & 1 deletion
1
packages/MarkdownEditor-Core.package/MarkdownString.class/README.md
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 +0,0 @@ | ||
I am a token for characters. I listen to any of all of the characters out there. | ||
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-Core.package/MarkdownToken.class/README.md
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 +1 @@ | ||
I am a token, a small piece of markdown text. | ||
I represent a string during inline parsing to identify the inline structure. |
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
...ackage/MarkdownBlockTextStylerTest.class/instance/assertRuns.values.areStyledResultOf..st
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...kdownEditor-Tests.package/MarkdownBlockTextStylerTest.class/instance/headingFontSized..st
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
...rkdownEditor-Tests.package/MarkdownBlockTextStylerTest.class/instance/testEmptyHeading.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,10 @@ | ||
tests - text | ||
testEmptyHeading | ||
|
||
| text | | ||
text := '#' asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {1} | ||
values: {{self headingFontSized: 34}} | ||
areStyledResultOf: '#' | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...s.package/MarkdownBlockTextStylerTest.class/instance/testEmptyHeadingWithFollowingLine.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,10 @@ | ||
tests - text | ||
testEmptyHeadingWithFollowingLine | ||
|
||
| text | | ||
text := ('#', Character cr) asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {2} | ||
values: {{self headingFontSized: 34}} | ||
areStyledResultOf: '#', Character cr | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...ownBlockTextStylerTest.class/instance/testHeadingFollowedByParagraphWithInlineEmphasis.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,11 +1,14 @@ | ||
tests - text with inline | ||
testHeadingFollowedByParagraphWithInlineEmphasis | ||
|
||
| text | | ||
text := ('# Title **bold**', Character cr, 'Line *italic*') asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {8. 8. 1. 5. 8} | ||
values: {{self headingFontSized: 34}. | ||
{self headingFontSized: 34. TextEmphasis bold}. | ||
{self headingFontSized: 34}. | ||
{}. | ||
{TextEmphasis italic}} | ||
areStyledResultOf: '# Title **bold**', Character cr, 'Line *italic*' | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...Editor-Tests.package/MarkdownBlockTextStylerTest.class/instance/testHeadingWithContent.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,10 @@ | ||
tests - text | ||
testHeadingWithContent | ||
|
||
| text | | ||
text := '# Title' asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {7} | ||
values: {{self headingFontSized: 34}} | ||
areStyledResultOf: '# Title' | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...-Tests.package/MarkdownBlockTextStylerTest.class/instance/testHeadingWithFollowingLine.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,10 @@ | ||
tests - text | ||
testHeadingWithFollowingLine | ||
|
||
| text | | ||
text := ('# Title', Character cr, 'line') asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {8. 4} | ||
values: {{self headingFontSized: 34}. {}} | ||
areStyledResultOf: '# Title', Character cr, 'line' | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...BlockTextStylerTest.class/instance/testHeadingWithFollowingLineDoesNotContinueEmphasis.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,10 @@ | ||
tests - text with inline | ||
testHeadingWithFollowingLineDoesNotContinueEmphasis | ||
|
||
| text | | ||
text := ('# Title **not', Character cr, 'bold**') asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {14. 6} | ||
values: {{self headingFontSized: 34}. {}} | ||
areStyledResultOf: '# Title **not', Character cr, 'bold**' | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...ckTextStylerTest.class/instance/testParagraphFollowingParagraphDoesNotContinueEmphasis.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,10 @@ | ||
tests - text with inline | ||
testParagraphFollowingParagraphDoesNotContinueEmphasis | ||
|
||
| text | | ||
text := ('**not', Character cr, Character cr, 'bold**') asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {13} | ||
values: {{}} | ||
areStyledResultOf: '**not', Character cr, Character cr, 'bold**' | ||
areStyleOf: text |
5 changes: 4 additions & 1 deletion
5
...tor-Tests.package/MarkdownBlockTextStylerTest.class/instance/testReturnsUnmodifiedText.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,10 @@ | ||
tests - text | ||
testReturnsUnmodifiedText | ||
|
||
| text | | ||
text := 'No Markdown used here' asText. | ||
blockTextStyler privateStyle: text. | ||
self | ||
assertRuns: {21} | ||
values: {{}} | ||
areStyledResultOf: 'No Markdown used here' | ||
areStyleOf: text |
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
4 changes: 0 additions & 4 deletions
4
...es/MarkdownEditor-Tests.package/MarkdownCommentBlockTests.class/instance/attributesOf..st
This file was deleted.
Oops, something went wrong.
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
6 changes: 0 additions & 6 deletions
6
...ests.package/MarkdownInlineTextStylerTest.class/instance/assertRuns.values.areStyleOf..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...MarkdownEditor-Tests.package/MarkdownInlineTextStylerTest.class/instance/attributesOf..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...MarkdownEditor-Tests.package/MarkdownInlineTextStylerTest.class/instance/readStreamOn..st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...kdownEditor-Tests.package/MarkdownInlineTextStylerTest.class/instance/readStreamOn.at..st
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I mock a TextStyler by doing nothing when requested to style. For testing purposes, I will remember my last request. |
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
File renamed without changes.
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
1 change: 1 addition & 0 deletions
1
packages/MarkdownEditor-Tests.package/MarkdownTestCase.class/README.md
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 @@ | ||
I provide convenient testing methods for Markdown styling. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
packages/MarkdownEditor-Tests.package/MarkdownTestCase.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"assertRuns:values:areStyleOf:" : "jst 7/10/2019 14:51", | ||
"attributesOf:" : "jst 7/10/2019 14:51", | ||
"headingFontSized:" : "jst 7/10/2019 15:02" } } |
Oops, something went wrong.