Tex

Results 2 issues of Tex

Fixes #303 The attachment link is included at the start of `this.text`

The version of `sed` shipped with macos requires the suffix argument to be supplied when using `-i`. [Relevant stackexchange question](https://unix.stackexchange.com/questions/663369/invalid-command-code-using-sed-to-replace-characters-inline)