diff options
author | John MacFarlane <[email protected]> | 2015-12-28 17:08:39 -0800 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2015-12-28 17:09:02 -0800 |
commit | ce0f7d431ce3e0d8c131b81cd2f6a9a8e113fb93 (patch) | |
tree | 6fbbd999b77d7943d05b9ad5c378fe95dbcfd7aa /src/render.h | |
parent | aaa0048c0131848713226564a03ab9a4abb9ba44 (diff) |
render: added begin_content field.
This is like `begin_line` except that it doesn't trigger
production of the prefix. So it can be set after an initial
prefix (say `> `) is printed by the renderer, and consulted
in determining whether to escape content that has a special
meaning at the beginning of a line.
Used in the commonmark renderer.
Diffstat (limited to 'src/render.h')
-rw-r--r-- | src/render.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render.h b/src/render.h index 9ab347b..479936a 100644 --- a/src/render.h +++ b/src/render.h @@ -19,6 +19,7 @@ struct cmark_renderer { int need_cr; bufsize_t last_breakable; bool begin_line; + bool begin_content; bool no_wrap; bool in_tight_list_item; void (*outc)(struct cmark_renderer *, cmark_escaping, int32_t, unsigned char); |