Consider also tilde as a heading marker

Add `~` to the regex that finds the heading.