Example #1
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);
}
Example #2
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);
}
Example #3
0
static int
rndr_ins(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("ins", PY_STR(text), NULL);
}
Example #4
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);
}
Example #5
0
static int
rndr_codespan(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("codespan", PY_STR(text), NULL);
}
Example #6
0
static int
rndr_strikethrough(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("strikethrough", PY_STR(text), NULL);
}
Example #7
0
static int
rndr_raw_html(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("raw_html", PY_STR(text), NULL);
}
Example #8
0
static int
rndr_linebreak(struct buf *ob, void *opaque)
{
    PROCESS_SPAN("linebreak", NULL);
}
Example #9
0
static int
rndr_raw_html(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("raw_html", PY_STR(text), NULL);
}
Example #10
0
static int
rndr_link(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("link", PY_STR(content), PY_STR(link), PY_STR(title), NULL);
}
Example #11
0
static int
rndr_linebreak(hoedown_buffer *ob, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("linebreak", NULL);
}
Example #12
0
static int
rndr_image(hoedown_buffer *ob, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_buffer *alt, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("image", PY_STR(link), PY_STR(title), PY_STR(alt), NULL);
}
Example #13
0
static int
rndr_quote(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("quote", PY_STR(text), NULL);
}
Example #14
0
static int
rndr_highlight(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("highlight", PY_STR(text), NULL);
}
Example #15
0
static int
rndr_codespan(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("codespan", PY_STR(text), NULL);
}
Example #16
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);
}
Example #17
0
static int
rndr_triple_emphasis(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("triple_emphasis", PY_STR(text), NULL);
}
Example #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);
}
Example #19
0
static int
rndr_strikethrough(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("strikethrough", PY_STR(text), NULL);
}
Example #20
0
static int
rndr_triple_emphasis(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("triple_emphasis", PY_STR(text), NULL);
}
Example #21
0
static int
rndr_superscript(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("superscript", PY_STR(text), NULL);
}
Example #22
0
static int
rndr_subscript(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("subscript", PY_STR(text), NULL);
}
Example #23
0
static int
rndr_footnote_ref(hoedown_buffer *ob, unsigned int num, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("footnote_ref", PY_INT(num), NULL);
}