diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-15 18:31:07 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-15 21:45:27 -0800 |
commit | 27373892cb98a2a6a1d35fba28798d9117fff58f (patch) | |
tree | b4ae1c9d3b1df15d4aae9ddcc6a1c5a3fa5ffccf /src/html.c | |
parent | 376f81ab8aa017ab01040e10d393d7682674562d (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.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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: |