Text::Markdown::Discount
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
986 B

  1. .\"
  2. .Dd January 18, 2008
  3. .Dt MKD_LINE 3
  4. .Os Mastodon
  5. .Sh NAME
  6. .Nm mkd_line
  7. .Nd do Markdown translation of small items
  8. .Sh LIBRARY
  9. Markdown
  10. .Pq libmarkdown , -lmarkdown
  11. .Sh SYNOPSIS
  12. .Fd #include <mkdio.h>
  13. .Ft int
  14. .Fn mkd_line "char *string" "int size" "char **doc" "int flags"
  15. .Ft int
  16. .Fn mkd_generateline "char *string" "int size" "FILE *output" "int flags"
  17. .Sh DESCRIPTION
  18. .Pp
  19. Occasionally one might want to do markdown translations on fragments of
  20. data, like the title of an weblog article, a date, or a simple signature
  21. line.
  22. .Nm mkd_line
  23. and
  24. .Nm mkd_generateline
  25. allow you to do markdown translations on small blocks of text.
  26. .Nm mkd_line
  27. allocates a buffer, then writes the translated text into that buffer,
  28. and
  29. .Nm mkd_generateline
  30. writes the output to the specified
  31. .Ar FILE* .
  32. .Sh SEE ALSO
  33. .Xr markdown 1 ,
  34. .Xr markdown 3 ,
  35. .Xr markdown 7 ,
  36. .Xr mkd-extensions 7 ,
  37. .Xr mmap 2 .
  38. .Pp
  39. http://daringfireball.net/projects/markdown/syntax
  40. .Sh BUGS
  41. Error handling is minimal at best.