Skip to content
New issue

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? Sign in to your account

Render user custom html for widget. #240

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

johndharrison
Copy link

Address #239 issue with custom html via "_html" not being rendered.

@johndharrison johndharrison changed the title Render user custon html for widget. Render user custom html for widget. Oct 30, 2016
@@ -226,7 +226,9 @@ widget_html <- function(name, package, id, style, class, inline = FALSE, ...){

# call the custom function if we have one, otherwise create a div
if (is.function(fn)) {
fn(id = id, style = style, class = class, ...)
renderTags(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is the right fix. It might rather be to surround the results of the function in an html-preserve comment (which will also prevent pandoc from touching it). @jcheng5 What's the best thing here?

@johndharrison
Copy link
Author

Hi @jjallaire sure this was just a temporary fix used on a widget I had. I thought it maybe helpful to provide the pull request. Looking at ?htmltools::htmlPreserve that looks like the tool for the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants