use jinja2 templates to add css and formatting

This commit is contained in:
2026-01-26 22:38:22 -07:00
parent 0b17117566
commit 50a8281508
4 changed files with 104 additions and 1 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
from markdown_it import MarkdownIt
from jinja2 import Environment, FileSystemLoader
md = MarkdownIt("commonmark").enable('table')
j2_env = Environment(loader=FileSystemLoader('templates'))
template = j2_env.get_template('resume.template')
def mdtohtml(mdsrc):
return md.render(mdsrc)
rawhtml = md.render(mdsrc)
return template.render(content=rawhtml)