Hacker News new | ask | show | jobs
by beefhash 3067 days ago
UNIX has been doing that for the past 40 years until AT&T ripped troff out of standard UNIX installations.

Look into groff and possibly heirloom doctools. It's fairly difficult to learn and the default macro packages on most installations may be somewhat difficult to come to terms with/adjust for your own needs. You're definitely expected to learn basic troff macros to hack up a macro package if needed. See also: http://www.schaffter.ca/mom/ and https://utroff.org/