summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render.c3
-rw-r--r--src/render.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index fdd73df..f374b1c 100644
--- a/src/render.c
+++ b/src/render.c
@@ -159,7 +159,8 @@ char *cmark_render(cmark_node *root, int options, int width,
char *result;
cmark_iter *iter = cmark_iter_new(root);
- cmark_renderer renderer = {mem, &buf, &pref, 0, width,
+ cmark_renderer renderer = {options,
+ mem, &buf, &pref, 0, width,
0, 0, true, true, false,
false, outc, S_cr, S_blankline, S_out};
diff --git a/src/render.h b/src/render.h
index ab11039..0575340 100644
--- a/src/render.h
+++ b/src/render.h
@@ -12,6 +12,7 @@ extern "C" {
typedef enum { LITERAL, NORMAL, TITLE, URL } cmark_escaping;
struct cmark_renderer {
+ int options;
cmark_mem *mem;
cmark_strbuf *buffer;
cmark_strbuf *prefix;