-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
<include>
block for including non-code files (#370)
* Add `<include>` for including normal text/markdown files * Also strip trailing characters for non-code blocks * Add test case for `convert_include` * Fix broken tests Was including the last newline (when this should be removed with .`rstrip()`) * Fix quality (reformat w/ `black`) * Replace canonical tests with comments
- Loading branch information
Showing
3 changed files
with
122 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- START header_1 --> | ||
# This is the first header | ||
Other text 1 | ||
<!-- END header_1 --> | ||
|
||
<!-- START header_2 --> | ||
# This is the second header | ||
Other text 2 | ||
<!-- END header_2 --> | ||
|
||
<!-- START header_3 --> | ||
# This is the third header | ||
Other text 3 | ||
<!-- END header_3 --> |
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