Commits


move parser declarations so parser.h


fix detection of empty lines inside pre blocks empty lines inside pre blocks were misleadingly matched as LINE_TEXT.


drop the in_body field and use a bit in the flags field


add hide-pre-context and hide-pre-blocks * hide-pre-context: if nonzero hide the start and end line of a pre block (i.e. ```). Defaults to zero. * add: hide-pre-blocks: if nonzero hide by default the body of a pre block; push-button can be used to toggle visibility per-block. Defaults to zero.


fix the tab title heuristic the *last* level 2 or 3 heading would be used as tab title instead of the first one.


heuristic to obtain the page title if not h1 found


include style


typo


refactor parsers: add parser_foreach_line to rule 'em all


in pre lines, add the alt text as line text


retire telescope_strnchr in favor of memmem


fix various warnings, no functional changes now that we have a bounch of -Wxxx flags during compilation, let's fix everything.


show page title in tabs


reuse append and set_buf across our parsers


give each parser a name