           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}"
 
 
 


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

module.exports =

      useGitHubSyntaxTheme = atom.config.get('markdown-preview-enhanced.useGitHubSyntaxTheme')

      title = ebookConfig.title || 'no title'
      mathStyle = if outputHTML.indexOf('class="katex"') > 0 then "<link rel=\"stylesheet\" href=\"file:///#{path.resolve(__dirname, '../node_modules/katex/dist/katex.min.css')}\">" else ''

      outputHTML = """
  <!DOCTYPE html>
