-
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.
Default is `--output markdown`. This way is more flexible in the future, if I want more output formats for whatever reason. Also fix an unrelated bug in the JSON output, which I found when I added an integ test for it. Resolves a TODO, in service of #11.
- Loading branch information
Showing
5 changed files
with
82 additions
and
42 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[given] | ||
md = ''' | ||
Test _one_ [two][1] three. | ||
[1]: https://example.com/1 | ||
''' | ||
|
||
|
||
[expect."default"] | ||
cli_args = [] | ||
output = ''' | ||
Test _one_ [two][1] three. | ||
[1]: https://example.com/1 | ||
''' | ||
|
||
|
||
[expect."md"] | ||
cli_args = ['-o', 'md'] | ||
output = ''' | ||
Test _one_ [two][1] three. | ||
[1]: https://example.com/1 | ||
''' | ||
|
||
|
||
[expect."markdown"] | ||
cli_args = ['--output', 'markdown'] | ||
output = ''' | ||
Test _one_ [two][1] three. | ||
[1]: https://example.com/1 | ||
''' | ||
|
||
|
||
[expect."json"] | ||
cli_args = ['--output', 'json'] | ||
output = ''' | ||
{"items":[{"document":[{"paragraph":"Test _one_ [two][1] three."}]}],"links":{"1":{"url":"https://example.com/1"}}}''' |