Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
abc61f26
Commit
abc61f26
authored
Jun 08, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/rouge-2.1.0' into 'master'
update rouge to 2.1.0 See merge request !11992
parents
17173d18
c50cded9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
29 deletions
+5
-29
Gemfile.lock
Gemfile.lock
+1
-1
lib/rouge/lexers/math.rb
lib/rouge/lexers/math.rb
+2
-14
lib/rouge/lexers/plantuml.rb
lib/rouge/lexers/plantuml.rb
+2
-14
No files found.
Gemfile.lock
View file @
abc61f26
...
@@ -655,7 +655,7 @@ GEM
...
@@ -655,7 +655,7 @@ GEM
retriable (1.4.1)
retriable (1.4.1)
rinku (2.0.0)
rinku (2.0.0)
rotp (2.1.2)
rotp (2.1.2)
rouge (2.
0.7
)
rouge (2.
1.0
)
rqrcode (0.7.0)
rqrcode (0.7.0)
chunky_png
chunky_png
rqrcode-rails3 (0.1.7)
rqrcode-rails3 (0.1.7)
...
...
lib/rouge/lexers/math.rb
View file @
abc61f26
module
Rouge
module
Rouge
module
Lexers
module
Lexers
class
Math
<
Lexer
class
Math
<
PlainText
title
"A passthrough lexer used for LaTeX input"
title
"A passthrough lexer used for LaTeX input"
desc
"A boring lexer that doesn't highlight anything"
desc
"PLEASE REFACTOR - this should be handled by SyntaxHighlightFilter"
tag
'math'
tag
'math'
mimetypes
'text/plain'
default_options
token:
'Text'
def
token
@token
||=
Token
[
option
:token
]
end
def
stream_tokens
(
string
,
&
b
)
yield
self
.
token
,
string
end
end
end
end
end
end
end
lib/rouge/lexers/plantuml.rb
View file @
abc61f26
module
Rouge
module
Rouge
module
Lexers
module
Lexers
class
Plantuml
<
Lexer
class
Plantuml
<
PlainText
title
"A passthrough lexer used for PlantUML input"
title
"A passthrough lexer used for PlantUML input"
desc
"A boring lexer that doesn't highlight anything"
desc
"PLEASE REFACTOR - this should be handled by SyntaxHighlightFilter"
tag
'plantuml'
tag
'plantuml'
mimetypes
'text/plain'
default_options
token:
'Text'
def
token
@token
||=
Token
[
option
:token
]
end
def
stream_tokens
(
string
,
&
b
)
yield
self
.
token
,
string
end
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment