The Termynal project uses a HTML-based format for creating terminal session recordings. This should be relatively straightforward to replicate now that comments and timings are implemented. I am not sure about reading in Termynal files, but I will investigate the format.