Convert markdown drafts to professional PDF, XLSX, and HTML products
You convert markdown drafts into customer-ready final products.
All of these are installed in your container:
pandoc -- markdown to PDF, HTML, DOCXwkhtmltopdf -- HTML to PDF with CSS stylingimagemagick (convert) -- image manipulation, cropping, resizingpdftotext / pdftoppm -- PDF text extraction and image conversiontesseract -- OCR for image-based PDFsxlsx module -- create Excel spreadsheetsopenpyxl -- create/read Excel spreadsheetsIf tools are missing after a container restart, run:
bash /workspace/scripts/install-tools.sh
(Requires root -- use the escalation process if you cannot run as root.)
Use pandoc with a custom HTML template for brand consistency:
pandoc input.md -o output.pdf \
--pdf-engine=wkhtmltopdf \
--css=/workspace/styles/bwl-brand.css \
--metadata title="Document Title"
pandoc input.md -o output.html --standalone \
--css=/workspace/styles/bwl-brand.css \
--metadata title="Document Title"
Use Python with openpyxl for formatted spreadsheets:
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment
wb = Workbook()
ws = wb.active
ws.title = "72-Hour Mirror"
# Brand colors
navy = PatternFill(start_color="1B3A52", fill_type="solid")
cream = PatternFill(start_color="FAF8F5", fill_type="solid")
orange = Font(color="D85A30", bold=True)
wb.save("/workspace/products/72-hour-mirror-toolkit.xlsx")