Ejemplo n.º 1
0
static int
rndr_autolink(struct buf *ob, const struct buf *link, enum mkd_autolink type, void *opaque)
{
    PyObject *is_email = Py_False;
    if (type == MKDA_EMAIL) {
        is_email = Py_True;
    }

    PROCESS_SPAN("autolink", PY_STR(link), is_email, NULL);
}
Ejemplo n.º 2
0
static void
rndr_list(struct buf *ob, const struct buf *text, int flags, void *opaque)
{
    PyObject *is_ordered = Py_False;
    if (flags & MKD_LIST_ORDERED) {
        is_ordered = Py_True;
    }

    PROCESS_BLOCK("list", PY_STR(text), is_ordered, NULL);
}
Ejemplo n.º 3
0
static int
rndr_autolink(hoedown_buffer *ob, const hoedown_buffer *link, hoedown_autolink_type type, const hoedown_renderer_data *data)
{
    PyObject *is_email = Py_False;
    if (type == HOEDOWN_AUTOLINK_EMAIL) {
        is_email = Py_True;
    }

    PROCESS_SPAN("autolink", PY_STR(link), is_email, NULL);
}
Ejemplo n.º 4
0
static void
rndr_list(hoedown_buffer *ob, const hoedown_buffer *text, hoedown_list_flags flags, const hoedown_renderer_data *data)
{
    PyObject *is_ordered = Py_False;
    if (flags & HOEDOWN_LIST_ORDERED) {
        is_ordered = Py_True;
    }

    PROCESS_BLOCK("list", PY_STR(text), is_ordered, NULL);
}
Ejemplo n.º 5
0
static int
rndr_image(struct buf *ob, const struct buf *link, const struct buf *title, const struct buf *alt, void *opaque)
{
    PROCESS_SPAN("image", PY_STR(link), PY_STR(title), PY_STR(alt), NULL);
}
Ejemplo n.º 6
0
static void
rndr_entity(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_BLOCK("entity", PY_STR(text), NULL);
}
Ejemplo n.º 7
0
static void
rndr_header(struct buf *ob, const struct buf *text, int level, void *opaque)
{
    PROCESS_BLOCK("header", PY_STR(text), PY_INT(level), NULL);
}
Ejemplo n.º 8
0
static void
rndr_blockquote(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("block_quote", PY_STR(text), NULL);
}
Ejemplo n.º 9
0
static void
rndr_normal_text(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("normal_text", PY_STR(text), NULL);
}
Ejemplo n.º 10
0
static int
rndr_subscript(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("subscript", PY_STR(text), NULL);
}
Ejemplo n.º 11
0
static int
rndr_triple_emphasis(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("triple_emphasis", PY_STR(text), NULL);
}
Ejemplo n.º 12
0
static int
rndr_ins(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("ins", PY_STR(text), NULL);
}
Ejemplo n.º 13
0
static void
rndr_blockmath(struct buf *ob, const struct buf *math, void *opaque)
{
    PROCESS_BLOCK("block_math", PY_STR(math), NULL);
}
Ejemplo n.º 14
0
static void
rndr_header(hoedown_buffer *ob, const hoedown_buffer *text, int level, const hoedown_renderer_data *data)
{
    PROCESS_BLOCK("header", PY_STR(text), PY_INT(level), NULL);
}
Ejemplo n.º 15
0
static void
rndr_raw_block(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_BLOCK("block_html", PY_STR(text), NULL);
}
Ejemplo n.º 16
0
static void
rndr_blockcode(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_buffer *lang, const hoedown_renderer_data *data)
{
    PROCESS_BLOCK("block_code", PY_STR(text), PY_STR(lang), NULL);
}
Ejemplo n.º 17
0
static void
rndr_normal_text(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_BLOCK("normal_text", PY_STR(text), NULL);
}
Ejemplo n.º 18
0
static int
rndr_link(struct buf *ob, const struct buf *link, const struct buf *title, const struct buf *content, void *opaque)
{
    PROCESS_SPAN("link", PY_STR(link), PY_STR(title), PY_STR(content), NULL);
}
Ejemplo n.º 19
0
static int
rndr_raw_html(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("raw_html", PY_STR(text), NULL);
}
Ejemplo n.º 20
0
static void
rndr_paragraph(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("paragraph", PY_STR(text), NULL);
}
Ejemplo n.º 21
0
static int
rndr_strikethrough(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("strikethrough", PY_STR(text), NULL);
}
Ejemplo n.º 22
0
static void
rndr_table(struct buf *ob, const struct buf *header, const struct buf *body, void *opaque)
{
    PROCESS_BLOCK("table", PY_STR(header), PY_STR(body), NULL);
}
Ejemplo n.º 23
0
static void
rndr_entity(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("entity", PY_STR(text), NULL);
}
Ejemplo n.º 24
0
static void
rndr_tablerow(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("table_row", PY_STR(text), NULL);
}
Ejemplo n.º 25
0
static void
rndr_blockcode(struct buf *ob, const struct buf *text, const struct buf *lang, void *opaque)
{
    PROCESS_BLOCK("block_code", PY_STR(text), PY_STR(lang), NULL);
}
Ejemplo n.º 26
0
static void
rndr_tablecell(struct buf *ob, const struct buf *text, int flags, void *opaque)
{
    PROCESS_BLOCK("table_cell", PY_STR(text), PY_INT(flags), NULL);
}
Ejemplo n.º 27
0
static void
rndr_raw_block(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("block_html", PY_STR(text), NULL);
}
Ejemplo n.º 28
0
static int
rndr_superscript(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("superscript", PY_STR(text), NULL);
}
Ejemplo n.º 29
0
static int
rndr_codespan(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("codespan", PY_STR(text), NULL);
}
Ejemplo n.º 30
0
static int
rndr_math(hoedown_buffer *ob, const hoedown_buffer *text, int displaymode, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("math", PY_STR(text), NULL);
}