preview: Prepare rmarkdown document for instant preview
Description
This function prepares a rmarkdown document edited with editR for instant preview.
It strips its front matter if it is present and add two extra line breaks at
the end to prevent editR to "misbehave" when a code chunk is created at the
very end of the document.
Usage
preview(rmd)
Arguments
rmd
The rmarkdown document to prepare for instant preview.
Value
This function return a rmarkdown document ready for instant preview in editR.