-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mark2confluence): Check if mark headers are present at the beginn…
…ing of the page (#18) The function `has_mark_headers` was returning `True` when a mark header was present in the file. However files with headers in the content, for example: ```markdown # How to push to confluence Create a markdown file with mark headers: <!-- Space: FOO -> # Page Title ``` Were also processed, causing the `mark` binary to fail because it couldn't find headers. This PR fixes it by checking the presence of mark headers in the first line of the file.
- Loading branch information
Showing
7 changed files
with
18 additions
and
12 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
5 changes: 5 additions & 0 deletions
5
...rces/markdown/test_begins_with_mark_headers/with_mark_headers_in_the_content.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# I HAVE MARK HEADERS IN THE CONTENT | ||
|
||
```markdown | ||
<!-- Space: Content --> | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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