-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add markdown header if it is missing (#203)
* fix: add a Markdown header level 1 if it is missing * test: update unit test * fix: update name from prepend_markdown_title to prepend_markdown_header * test: update unit test * fix: update comments based on code review * test: update unit test with comments and parameterized tests * test: update unit test * fix: update docstring with types * fix: update type hint for Iterables
- Loading branch information
Showing
6 changed files
with
143 additions
and
60 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,8 @@ | ||
# Markdown_example_alternate_bad | ||
|
||
============== | ||
|
||
There should be a header line before the divider. | ||
|
||
##Content header | ||
This is a simple line followed by an h2 header. |
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,6 @@ | ||
# Markdown_example_bad_header | ||
|
||
#Test header for a bad formatted markdown file. | ||
|
||
##Content header | ||
This is a simple line followed by an h2 header. |
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,6 @@ | ||
# Markdown_example_h2 | ||
|
||
## Test header for a simple markdown file. | ||
|
||
##Content header | ||
This is a simple line followed by an h2 header. |
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