From 9e154368dd8cb9a1a00340c2210722f22160c402 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Jul 2015 16:55:22 -0700 Subject: Added cmark_render_code_point. --- src/render.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index e1545ea..7331a27 100644 --- a/src/render.c +++ b/src/render.c @@ -125,6 +125,13 @@ cmark_render_ascii(cmark_renderer* renderer, const char* s) renderer->column += renderer->buffer->size - origsize; } +void +cmark_render_code_point(cmark_renderer *renderer, uint8_t c) +{ + utf8proc_encode_char(c, renderer->buffer); + renderer->column += 1; +} + char* cmark_render(cmark_node *root, int options, -- cgit v1.2.3