airbnb / knowledge-repo

A next-generation curated knowledge sharing platform for data scientists and other technical professions.
Apache License 2.0
5.47k stars 688 forks source link

Fix Plotly in Rmarkdown #760

Closed calabozo closed 1 year ago

calabozo commented 1 year ago

Description of changeset: When generating reports from Rmarkdown files, the Rscript command will include the javascript code generated by Plotly inside a tags called {=html}. This is further ignored by knowledge_repo which includes that text directly in the final repo. Wiith this patch we remove the {=html} and the plotly graphs are properly displayed in the final generated HTML.

Test Plan:

Reviewers: