render_html_fragment: Renders and returns an HTML fragment
Description
This is a wrapper around the rmarkdown::[render][rmarkdown::render]
function. The principal difference is that the function is designed to
return an HTML fragment (rather than writing to a file). This function is
useful to populate the content of a modal window.