forked from shurcooL/markdownfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bring back examples, simplify, port 2 more tests
This change brings back the two examples so they continue to show up the package documentation. It also removes a lot of functionality that is not used and not justified at this time, given the basic testing requirements of markdownfmt (i.e., no need to support different options). It simplifies the code to a bare minimum (to make future maintenance easier) and more consistent with my other code. It ports two more tests, TestLineBreak and TestDoubleSpacedListEnd, to use the new file-based test suite.
- Loading branch information
Showing
19 changed files
with
102 additions
and
173 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
.../default/escape_backslashes_in_urls.in.md → markdown/testdata/escapeurl.golden.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,8 +1,7 @@ | |||
Demonstrates https://github.com/shurcooL/markdownfmt/issues/35. | Test for issue https://github.com/shurcooL/markdownfmt/issues/35. | ||
|
|
||
[Link](path\\to\\page) | [Link](path\\to\\page) | ||
|
|
||
![Image](path\\to\\image) | ![Image](path\\to\\image) | ||
|
|
||
https://path\\to\\page | https://path\\to\\page | ||
|
2 changes: 1 addition & 1 deletion
2
...default/escape_backslashes_in_urls.out.md → markdown/testdata/escapeurl.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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
Some text with two trailing spaces for linebreak. | |||
More spaced **text** *immediately* after that. | |||
More than two spaces become two. |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
Some text with two trailing spaces for linebreak. | |||
More spaced **text** *immediately* after that. | |||
More than two spaces become two. |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
Test that when the document ends with a double spaced list, an extra blank line isn't appended. See issue #30. | |||
|
|||
- An item. | |||
|
|||
- Another time with a blank line in between. |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
Test that when the document ends with a double spaced list, an extra blank line isn't appended. See issue #30. | |||
|
|||
- An item. | |||
|
|||
- Another time with a blank line in between. |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../testdata/default/successive_lines.out.md → markdown/testdata/successive.golden.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
2 changes: 1 addition & 1 deletion
2
...n/testdata/default/successive_lines.in.md → markdown/testdata/successive.in.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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -6,4 +6,3 @@ | ||
|
|
||
aaa/あああ | aaa/あああ | ||
---------- | ---------- | ||
|