Parser development
xaringan2reveal.R is the sketch for a parser built on my experiences from converting the rmarkdown.Rmd lecture with find/replace. It does not yield qmd files that can be rendered, predominantly because of the setup chunks. These can probably be removed without replacement. Note the parser operates on the whole file, so it it easier (but not very really easy) to work across line breaks and retain more context.
The biggest issue is usually missing closing tags. We should consider replace all (or many) closing brackets ]
with closing divs (:::
).
The parser contains TODOs for guidance of features that are probably useful to implement.