summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-14 16:36:43 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-14 17:52:55 -0800
commitbb26b18173df983c57459809e8b1691b89907a58 (patch)
treea7878c0960755c79bf79a310363f20a91c2c87d4 /src/cmark.h
parentc6417fc0b9cd240eb175501d44f68ea9d4406ec4 (diff)
Added CMARK_OPT_SMARTPUNCT and --smart option.
So far this is only implemented for the HTML renderer. Ultimately some of this should be factored out into a form that can be used in other renderers.
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h
index 9f312bc..f106371 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -496,6 +496,10 @@ char *cmark_render_man(cmark_node *root, long options);
*/
#define CMARK_OPT_NORMALIZE 4
+/** Convert straight quotes to curly, --- to em dashes, -- to en dashes.
+ */
+#define CMARK_OPT_SMARTPUNCT 8
+
/**
* ## Version information
*/