diff --git a/scripts/template.py b/scripts/template.py index b35e9b4..1a4cf3c 100644 --- a/scripts/template.py +++ b/scripts/template.py @@ -6,7 +6,9 @@ from datetime import datetime from email import utils def remove_tags(text): - return re.sub(re.compile('<.*?>'), "", text) + text = re.sub(re.compile('>[0-9]<'), "", text) + text = re.sub(re.compile('<.*?>'), "", text) + return text def get_path(path, ext_in, ext_out): path = path[len("pages"):]