           fs.write info.fd, outputHTML, (err)=>
             throw err if err
             @openFile info.path
+            ebookConvert info.path, dist, ebookConfig, (err)=>
+              throw err if err
+              atom.notifications.addInfo "File #{fileName} was created in the same directory", detail: "path: #{dist}"
 
 
 

  </html>
      """

      temp.open
        prefix: 'markdown-preview-enhanced',
        suffix: '.html', (err, info)=>


{getMarkdownPreviewCSS} = require './style'
plantumlAPI = require './puml'
ebookConvert = require './ebook-convert'
{loadMathJax} = require './mathjax-wrapper'

module.exports =
