You first have to save your session log:
Do not forget to save it as RTF to keep the formatting.
Then you use the texutil command:
❯ textutil -convert html *.rtf
You can find an example of the render here