diff options
Diffstat (limited to 'markdown.c')
-rw-r--r-- | markdown.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -28,6 +28,14 @@ static void output_md_text(FILE *out, int *flags, int line_number, const char *t continue; } switch (*p) { + case '\\': + ++p; + if (*p == '\0') { + fprintf(stderr, "line %d: Unterminated \\.\n", line_number); + exit(-1); + } + fprintf(out, "%c", *p); + break; case '*': if (p[1] == '*') { /* bold */ |