mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 22:02:32 -04:00
adding pegmarkdown support library.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5953 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4413536926
commit
3be22536df
107 changed files with 20038 additions and 0 deletions
38
supportlibs/pegmarkdown/markdown_lib.h
Normal file
38
supportlibs/pegmarkdown/markdown_lib.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#ifndef MARKDOWN_LIB_H
|
||||
#define MARKDOWN_LIB_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
enum markdown_extensions {
|
||||
EXT_SMART = 0x01,
|
||||
EXT_NOTES = 0x02,
|
||||
EXT_FILTER_HTML = 0x04,
|
||||
EXT_FILTER_STYLES = 0x08
|
||||
};
|
||||
|
||||
enum markdown_formats {
|
||||
HTML_FORMAT,
|
||||
LATEX_FORMAT,
|
||||
GROFF_MM_FORMAT,
|
||||
ODF_FORMAT
|
||||
};
|
||||
|
||||
GString * markdown_to_g_string(char *text, int extensions, int output_format);
|
||||
char * markdown_to_string(char *text, int extensions, int output_format);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/* vim: set ts=4 sw=4 : */
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue