24 lines
758 B
C
24 lines
758 B
C
/*
|
|
* TinyBlocks - tb_markdown.h
|
|
* Library tinyblocks-markdown: converte Markdown para HTML, XML ou SVG.
|
|
* Independente do editor.
|
|
*/
|
|
#ifndef TINYBLOCKS_MARKDOWN_H
|
|
#define TINYBLOCKS_MARKDOWN_H
|
|
|
|
#include <tinyblocks/tinyblocks.h>
|
|
|
|
TB_API const TinyBlocks_LibraryDescriptor* tb_markdown_get_library(void);
|
|
|
|
/* -- API C (resultados com malloc; libere com free) ---------------------- */
|
|
TB_API char* tb_markdown_to_html(const char* md);
|
|
TB_API char* tb_markdown_to_xml(const char* md);
|
|
TB_API char* tb_markdown_to_svg(const char* md);
|
|
|
|
/* Variante do SVG com largura/fonte configuraveis. */
|
|
TB_API char* tb_markdown_to_svg_opts(const char* md, int width, int font_size);
|
|
|
|
TB_API const char* tb_markdown_last_error(void);
|
|
|
|
#endif /* TINYBLOCKS_MARKDOWN_H */
|