 
   getLinkableText: ->
     fullText = @getBodyText()
-    return fullText.match(/==(\S+.*?)==/ig)
+    fullText.match(/==(\S+.*?)==/ig)
 
   autolinkText: =>
     linkableText = @getLinkableText()

          if err or res.body.total_count < 1
            return @article.replaceLink(findText, text)
          result = res.body._embedded.results[0]
          link = result._links.permalink.href
          name = result.title
          newLink = @getNewLink(link, name)
          console.log newLink


  getNewLink: (link, name) ->
    "<a href='#{link}'>#{name}</a>"

  findLinkFromResult: (result) ->
    switch result.type
      when "profile" then result._links.permalink.href.replace('/profile', '')
      else result._links.permalink.href
