Skip to content

Commit 2b1f032

Browse files
committed
fixup
1 parent 70bf864 commit 2b1f032

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ extern {
140140
fn hoedown_buffer_new(unit: libc::size_t) -> *mut hoedown_buffer;
141141
fn hoedown_buffer_puts(b: *mut hoedown_buffer, c: *const libc::c_char);
142142
fn hoedown_buffer_free(b: *mut hoedown_buffer);
143-
143+
fn hoedown_escape_html(ob: *mut hoedown_buffer,
144+
src: *const uint8_t,
145+
size: libc::size_t,
146+
secure: libc::c_int);
144147
}
145148

146149
/// Returns Some(code) if `s` is a line that should be stripped from
@@ -316,7 +319,7 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result {
316319
close.with_c_str(|close| {
317320
unsafe {
318321
hoedown_buffer_puts(ob, open, 2);
319-
escape_html(ob, (*text).data, (*text).size);
322+
hoedown_escape_html(ob, (*text).data, (*text).size, 0);
320323
hoedown_buffer_puts(ob, close, 2);
321324
}
322325
})

0 commit comments

Comments
 (0)