diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -37,6 +37,7 @@ void print_usage() {    printf("  --sourcepos      Include source position attribute\n");    printf("  --hardbreaks     Treat newlines as hard line breaks\n");    printf("  --nobreaks       Render soft line breaks as spaces\n"); +  printf("  --safe           Omit raw HTML and dangerous URLs\n");    printf("  --unsafe         Render raw HTML and dangerous URLs\n");    printf("  --smart          Use smart punctuation\n");    printf("  --validate-utf8  Replace invalid UTF-8 sequences with U+FFFD\n"); @@ -111,6 +112,8 @@ int main(int argc, char *argv[]) {        options |= CMARK_OPT_NOBREAKS;      } else if (strcmp(argv[i], "--smart") == 0) {        options |= CMARK_OPT_SMART; +    } else if (strcmp(argv[i], "--safe") == 0) { +      options |= CMARK_OPT_SAFE;      } else if (strcmp(argv[i], "--unsafe") == 0) {        options |= CMARK_OPT_UNSAFE;      } else if (strcmp(argv[i], "--validate-utf8") == 0) { | 
