 
     # presentation
     if slideConfigs.length
-      htmlContent = @parseSlidesForExport(htmlContent, slideConfigs)
+      htmlContent = @parseSlidesForExport(htmlContent, slideConfigs, isSavingToHTML)
       if offline
         presentationScript = "<script src='#{path.resolve(__dirname, '../dependencies/reveal/js/reveal.js')}'></script>"
       else

    </div>
    """

  parseSlidesForExport: (html, slideConfigs)->
    slides = html.split '<div class="new-slide"></div>'
    slides = slides.slice(1)
    output = ''

      slideConfig = slideConfigs[offset]
      attrString = ''
      if slideConfig['data-background-image']
        attrString += " data-background-image='#{@resolveFilePath(slideConfig['data-background-image'], isSavingToHTML)}'"

      if slideConfig['data-background-size']
        attrString += " data-background-size='#{slideConfig['data-background-size']}'"
