Merge pull request #186 from jasharpe/skip_entity_and_pass_escape_thru_normal_text
Change char_escape to pass non-escaping backslashes through normal_text
This commit is contained in:
commit
6e8a6f68ae
1 changed files with 6 additions and 1 deletions
|
@ -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 hoedown_buffer_putc(ob, data[1]);
|
||||||
} else if (size == 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;
|
return 2;
|
||||||
|
|
Loading…
Reference in a new issue