ext/greenmat/gm_render.c in greenmat-3.5.1.1 vs ext/greenmat/gm_render.c in greenmat-3.5.1.2

- old
+ new

@@ -53,10 +53,16 @@ { BLOCK_CALLBACK("block_code", 2, buf2str(text), buf2str(lang)); } static void +rndr_blockcustom(struct buf *ob, const struct buf *text, const struct buf *type, void *opaque) +{ + BLOCK_CALLBACK("block_custom", 2, buf2str(text), buf2str(type)); +} + +static void rndr_blockquote(struct buf *ob, const struct buf *text, void *opaque) { BLOCK_CALLBACK("block_quote", 1, buf2str(text)); } @@ -291,10 +297,11 @@ rb_hash_foreach(opt->link_attributes, &cb_link_attribute, (VALUE)ob); } static struct sd_callbacks rb_greenmat_callbacks = { rndr_blockcode, + rndr_blockcustom, rndr_blockquote, rndr_raw_block, rndr_header, rndr_hrule, rndr_list, @@ -329,9 +336,10 @@ rndr_doc_footer, }; static const char *rb_greenmat_method_names[] = { "block_code", + "block_custom", "block_quote", "block_html", "header", "hrule", "list",