 
   for preElement in $.merge(html.filter("pre"), html.find("pre"))
     codeBlock = $(preElement.firstChild)
-    fenceName = codeBlock.attr('class')?.replace(/^lang-/, '') ? 'text'
+    fenceName = codeBlock.attr('class')?.replace(/^lang-/, '') ? defaultLanguage
 
     highlighter ?= new Highlights(registry: atom.syntax)
     highlightedHtml = highlighter.highlightSync

  text = text.replace(/^\s*<!doctype(\s+.*)?>\s*/i, '')

  roaster text, options, (error, html) =>
    if error
      callback(error)
    else
      html = sanitize(html)
      html = resolveImagePaths(html, filePath)
      html = tokenizeCodeBlocks(html)
      callback(null, html.html().trim())

exports.toText = (text, filePath, callback) ->
  exports.toHtml text, filePath, (error, html) ->


  html

tokenizeCodeBlocks = (html,defaultLanguage='text') ->
  html = $(html)

  if fontFamily = atom.config.get('editor.fontFamily')
