We want to write our own serializer to handle clipboard copy / paste. Possibly, we can also re-use this for the export to markdown / html functions