Open johndharrison opened 7 years ago
The issue seems to be with pandoc and indentation introduced by htmltools::tags
. Using htmltools::renderTags
to remove the indentation https://github.com/johndharrison/simplewidget/commit/3ecd3bcfa73a4711b04a799dab8b37a9f9e12ffc seems to solve the issue.
Is this expected behaviour?
Should custom html be rendered in _html
functions?
I am trying to add custom html to an htmlwidget as per https://cran.r-project.org/web/packages/htmlwidgets/vignettes/develop_advanced.html#custom-widget-html
To replicate the issue I have create a simple htmlwidget package with minimal code using
I added some custom html for the widget https://github.com/johndharrison/simplewidget/commit/23b38b3c392d959aabe37d4c7b10f09df25af106
The widget displays correctly and the custom html functions as expected. However
htmlwidgets::saveWidget
does not save the widget html as expected: