I have wondered many times.

Of course I can always use a browser but it’s overkill.

The same goes for yad or zenity, they pull in webkit which is a full-fledged browser engine, and at least yad does not have an offline mode.

I just want to look at some local HTML (incl. images) & CSS styling.

  • johntash@eviltoast.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    If you’re wanting to view the rendered page, then you’re looking for a browser. Even if whatever you use doesn’t support something like javascript, it’d probably still be considered a browser?

    If you don’t care about all the styling, there are tools to extract the main content and convert it to markdown.

  • Onno (VK6FLAB)@lemmy.radio
    link
    fedilink
    arrow-up
    3
    ·
    25 days ago

    A browser is specifically designed for rendering HTML and does it better than anything else.

    However, if you must, you can use something like pandoc to convert the HTML to something else, like a PDF or an Office document.

    An alternative is to use a text only browser like lynx.

    The ides that a browser is overkill is only true if you don’t already have one installed and only if you’re happy to put up with half baked rendering.

    So … use a browser.

  • nesc@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    1
    ·
    25 days ago

    If you have a browser already installed installing another one is an overkill.