diff options
author | Stefan Tatschner <stefan@sevenbyte.org> | 2014-12-03 15:27:31 +0100 |
---|---|---|
committer | Stefan Tatschner <stefan@sevenbyte.org> | 2015-01-15 13:41:11 +0100 |
commit | bf079c24afb8ad2991a4eaf60a71a7bc45dd775d (patch) | |
tree | ed6317f84473ea68ef9444b0a2736f305f0a2b75 /app/assets/javascripts/notes.js.coffee | |
parent | 377ae460056bb2a4e5824c4f7a3bbcb481e3e38b (diff) | |
download | gitlab-ce-bf079c24afb8ad2991a4eaf60a71a7bc45dd775d.tar.gz |
Replace highlight.js with rouge-fork rugments
I decided to create a fork of rouge as rouge lacks a HTML formatter with
the required options such as wrapping a line with <span> tags.
Furthermore I was not really convinced about the clarity of rouge's
source code.
Rugments 1.0.0beta3 for now only includes some basic linting and a new
HTML formatter. Everything else should behave the same.
Diffstat (limited to 'app/assets/javascripts/notes.js.coffee')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index d1935d1d007..ac1353b8bb6 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -114,10 +114,6 @@ class @Notes if @isNewNote(note) @note_ids.push(note.id) $('ul.main-notes-list').append(note.html) - code = "#note_" + note.id + " .highlight pre code" - $(code).each (i, e) -> - hljs.highlightBlock(e) - ### Check if note does not exists on page @@ -265,9 +261,6 @@ class @Notes note_li.replaceWith(note.html) note_li.find('.note-edit-form').hide() note_li.find('.note-text').show() - code = "#note_" + note.id + " .highlight pre code" - $(code).each (i, e) -> - hljs.highlightBlock(e) ### Called in response to clicking the edit note link |