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

# mkd-line(3)

do Markdown translation of small items

## NAME

**mkd\_line** – do Markdown translation of small items

## LIBRARY

Markdown  (libmarkdown, -lmarkdown)

## SYNOPSIS

**#include \<mkdio.h\>**

*int*\

**mkd\_line**(*char \*string*, *int size*, *char \*\*doc*, *int flags*);

*int*\

**mkd\_generateline**(*char \*string*, *int size*, *FILE \*output*, *int flags*);

## DESCRIPTION

Occasionally one might want to do markdown translations on fragments of data, like the title of an weblog article, a date, or a simple signature line. **mkd\_line** and **mkd\_generateline** allow you to do markdown translations on small blocks of text. **mkd\_line** allocates a buffer, then writes the translated text into that buffer, and **mkd\_generateline** writes the output to the specified *FILE\**.

## SEE ALSO

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

http://daringfireball.net/projects/markdown/syntax

## BUGS

Error handling is minimal at best.
