       </MediaPreview>
 
     React.render(mediaPreview, previewNode)
+    return null
 
   processLink: (link) ->
     if @isMediaLink(link)
       @linkPreview(link)
-      return null
     else
       return link
 


  getMedia: (mediaId) ->
    root = @getDOMNode()
    root.querySelector("##{mediaId}")

  cleanUpLinks: ->
    root = @getDOMNode()

  linkPreview: (link) ->
    mediaId = link.hash.replace('#', '')
    mediaDOM = @getMedia(mediaId) if mediaId

    # no need to set up media preview if
    # media id is invalid.
    return link if mediaDOM is false

    mediaCNXId = @getCnxIdOfHref(link.getAttribute('href')) or @props.cnxId or @getCnxId?()
    previewNode = document.createElement('span')
    previewNode.classList.add('media-preview-wrapper')
