summaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-12 16:55:22 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-12 16:55:22 -0700
commit9e154368dd8cb9a1a00340c2210722f22160c402 (patch)
tree1ccad9f306f4df5d69df29e2d71bc13948245bcc /src/render.c
parent364c683fed6269c9b21ed870a8666e2de7121335 (diff)
Added cmark_render_code_point.
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c7
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,