Warning, /education/cantor/thirdparty/discount-2.2.6-patched/mkd-line.3 is written in an unsupported language. File is not indexed.
0001 .\" 0002 .Dd January 18, 2008 0003 .Dt MKD_LINE 3 0004 .Os Mastodon 0005 .Sh NAME 0006 .Nm mkd_line 0007 .Nd do Markdown translation of small items 0008 .Sh LIBRARY 0009 Markdown 0010 .Pq libmarkdown , -lmarkdown 0011 .Sh SYNOPSIS 0012 .Fd #include <mkdio.h> 0013 .Ft int 0014 .Fn mkd_line "char *string" "int size" "char **doc" "int flags" 0015 .Ft int 0016 .Fn mkd_generateline "char *string" "int size" "FILE *output" "int flags" 0017 .Sh DESCRIPTION 0018 .Pp 0019 Occasionally one might want to do markdown translations on fragments of 0020 data, like the title of an weblog article, a date, or a simple signature 0021 line. 0022 .Nm mkd_line 0023 and 0024 .Nm mkd_generateline 0025 allow you to do markdown translations on small blocks of text. 0026 .Nm mkd_line 0027 allocates a buffer, then writes the translated text into that buffer, 0028 and 0029 .Nm mkd_generateline 0030 writes the output to the specified 0031 .Ar FILE* . 0032 .Sh SEE ALSO 0033 .Xr markdown 1 , 0034 .Xr markdown 3 , 0035 .Xr markdown 7 , 0036 .Xr mkd-extensions 7 , 0037 .Xr mmap 2 . 0038 .Pp 0039 http://daringfireball.net/projects/markdown/syntax 0040 .Sh BUGS 0041 Error handling is minimal at best.