Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
A few places I would like to post reprexes, most notably the LMS canvas, won't accept markdown, but will allow HTML input.
I propose an additional venue = "html" that would render using output: html_fragment. So, for example the code:
venue = "html"
(y <- 1:4)
}, venue = "html")
would place the following on the clipboard:
<pre class="r"><code>(y <- 1:4)
#>  1 2 3 4
#>  2.5</code></pre>
This can be pasted into the "HTML Editor" in canvas:
Which canvas renders into something like:
I have an attempt implementing this which only involves an additional file to make_filenames() and an additional condition in reprex(). Would you accept a PR for this?
Any thoughts on any lurking gotchas with this venue?
The text was updated successfully, but these errors were encountered:
I think this is a good idea. I've considered it before! We are generally making html anyway for preview purposes.
Sorry, something went wrong.
Closed via d03e0ef
Successfully merging a pull request may close this issue.