html2stx(1)
π html2stx(1) β the General Commands Manual glow-up β¨
okay bestie, gather round, because this little cutie lives in section 1 of the General Commands Manual and she is so good at what she does π
πΈ NAME πΈ
html2stx β convert HTML documents into Stx π¦
β¨ SYNOPSIS β¨
html2stx [ file ]
π DESCRIPTION π
so here's the tea: html2stx takes the file you hand it β which is supposed to contain an HTML document, no pressure β and converts it into structured text, aka Stx. and if you don't give it a file at all? it just reads from standard input instead. lowkey flexible of her π
now, the important part, and I need you to hear me on this: she does not try to convert every single possibly-convertible piece of markup into Stx. nope. for example, <font> tags are justβ¦ ignored. simply not invited to the party π and honestly? that tends to result in a nice, clean, beautiful document β¨ like, the vibe is immaculate.
but if it doesn't come out cute, that's probably because the source document didn't contain enough information to start with in the first place. not her fault, bestie π
π OPTIONS π
None.
that's right. zero options. she's a simple girl. she doesn't need flags. periodt π
π¨ DIAGNOSTICS π¨
html2stx is a python script, so if something goes amiss she will straight up throw an exception. no chill, no graceful exit, just vibes and traceback π
in that case, the return value will be non-zero. so like, check that if you're scripting. iykyk.
π SEE ALSO π
stx2any (1)Stx-ref.html
go read those too, bestie, they're part of the lore π«Ά
π BUGS π
listen, she's iconic but she's not perfect, and we're being honest about it:
- The word wrapping algorithm is probably not very clever. π
- Sometimes there are extra linebreaks in the output. (not me noticingβ¦ π)
- Probably many others. π
π AUTHOR π
This manual page was written by Panu A. Kalliokoski.
html2stx is derived from the html2text utility by Aaron Swartz. html2text is a utility for converting html into βMarkdownβ structured text; the changes required to make it work for Stx were done by Panu A. Kalliokoski.
and that's the whole page, bestie π shoutout to Panu A. Kalliokoski for writing this manual page, and to html2stx(1) herself for existing in the General Commands Manual β slay, go convert something cute πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: stx2any 1.56-2.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms