Skip to content

Commit

Permalink
Change char_escape to pass its backslash through normal_text if it is…
Browse files Browse the repository at this point in the history
…n't escaping anything. This prevents this one weird case where test isn't passed through normal_text.
  • Loading branch information
Jeremy Sharpe committed Dec 3, 2015
1 parent b234ae0 commit 9489d40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,12 @@ char_escape(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_t off
}
else hoedown_buffer_putc(ob, data[1]);
} else if (size == 1) {
hoedown_buffer_putc(ob, data[0]);
if (doc->md.normal_text) {
work.data = data;
work.size = 1;
doc->md.normal_text(ob, &work, &doc->data);
}
else hoedown_buffer_putc(ob, data[0]);
}

return 2;
Expand Down

0 comments on commit 9489d40

Please sign in to comment.