Skip to content

Instantly share code, notes, and snippets.

View azlux's full-sized avatar
🦊
.

azlux

🦊
.
View GitHub Profile
@azlux
azlux / markdown_doc
Last active September 7, 2018 12:10 — forked from jiffyclub/markdown_doc
This script turns Markdown into HTML using the Python markdown library and wraps the result in a complete HTML document with default Bootstrap styling so that it's immediately printable. Requires the python libraries jinja2, markdown, and mdx_smartypants.
!/usr/bin/env python3
import argparse
import sys
import jinja2
import markdown
import re
TEMPLATE = """<!DOCTYPE html>