#ifndef MD_RENDER_H
#define MD_RENDER_H

#include <gtk/gtk.h>

typedef struct {
    char *text;
    int line;
    int level;
} MdHeader;

void md_render_init_tags(GtkTextBuffer *buffer);
void md_render_highlight_editor(GtkTextBuffer *buffer, int theme);
void md_render_to_buffer(GtkTextBuffer *buffer, const char *text, int theme);
char* md_to_html(const char *text);
GList* md_get_headers(const char *text);
void md_free_headers(GList *headers);

#endif
