Skip to content

Commit

Permalink
Merge 1ad701a into e103c0f
Browse files Browse the repository at this point in the history
  • Loading branch information
pixunil committed Jul 10, 2019
2 parents e103c0f + 1ad701a commit 115a8e7
Show file tree
Hide file tree
Showing 50 changed files with 82 additions and 89 deletions.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "jst 7/10/2019 15:46",
"instvars" : [
"content",
"styler" ],
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "jst 7/10/2019 15:42",
"instvars" : [
"markdownText" ],
"name" : "MarkdownEditor",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
I am a token for emphasis. I listen to asterisks.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "fgo 5/21/2019 15:45",
"commentStamp" : "jst 7/10/2019 15:38",
"instvars" : [
"isLeftFlanking",
"isRightFlanking" ],
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "fgo 5/21/2019 15:43",
"commentStamp" : "jst 7/10/2019 15:40",
"instvars" : [
"tokens",
"attributes" ],
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "fgo 5/21/2019 15:46",
"commentStamp" : "jst 7/10/2019 15:38",
"instvars" : [
],
"name" : "MarkdownString",
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "fgo 5/21/2019 15:45",
"commentStamp" : "jst 7/10/2019 15:37",
"instvars" : [
"content",
"startPosition" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"class" : {
},
"instance" : {
"testAppend" : "jst 6/10/2019 11:34",
"testFirstLineWithNewline" : "jst 6/10/2019 11:34",
"testFirstLineWithoutNewline" : "jst 6/10/2019 11:14",
"testLastLineWithNewline" : "jst 6/10/2019 11:33",
Expand Down

This file was deleted.

This file was deleted.

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
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
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
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
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
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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
},
"instance" : {
"assert:isParsedStructureOf:" : "jko 6/22/2019 17:37",
"assertRuns:values:areStyledResultOf:" : "jst 6/23/2019 14:59",
"attributesOf:" : "jst 5/11/2019 19:05",
"headingFontSized:" : "fgo 6/26/2019 22:35",
"setUp" : "jko 6/22/2019 17:37",
"testBlockStructureCodeBlock" : "jst 6/7/2019 14:47",
"testBlockStructureCodeBlockFollowedByParagraph" : "jst 6/10/2019 11:31",
Expand All @@ -26,12 +23,12 @@
"testBlockStructureTwoParagraphs" : "jst 6/10/2019 13:33",
"testBlockStructureUnclosedCodeBlock" : "jst 6/7/2019 14:42",
"testEmptyBlockStructure" : "jst 6/3/2019 18:23",
"testEmptyHeading" : "jst 6/23/2019 15:09",
"testEmptyHeadingWithFollowingLine" : "jst 6/23/2019 15:09",
"testHeadingFollowedByParagraphWithInlineEmphasis" : "jst 6/23/2019 15:11",
"testHeadingWithContent" : "jst 6/23/2019 15:10",
"testHeadingWithFollowingLine" : "jst 6/23/2019 15:10",
"testHeadingWithFollowingLineDoesNotContinueEmphasis" : "jst 6/23/2019 15:12",
"testEmptyHeading" : "jst 7/10/2019 14:55",
"testEmptyHeadingWithFollowingLine" : "jst 7/10/2019 14:57",
"testHeadingFollowedByParagraphWithInlineEmphasis" : "jst 7/10/2019 14:58",
"testHeadingWithContent" : "jst 7/10/2019 14:58",
"testHeadingWithFollowingLine" : "jst 7/10/2019 14:59",
"testHeadingWithFollowingLineDoesNotContinueEmphasis" : "jst 7/10/2019 14:59",
"testIsReusable" : "6/19/2019 16:09:00",
"testParagraphFollowingParagraphDoesNotContinueEmphasis" : "jst 6/23/2019 15:12",
"testReturnsUnmodifiedText" : "jst 6/23/2019 15:11" } }
"testParagraphFollowingParagraphDoesNotContinueEmphasis" : "jst 7/10/2019 15:00",
"testReturnsUnmodifiedText" : "jst 7/10/2019 15:00" } }
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "MarkdownBlockTextStylerTest",
"pools" : [
],
"super" : "TestCase",
"super" : "MarkdownTestCase",
"type" : "normal" }
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "MarkdownCodeBlockTest",
"pools" : [
],
"super" : "TestCase",
"super" : "MarkdownTestCase",
"type" : "normal" }

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"class" : {
},
"instance" : {
"assertRuns:values:areStyleOf:" : "jko 6/24/2019 15:36",
"attributesOf:" : "jko 6/24/2019 15:42",
"testClosedCommentBlockIsNotExtendable" : "jko 6/24/2019 14:42",
"testClosingTagFollowedByTextCloses" : "lpf 6/26/2019 10:37",
"testClosingTagInFirstLineCloses" : "jko 6/29/2019 00:03",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "MarkdownCommentBlockTests",
"pools" : [
],
"super" : "TestCase",
"super" : "MarkdownTestCase",
"type" : "normal" }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"class" : {
},
"instance" : {
"headingFontSized:" : "fgo 6/26/2019 22:35",
"testConvertingToTextUsesInlineStyler" : "fgo 6/23/2019 09:31",
"testFindLevelOfHeadingLevels1To6" : "lpf 6/17/2019 19:07",
"testMayBeginWith1To3Indentations" : "jko 6/29/2019 16:29",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "MarkdownHeadingsTest",
"pools" : [
],
"super" : "TestCase",
"super" : "MarkdownTestCase",
"type" : "normal" }

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"class" : {
},
"instance" : {
"assertRuns:values:areStyleOf:" : "jko 6/22/2019 17:28",
"attributesOf:" : "fgo 5/21/2019 15:58",
"readStreamOn:" : "jko 5/16/2019 16:18",
"readStreamOn:at:" : "jko 5/16/2019 16:19",
"setUp" : "jko 6/22/2019 17:36",
"testCleanEmptiesAttributes" : "jko 6/22/2019 17:36",
"testCleanEmptiesTokens" : "jko 6/22/2019 17:36",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "MarkdownInlineTextStylerTest",
"pools" : [
],
"super" : "TestCase",
"super" : "MarkdownTestCase",
"type" : "normal" }
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "jst 7/10/2019 15:54",
"instvars" : [
"memorizedStylingRequest" ],
"name" : "MarkdownMockTextStyler",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
},
"instance" : {
"blankLine" : "jst 6/3/2019 16:49",
"testAppend" : "jst 6/10/2019 11:34",
"testBlankLineIsExtendableWithBlankLine" : "jko 5/27/2019 15:50",
"testBlankLineIsExtendableWithWhitespaceLine" : "jko 5/27/2019 15:50",
"testBlankLineIsNotExtendableWithTextLine" : "jko 5/27/2019 15:51",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "MarkdownParagraphTest",
"pools" : [
],
"super" : "TestCase",
"super" : "MarkdownTestCase",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I provide convenient testing methods for Markdown styling.
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" } }
Loading

0 comments on commit 115a8e7

Please sign in to comment.