In addition to outputting HTML, it could output JSON that could be rendered to HTML, the terminal, or JSX:

https://github.com/wooorm/lowlight#projects

oo cool, wooorm looks useful, thanks for the link

You're not wrong, but wooorm is a person.

Remark and Unified are some well-known projects that wooorm maintains.

https://github.com/remarkjs/remark https://unifiedjs.com/