Render Markdown HTML in Python with Jinja2
By now, we can use Jinja to render HTML templates in Python. You can check out that post here. Now, I want a way to write code blocks with syntax highlighting on my HTML pages. Let's turn to Markdown.
By now, we can use Jinja to render HTML templates in Python. You can check out that post here. Now, I want a way to write code blocks with syntax highlighting on my HTML pages. Let's turn to Markdown.
When building this blog, I knew I wanted to stay away from the overhead of working with a database. That meant I'd need to generate all my pages as static HTML pages which could be returned from the server.