diff options
author | Munken <mm.munk@gmail.com> | 2016-12-08 22:39:37 +0000 |
---|---|---|
committer | Munken <mm.munk@gmail.com> | 2016-12-08 22:41:29 +0000 |
commit | 525c2a782e03afafdf9cf1948ab75e73092704fa (patch) | |
tree | 4bac75cd875e2fa8806190d0fdb1a810940e7b68 /app/assets/javascripts/syntax_highlight.js | |
parent | 9ab1fe5e6536e311142d1daddd0d7c8e29eec20a (diff) | |
download | gitlab-ce-525c2a782e03afafdf9cf1948ab75e73092704fa.tar.gz |
Math works for inline syntax
Diffstat (limited to 'app/assets/javascripts/syntax_highlight.js')
-rw-r--r-- | app/assets/javascripts/syntax_highlight.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/app/assets/javascripts/syntax_highlight.js b/app/assets/javascripts/syntax_highlight.js deleted file mode 100644 index bd37d69165f..00000000000 --- a/app/assets/javascripts/syntax_highlight.js +++ /dev/null @@ -1,30 +0,0 @@ -/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-undef, no-else-return, prefer-arrow-callback, padded-blocks, max-len */ -// Syntax Highlighter -// -// Applies a syntax highlighting color scheme CSS class to any element with the -// `js-syntax-highlight` class -// -// ### Example Markup -// -// <div class="js-syntax-highlight"></div> -// -(function() { - $.fn.syntaxHighlight = function() { - var $children; - if ($(this).hasClass('js-syntax-highlight')) { - // Given the element itself, apply highlighting - return $(this).addClass(gon.user_color_scheme); - } else { - // Given a parent element, recurse to any of its applicable children - $children = $(this).find('.js-syntax-highlight'); - if ($children.length) { - return $children.syntaxHighlight(); - } - } - }; - - $(document).on('ready page:load', function() { - return $('.js-syntax-highlight').syntaxHighlight(); - }); - -}).call(this); |