summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmark.h2
-rw-r--r--src/inlines.c8
-rw-r--r--src/main.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/cmark.h b/src/cmark.h
index fc20409..3878355 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -498,7 +498,7 @@ char *cmark_render_man(cmark_node *root, int options);
/** Convert straight quotes to curly, --- to em dashes, -- to en dashes.
*/
-#define CMARK_OPT_SMARTPUNCT 8
+#define CMARK_OPT_SMART 8
/**
* ## Version information
diff --git a/src/inlines.c b/src/inlines.c
index 202dcd6..cc96141 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -971,7 +971,7 @@ static int subject_find_special_char(subject *subj, int options)
while (n < subj->input.len) {
if (SPECIAL_CHARS[subj->input.data[n]])
return n;
- if (options & CMARK_OPT_SMARTPUNCT &&
+ if (options & CMARK_OPT_SMART &&
SMART_PUNCT_CHARS[subj->input.data[n]])
return n;
n++;
@@ -1012,13 +1012,13 @@ static int parse_inline(subject* subj, cmark_node * parent, int options)
case '_':
case '\'':
case '"':
- new_inl = handle_delim(subj, c, options & CMARK_OPT_SMARTPUNCT);
+ new_inl = handle_delim(subj, c, options & CMARK_OPT_SMART);
break;
case '-':
- new_inl = handle_hyphen(subj, options & CMARK_OPT_SMARTPUNCT);
+ new_inl = handle_hyphen(subj, options & CMARK_OPT_SMART);
break;
case '.':
- new_inl = handle_period(subj, options & CMARK_OPT_SMARTPUNCT);
+ new_inl = handle_period(subj, options & CMARK_OPT_SMART);
break;
case '[':
advance(subj);
diff --git a/src/main.c b/src/main.c
index b8ad264..9a8fd98 100644
--- a/src/main.c
+++ b/src/main.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
} else if (strcmp(argv[i], "--hardbreaks") == 0) {
options |= CMARK_OPT_HARDBREAKS;
} else if (strcmp(argv[i], "--smart") == 0) {
- options |= CMARK_OPT_SMARTPUNCT;
+ options |= CMARK_OPT_SMART;
} else if (strcmp(argv[i], "--normalize") == 0) {
options |= CMARK_OPT_NORMALIZE;
} else if ((strcmp(argv[i], "--help") == 0) ||