mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
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
342 B
Plaintext
14 lines
342 B
Plaintext
- if gitlab_markdown?(blob.name)
|
|
.file-content.wiki
|
|
= preserve do
|
|
= markdown(blob.data)
|
|
- elsif markup?(blob.name)
|
|
.file-content.wiki
|
|
= render_markup(blob.name, blob.data)
|
|
- else
|
|
.file-content.code
|
|
- unless blob.empty?
|
|
= render 'shared/file_highlight', blob: blob
|
|
- else
|
|
.nothing-here-block Empty file
|