inSileco / inSileco.github.io

:globe_with_meridians: Our blog powered by blogdown
https://blog.insileco.io/
GNU General Public License v3.0
8 stars 1 forks source link

Conflict between tocify and mapview #58

Closed KevCaz closed 6 years ago

KevCaz commented 6 years ago

To create our blog, we now use tocify along with blogdown to create posts on various topics, notably posts that include calls to R functions that create HTML widgets.

Recently, @eldre noticed that in one of our recent blog post he table of content generated by tocify was missing and I came to realize that actually every post in which we call mapview (a function that creates a HTML widget) has the same issues. Given how rmarkdown loads js libraries, I realize that this is likely due to a multiple load of jQuerry.

KevCaz commented 6 years ago

Here is a link that explains how to avoid conflicts: http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ I apply this for our website and tocify is now called a bit earlier in single.html, seems to work.