bf079c24af
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.
14 lines
422 B
Text
14 lines
422 B
Text
- unless @snippet.content.empty?
|
|
- if gitlab_markdown?(@snippet.file_name)
|
|
.file-content.wiki
|
|
= preserve do
|
|
= markdown(@snippet.data)
|
|
- elsif markup?(@snippet.file_name)
|
|
.file-content.wiki
|
|
= render_markup(@snippet.file_name, @snippet.data)
|
|
- else
|
|
.file-content.code
|
|
= render 'shared/file_highlight', blob: @snippet
|
|
- else
|
|
.file-content.code
|
|
.nothing-here-block Empty file
|