summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blocks.c4
-rw-r--r--src/cmark.h4
-rw-r--r--src/main.c3
3 files changed, 1 insertions, 10 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 051d2e8..863f5c6 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -1192,9 +1192,7 @@ cmark_node *cmark_parser_finish(cmark_parser *parser) {
finalize_document(parser);
- if (parser->options & CMARK_OPT_NORMALIZE) {
- cmark_consolidate_text_nodes(parser->root);
- }
+ cmark_consolidate_text_nodes(parser->root);
cmark_strbuf_free(&parser->curline);
diff --git a/src/cmark.h b/src/cmark.h
index 6ed7eb0..793fcf4 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -563,10 +563,6 @@ char *cmark_render_latex(cmark_node *root, int options, int width);
* ### Options affecting parsing
*/
-/** Normalize tree by consolidating adjacent text nodes.
- */
-#define CMARK_OPT_NORMALIZE (1 << 8)
-
/** Validate UTF-8 in the input before parsing, replacing illegal
* sequences with the replacement character U+FFFD.
*/
diff --git a/src/main.c b/src/main.c
index 42cd8b1..9482f68 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,7 +32,6 @@ void print_usage() {
printf(" --nobreaks Render soft line breaks as spaces\n");
printf(" --safe Suppress raw HTML and dangerous URLs\n");
printf(" --smart Use smart punctuation\n");
- printf(" --normalize Consolidate adjacent text nodes\n");
printf(" --help, -h Print usage information\n");
printf(" --version Print version\n");
}
@@ -99,8 +98,6 @@ int main(int argc, char *argv[]) {
options |= CMARK_OPT_SMART;
} else if (strcmp(argv[i], "--safe") == 0) {
options |= CMARK_OPT_SAFE;
- } else if (strcmp(argv[i], "--normalize") == 0) {
- options |= CMARK_OPT_NORMALIZE;
} else if (strcmp(argv[i], "--validate-utf8") == 0) {
options |= CMARK_OPT_VALIDATE_UTF8;
} else if ((strcmp(argv[i], "--help") == 0) ||