MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / rndr_header

Function rndr_header

libraries/hoedown/src/html.c:214–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static void
215rndr_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
231static int
232rndr_link(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_renderer_data *data)

Callers

nothing calls this directly

Calls 3

hoedown_buffer_putcFunction · 0.85
hoedown_buffer_printfFunction · 0.85
hoedown_buffer_putFunction · 0.85

Tested by

no test coverage detected