Here's an attempt to do some basic WYSIWYG printing in GNU Emacs. Sharing the results of my initial attempt. Use it as you see fit.

Code: https://gitlab.com/atamariya/emacs/tree/dev

Screenshot: https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-emacs.html