pandoc input.md -o output.html -s

Category: Media & Conversion

pandoc input.md -o output.html -s

Convert Markdown to a standalone HTML page

Converts Markdown to a complete HTML page with head, CSS, and structure, not just a body fragment. -s (--standalone) embeds default styling. Without -s you get bare HTML suitable for splicing into a template.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.