Fix/1191 export to gist

- [x] Ready to merge