summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-15 18:31:07 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-15 21:45:27 -0800
commit27373892cb98a2a6a1d35fba28798d9117fff58f (patch)
treeb4ae1c9d3b1df15d4aae9ddcc6a1c5a3fa5ffccf /src/html.c
parent376f81ab8aa017ab01040e10d393d7682674562d (diff)
Moved handling of --smart from renderer to parser.
This allows backslash escapes to disable smart quote transformations in particular cases. Closes #8.
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c10
1 files changed, 1 insertions, 9 deletions
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,
- "&ldquo;", "&rdquo;", "&lsquo;", "&rsquo;",
- "&mdash;", "&ndash;", "&hellip;");
- } 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: