In praise of Commonmark: wrangle (R)Markdown files without regex

Just for info, I tried this on an R Markdown file, followed by writing it back to markdown, and I didn’t get the input file exactly. :cry: It was worth trying though.