diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-01-10 09:03:04 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-10 09:03:04 -0800 |
commit | 2da6c9b98e1c5ab0c307a47f63c78e6d6c85543e (patch) | |
tree | d4f7891f4c50b2d632ec6d0f3672f486f4143819 | |
parent | 845bce401846732431f984907a0472e3f0fd8766 (diff) |
Add options field to cmark_renderer.
This is an internal change, as this isn't part of the
public API.
-rw-r--r-- | src/render.c | 3 | ||||
-rw-r--r-- | src/render.h | 1 |
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; |