Merge pull request #90 from gregleaver/toc_escaping

Escape html inside table of contents.
This commit is contained in:
Vicent Martí 2012-02-15 06:54:33 -08:00
commit b380583a4c

View file

@ -509,7 +509,7 @@ toc_header(struct buf *ob, const struct buf *text, int level, void *opaque)
bufprintf(ob, "<a href=\"#toc_%d\">", options->toc_data.header_count++);
if (text)
bufput(ob, text->data, text->size);
escape_html(ob, text->data, text->size);
BUFPUTSL(ob, "</a>\n");
}