From 5860d60cc79332c01da59f39e90fff2bcc8a5e9e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 14 Feb 2015 21:18:55 -0800 Subject: Added smart.c, smart.h with function abstracting smart punct rendering. Also fixed some bugs in earlier smart handling. Now handles UTF-8. --- src/smart.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/smart.h (limited to 'src/smart.h') diff --git a/src/smart.h b/src/smart.h new file mode 100644 index 0000000..fa614b3 --- /dev/null +++ b/src/smart.h @@ -0,0 +1,28 @@ +#ifndef CMARK_SMART_H +#define CMARK_SMART_H + +#include +#include +#include "config.h" + +#ifdef __cplusplus +extern "C" { +#endif + +void escape_with_smart(cmark_strbuf *buf, + cmark_node *node, + void (*escape)(cmark_strbuf *, const unsigned char *, int), + const char *left_double_quote, + const char *right_double_quote, + const char *left_single_quote, + const char *right_single_quote, + const char *em_dash, + const char *en_dash, + const char *ellipses); + +#ifdef __cplusplus +} +#endif + +#endif + -- cgit v1.2.3