You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought there already was an issue for this, but apparently it existed only in my head (and in conversations with @hadley). Yes, it's an interesting idea!
I'm not convinced that applying downlit is a natural job for reprex. It feels more like a job for rmarkdown. And then reprex could find appropriate ways to take advantage of that.
It seems that rmarkdown has added downlit support for html_document(), which is currently not used by reprex.
This is related to #384, which calls for a re-examination of how reprex exploits (or does not exploit) output formats maintained in rmarkdown.
I'm closing for now. It's a good idea, but currently would require way more work than I can invest. I would reconsider if rmarkdown added downlit support to a markdown-y output format which I could then adopt or modify.
This is still something that would have to be analyzed when doing major work on the output format, which is #384.
Note that downlit_md_path() takes .md as input, but it seems to (often?) output .html. Perhaps this is user error on my part but that's what I'm seeing when I run the output of reprex() through downlit, so perhaps this depends on the content of the .md input. Maybe something related to comments?
for formats that support it? This would provide clickable links for function calls and package names.
The text was updated successfully, but these errors were encountered: