From 27373892cb98a2a6a1d35fba28798d9117fff58f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 15 Feb 2015 18:31:07 -0800 Subject: Moved handling of --smart from renderer to parser. This allows backslash escapes to disable smart quote transformations in particular cases. Closes #8. --- src/html.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index 1f64196..5a64f9c 100644 --- a/src/html.c +++ b/src/html.c @@ -9,7 +9,6 @@ #include "utf8.h" #include "buffer.h" #include "houdini.h" -#include "smart.h" // Functions to convert cmark_nodes to HTML strings. @@ -219,14 +218,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, break; case CMARK_NODE_TEXT: - if (options & CMARK_OPT_SMARTPUNCT) { - escape_with_smart(html, node, escape_html, - "“", "”", "‘", "’", - "—", "–", "…"); - } else { - escape_html(html, node->as.literal.data, - node->as.literal.len); - } + escape_html(html, node->as.literal.data, node->as.literal.len); break; case CMARK_NODE_LINEBREAK: -- cgit v1.2.3