summaryrefslogtreecommitdiff
path: root/src/smart.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-14 21:18:55 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-14 22:36:34 -0800
commit5860d60cc79332c01da59f39e90fff2bcc8a5e9e (patch)
tree5e3d033c11cdbf50ac8c34f93389492c793579fc /src/smart.h
parent7c92577bbb670ddfbf6df5ee4b931c27548230cc (diff)
Added smart.c, smart.h with function abstracting smart punct rendering.
Also fixed some bugs in earlier smart handling. Now handles UTF-8.
Diffstat (limited to 'src/smart.h')
-rw-r--r--src/smart.h28
1 files changed, 28 insertions, 0 deletions
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 <stddef.h>
+#include <stdarg.h>
+#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
+