Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring convert.py to improve code maintainability:
* Removed global variable, instead used _output_dir.py to store default output location * Separated getting options from config file and getting options from command-line into two respective functions * Created get_html_after_body() and get_html_before_body() to get rid of duplicating code in markdown_to_html() and text_to_html() * Added sys.exit(1) to quit the program after errors occur
- Loading branch information
Showing
2 changed files
with
69 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./til |
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