R/addins.R

Defines functions jquery_dependency mathquill

jquery_dependency = function() {
  htmltools::htmlDependency(
    'jquery', '2.2.3', bookdown_file('resources', 'jquery'),
    script = 'jquery.min.js'
  )
}

mathquill = function() {
  sys.source(bookdown_file('scripts', 'mathquill.R'), new.env())
}
sawyerda/bookdown documentation built on May 20, 2019, 3:32 p.m.