showoff icon indicating copy to clipboard operation
showoff copied to clipboard

Supplemental pages don't process syntax highlighting

Open iversond opened this issue 5 years ago • 1 comments

When accessing the supplemental pages, the code blocks are not processed for syntax highlighting. The paths for the js and css folders are looking under /supplemental/css location instead of ../css.

A possible solution is to make the supplemental pages inline.

 def supplemental(content, static=false)
      # supplemental material is by definition separate from the presentation, so it doesn't make sense to attach notes
      @slides = get_slides_html(:static=>static, :supplemental=>content, :section=>false, :toc=>:all)
      @favicon = settings.showoff_config['favicon']
      @wrapper_classes = ['supplemental']
      # DJI - Enable this for supplemental pages
      @inline = true
      erb :onepage
    end

Are there issues with changing this option? Possibly conflicts with #893.

iversond avatar Apr 30 '19 15:04 iversond

Thanks for the report! I'll look into this over the next week

binford2k avatar Apr 30 '19 16:04 binford2k