MKD_LINE(3)

πŸ“¦
version 3.0.2.0 Β· 2 versions
, in arch rolling, debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– MKD_LINE(3) πŸ’–

okay so bestie, welcome to the Library Functions Manual page for mkd_line ✨


🌸 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 πŸ’…

so like, sometimes you don't want to run Markdown over a whole entire document, you know? Sometimes you just want to translate a fragment of data β€” the title of a weblog article, a date, or a simple signature line 🌸 little baby snippets, basically.

mkd_line and mkd_generateline are the besties that let you do Markdown translations on small blocks of text 🫢

  • mkd_line β€” allocates a buffer, then writes the translated text into that buffer. it's giving "here's your string back, but slayed" πŸ’…
  • mkd_generateline β€” writes the output straight to the specified FILE* πŸ‘‘

pick whichever one matches your vibe, they do the same translation, just hand you the result differently ✨


πŸ‘€ SEE ALSO πŸ‘€


πŸ’€ BUGS πŸ’€

ngl… error handling is minimal at best 😭 like, the bare minimum, fr fr. don't come crying to her when something goes sideways, she is NOT doing a vibe check on your errors πŸ’€


a little sign-off from your girl: this page came from Mastodon, dated January 18, 2008 πŸŽ€ stay slaying, keep your buffers allocated, and go translate some tiny fragments bestie πŸ’–βœ¨