HTML output tweaks
This commit is contained in:
@ -162,6 +162,12 @@ def main():
|
||||
loader=FileSystemLoader(os.path.dirname(__file__)),
|
||||
autoescape=select_autoescape(['html', 'xml'])
|
||||
)
|
||||
# Add markdown filter
|
||||
try:
|
||||
import markdown
|
||||
env.filters['markdown'] = lambda text: markdown.markdown(text or "")
|
||||
except ImportError:
|
||||
env.filters['markdown'] = lambda text: text or ""
|
||||
template = env.get_template("todoist_backup_template.html")
|
||||
html_filename = f"Todoist-Actual-Backup-{today}.html"
|
||||
with open(html_filename, "w", encoding="utf-8") as f:
|
||||
|
Reference in New Issue
Block a user