diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-05 22:14:59 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-05 22:14:59 +0100 |
commit | 0786664acdff77c72aaf12a5abc05659ebfc5ad6 (patch) | |
tree | 45184d2a5633a85bee38c16172351ea4d2ba442d | |
parent | f61edf647863dc34a49df42f13993ac46843c91d (diff) | |
download | mdhtml-0786664acdff77c72aaf12a5abc05659ebfc5ad6.tar.gz mdhtml-0786664acdff77c72aaf12a5abc05659ebfc5ad6.tar.bz2 mdhtml-0786664acdff77c72aaf12a5abc05659ebfc5ad6.zip |
+read the initial html file
This html file has a specific format
-rw-r--r-- | converter.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/converter.py b/converter.py index 41aa288..6d8ae8d 100644 --- a/converter.py +++ b/converter.py @@ -26,3 +26,9 @@ for file in args: else: print(file, "is not a markdown file, skipping") + +"""Read header""" +header = [] +with open(options.header, 'r') as file: + header = file.readlines() + |