 React = require 'react'
 MarkdownIt = require 'markdown-it'
+{State} = require 'react-router'
 
 markdownIt = MarkdownIt()
   .use require 'markdown-it-emoji'

      .replace(/@(\b[\w-]+\b)/g, "<a href='#/users/$1'>$1</a>")

      # hashtags #tagname
      .replace(/\#(\w+)/g, "<a href='#/talk/search?query=$1'>#$1</a>")

  markdownify: (input) ->
    markdownIt.render(input)

    header: "Preview"

  replaceSymbols: (string) ->
    {owner, name} = @getParams()
    string
      # subjects in a specific project : owner-slug/project-slug^subject_id
      # \b[\w-]+\b is hyphen boundary for slugs
