Embedding the “title” into the header is, in my opinion, a mistake. The header should just say what count of bytes of the prefix of the document are the title (with zero padding); that lets variable-width data be variable, and fixed-width data be fixed.
That exists for man pages. There are programs that will parse them into html (e.g. man2html) so you can locally browse them. There are GUI programs (e.g. seeman) that allow you to view them in a way very similar to man pages.
KDE had an offline manpage HTML renderer for decades. Instead of "man gcc" you just typed "help:/gcc" into KDEs default web browser, Konqueror. And this still works today. The manpages look as beautiful as the given example above.
0. https://www.youtube.com/watch?v=AdfJrApA560