         emojiStrategy = {
             match: /(^|\s):(\w*)$/,
             search: (term, callback) ->
-                console.log term
                 regexp = new RegExp('^' + term)
                 callback(
                     (key.substring(5) for key in _.keys($.emoticons.list) when regexp.test(key.substring(5)))



module = angular.module('taiga.directives.wiki', []).run ['$routeParams', '$rootScope', wikiInit ]
module.directive('gmMarkitup', ["$rootScope", "$parse", "$i18next", "$sanitize", "$location", gmMarkitupConstructor])
module.directive("gmRenderMarkdown", ["$rootScope", "$parse", "$sanitize", GmRenderMarkdownDirective])

                return "$1:#{value}: "
            maxCount: 5
        }
        usersStrategy = {
            match: /(^|\s)@([\w-]*)$/,
            search: (term, callback) ->
                regexp = new RegExp('^' + term)
                filterUser = (regexp, user) ->
                    return _.any [
                        regexp.test(user.full_name)
                        regexp.test(user.first_name)
                        regexp.test(user.last_name)
                        regexp.test(user.username)
                        regexp.test(user.email)
                    ]
                getUsersList = () ->
                    users = $rootScope.constants.usersList
                    return ({username: user.username, name: user.full_name} for user in users when filterUser(regexp, user))
                callback(getUsersList())
            template: (value) ->
                return "#{value.name}"
            replace: (value) ->
                return "$1@#{value.username} "
            maxCount: 5
        }
        element.textcomplete([emojiStrategy, usersStrategy])

        element.markItUp(markdownSettings)

