Make snippet from formatted selection

Currently, when a snippet is created from the right-click menu, it copies only the unformatted text. Any of the links, etc., are lost. It would be useful to retain these rather than have to re-insert them.