-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support opening and closing delimiters
For optimal Transcribe compatibility, conflicts with Markdown syntax must be avoided. Markdown uses GREATER-THAN SIGN (>) at the beginning of each line of a <blockquote>. This conflicts with that character's use to signify doctest input, as in the following example: //# K :: a -> b -> a //. //. This is a paragraph. //. //. > This is a block quotation. //. > It should not be evaluated! //. //. ```javascript //. > K (true) (42) //. true //. ``` This commit adds --opening-delimiter and --closing-delimiter options to the command-line interface, enabling the use of Markdown's <blockquote> syntax in source files with delimited doctest blocks. The following options would resolve the conflict in the example above: $ doctest --prefix . \ . --opening-delimiter '```javascript' \ . --closing-delimiter '```' \ . -- path/to/file.js
- Loading branch information
1 parent
06a21e6
commit b298ce9
Showing
6 changed files
with
114 additions
and
72 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
true, | ||
"[1, 2, 3]", | ||
"[1, 2, 3]", | ||
8 | ||
12 | ||
] | ||
] | ||
] |