Its output is HTML code so to save as plain text perhaps a good idea would be use markdown[2]
------ [1] https://github.com/basecamp/trix [2] https://getsolid.io/blog/trix/