Switching to triple tildes for code blocks to eliminate dangling blank lines in pre-formatted code

Should close #308.