Commits


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


[gemtext] improve parse_link * add a mising `&& isspace(buf[0])' that would make the parser skip the link label * swap alt and line: line is the text, alt the URL * text is always defined, at worst is a copy of URL


[gemtext] fix append and set_buf it wouldn't resume parsing well without these


update the length in set_buf this caused a bug with long lines