コード例 #1
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #2
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #3
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}
コード例 #4
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}
コード例 #5
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #6
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
static void
rndr_entity(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_BLOCK("entity", PY_STR(text), NULL);
}
コード例 #7
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #8
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static void
rndr_blockquote(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("block_quote", PY_STR(text), NULL);
}
コード例 #9
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static void
rndr_normal_text(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("normal_text", PY_STR(text), NULL);
}
コード例 #10
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static int
rndr_subscript(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("subscript", PY_STR(text), NULL);
}
コード例 #11
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static int
rndr_triple_emphasis(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("triple_emphasis", PY_STR(text), NULL);
}
コード例 #12
0
ファイル: wrapper.c プロジェクト: aleray/misaka
static int
rndr_ins(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("ins", PY_STR(text), NULL);
}
コード例 #13
0
ファイル: wrapper.c プロジェクト: beingryu/misaka
static void
rndr_blockmath(struct buf *ob, const struct buf *math, void *opaque)
{
    PROCESS_BLOCK("block_math", PY_STR(math), NULL);
}
コード例 #14
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}
コード例 #15
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}
コード例 #16
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}
コード例 #17
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}
コード例 #18
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #19
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static int
rndr_raw_html(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("raw_html", PY_STR(text), NULL);
}
コード例 #20
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static void
rndr_paragraph(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("paragraph", PY_STR(text), NULL);
}
コード例 #21
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static int
rndr_strikethrough(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("strikethrough", PY_STR(text), NULL);
}
コード例 #22
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #23
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static void
rndr_entity(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("entity", PY_STR(text), NULL);
}
コード例 #24
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static void
rndr_tablerow(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("table_row", PY_STR(text), NULL);
}
コード例 #25
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #26
0
ファイル: wrapper.c プロジェクト: altertain/misaka
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);
}
コード例 #27
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static void
rndr_raw_block(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_BLOCK("block_html", PY_STR(text), NULL);
}
コード例 #28
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
static int
rndr_superscript(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
    PROCESS_SPAN("superscript", PY_STR(text), NULL);
}
コード例 #29
0
ファイル: wrapper.c プロジェクト: altertain/misaka
static int
rndr_codespan(struct buf *ob, const struct buf *text, void *opaque)
{
    PROCESS_SPAN("codespan", PY_STR(text), NULL);
}
コード例 #30
0
ファイル: wrapper.c プロジェクト: hhatto/python-hoedown
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);
}