Interesting question. My intuition says <del>~foo~</del>, <del>~foo</del>, and <del>~~foo~~</del>, but GitHub actually renders them as ~~~foo~~~, ~~~foo~~, and ~~~~foo~~~~, and so does my implementation. In any case, I've added a test.