---
name: "mkd2html"
section: "1"
platform: "linux"
package: "discount"
version: "3.0.2.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mkd2html"
---

# mkd2html(1)

markdown to html converter

## NAME

**mkd2html** – markdown to html converter

## SYNOPSIS

**mkd2html** \[**-css** *file*\] \[**-header** *string*\] \[**-footer** *string*\] \[*file*\]

## DESCRIPTION

**mkd2html** utility parses a [markdown(7)](/markdown/7.md)-formatted *textfile* (or stdin if not specified,) and generates a web page. It reads *file* or *file.text*\
  and writes the result in *file.html* (where file is the passed argument.)

**mkd2html** is part of discount.

## OPTIONS

- **-css** *file*

  Specifies a CSS file.

- **-header** *string*

  Specifies a line to add to the \<header\> tag.

- **-footer** *string*

  Specifies a line to add before the \<body\> tag.

## RETURN VALUES

The **mkd2html** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[markdown(1)](/markdown/1.md), [markdown(3)](/markdown/3.md), [markdown(7)](/markdown/7.md), [mkd-extensions(7)](/mkd-extensions/7.md).

## AUTHOR

David Parsons (orc@pell.portland.or.us)
