mkd_line(3)

mkd_line3

Do markdown translation of small items

Usage

#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);

Library

Markdown (libmarkdown, -lmarkdown)

Overview

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*.

Bugs

Error handling is minimal at best.

From discount 3.0.2.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.