Skip to content

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
# 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