 
     # 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

      slideConfig = slideConfigs[offset]
      attrString = ''
      if slideConfig['data-background-image']
        attrString += " data-background-image='#{slideConfig['data-background-image']}'"

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


        el.setAttribute('data-processed', 'true')
        el.setAttribute('data-original', dataOriginal)

  ###
  convert './a.txt' '/a.txt'
  ###
  resolveFilePath: (filePath, relative=false)->
    if filePath.startsWith('./') or filePath.startsWith('/')
      if relative
        if filePath[0] == '.'
          return filePath
        else
          return path.relative(@rootDirectoryPath, path.resolve(@projectDirectoryPath, '.'+filePath))
      else
        if filePath[0] == '.'
          return 'file:///'+path.resolve(@rootDirectoryPath, filePath)
        else
          return 'file:///'+path.resolve(@projectDirectoryPath, '.'+filePath)
    else
      return filePath

  ## Utilities
  openInBrowser: (isForPresentationPrint=false)->
