Allow linking to file lines
Supported formats: "L12" for single lines and "L12-34" for multiple lines
This commit is contained in:
parent
45dcb1b5c4
commit
c42ada9bee
5 changed files with 174 additions and 194 deletions
|
@ -10,6 +10,6 @@
|
|||
- unless blob.empty?
|
||||
%div{class: current_user.dark_scheme ? "black" : "white"}
|
||||
= preserve do
|
||||
= raw blob.colorize(options: { linenos: true, lineanchors: :line, anchorlinenos: true })
|
||||
= raw blob.colorize(formatter: :gitlab)
|
||||
- else
|
||||
%h4.nothing_here_message Empty file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue