summaryrefslogtreecommitdiff
path: root/markdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'markdown.c')
-rw-r--r--markdown.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/markdown.c b/markdown.c
index 3b812aa..a99e179 100644
--- a/markdown.c
+++ b/markdown.c
@@ -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 */