Roundtripping markdown is actually quite hard. We don't actually require that. All we need is once parsing the markdown to find the right marker and the headings. We then manually generate markdown and all other content can be copied unparsed again.
This updates dependencies, causing #19 to be fixed. This also adds a regression test for #19.