 ScrollView = require 'scroll-view'
 fs = require 'fs'
 $ = require 'jquery'
+{$$$} = require 'space-pen'
 
 module.exports =
 class MarkdownPreview extends ScrollView

    $.ajax(request)

  setHtml: (html) ->
    return unless @hasParent()
    @markdownBody.html(html)
    @markdownSpinner.hide()
    @markdownBody.show()

  isMarkdownFile: (path) ->
    fs.isMarkdownExtension(fs.extension(path))

     <li>You aren\'t online or are unable to reach <a href="https://github.com">github.com</a></li>
     </ul>'

   getLoadingHtml: ->
     $$$ ->
       @div class: 'markdown-spinner', 'Loading Markdown...'

  loadHtml: (text) ->
    payload =
       mode: 'markdown'
