| 212 | } |
| 213 | |
| 214 | static void |
| 215 | rndr_header(hoedown_buffer *ob, const hoedown_buffer *content, int level, const hoedown_renderer_data *data) |
| 216 | { |
| 217 | hoedown_html_renderer_state *state = data->opaque; |
| 218 | |
| 219 | if (ob->size) |
| 220 | hoedown_buffer_putc(ob, '\n'); |
| 221 | |
| 222 | if (level <= state->toc_data.nesting_level) |
| 223 | hoedown_buffer_printf(ob, "<h%d id=\"toc_%d\">", level, state->toc_data.header_count++); |
| 224 | else |
| 225 | hoedown_buffer_printf(ob, "<h%d>", level); |
| 226 | |
| 227 | if (content) hoedown_buffer_put(ob, content->data, content->size); |
| 228 | hoedown_buffer_printf(ob, "</h%d>\n", level); |
| 229 | } |
| 230 | |
| 231 | static int |
| 232 | rndr_link(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_renderer_data *data) |
nothing calls this directly
no test coverage detected