From 0786664acdff77c72aaf12a5abc05659ebfc5ad6 Mon Sep 17 00:00:00 2001 From: dx Date: Tue, 5 May 2020 22:14:59 +0100 Subject: +read the initial html file This html file has a specific format --- converter.py | 6 ++++++ 1 file changed, 6 insertions(+) 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() + -- cgit v1.2.3-13-gbd6f