diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-12 16:55:22 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-12 16:55:22 -0700 |
commit | 9e154368dd8cb9a1a00340c2210722f22160c402 (patch) | |
tree | 1ccad9f306f4df5d69df29e2d71bc13948245bcc /src/render.c | |
parent | 364c683fed6269c9b21ed870a8666e2de7121335 (diff) |
Added cmark_render_code_point.
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, |