don't hook blockhtml callback when escape_html is on

This commit is contained in:
chitsaou 2011-12-08 10:44:41 +08:00
parent 4d42772c32
commit 519691a235

View file

@ -605,6 +605,6 @@ sdhtml_renderer(struct sd_callbacks *callbacks, struct html_renderopt *options,
callbacks->autolink = NULL;
}
if (render_flags & HTML_SKIP_HTML)
if (render_flags & HTML_SKIP_HTML || render_flags & HTML_ESCAPE)
callbacks->blockhtml = NULL;
}