MKD_LINE(3)
π 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 specifiedFILE*π
pick whichever one matches your vibe, they do the same translation, just hand you the result differently β¨
π SEE ALSO π
markdown(1)markdown(3)markdown(7)mkd-extensions(7)mmap(2)http://daringfireball.net/projects/markdown/syntax
π 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 πβ¨
π¦ where this page comes from
- arch rolling: discount 3.0.2.0-1 Β· BSD-3-Clause
- debian bookworm: libmarkdown2-dev 2.2.7-2 Β· BSD-3-clause-like
- debian trixie: libmarkdown2-dev 2.2.7-2.1 Β· BSD-3-clause-like
- epel 10: discount 2.2.7-9.el10_0 Β· BSD
- epel 9: libmarkdown-devel 2.2.4-7.el9 Β· BSD
- fedora 43: discount 2.2.7-12.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: discount 2.2.7-14.fc44 Β· LicenseRef-Callaway-BSD
- opensuse-leap 16.0: libmarkdown-devel 3.0.0a-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libmarkdown-devel 3.0.0a-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libmarkdown-devel 3.0.0a-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libmarkdown-devel 3.0.0a-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libmarkdown2-dev 2.2.7-2 Β· BSD-3-clause-like
- ubuntu noble: libmarkdown2-dev 2.2.7-2build1 Β· BSD-3-clause-like
- ubuntu questing: libmarkdown2-dev 2.2.7-2.1
- ubuntu resolute: libmarkdown2-dev 2.2.7-2.1build1 Β· BSD-3-clause-like
- ubuntu stonking: libmarkdown2-dev 2.2.7-2.1build1 Β· BSD-3-clause-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms