Commit 4f911242 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'dm-render-plain-readme' into 'master'

Render plain README using Markup viewer so it is displayed below tree

See merge request !11510
parents b0642299 0c025624
...@@ -139,6 +139,15 @@ ...@@ -139,6 +139,15 @@
line-height: 1.6em; line-height: 1.6em;
overflow-x: auto; overflow-x: auto;
border-radius: 2px; border-radius: 2px;
&.plain-readme {
background: none;
border: none;
padding: 0;
margin: 0;
font-size: 14px;
}
} }
p > code { p > code {
...@@ -279,14 +288,6 @@ h6 { ...@@ -279,14 +288,6 @@ h6 {
/** CODE **/ /** CODE **/
pre { pre {
font-family: $monospace_font; font-family: $monospace_font;
&.plain-readme {
background: none;
border: none;
padding: 0;
margin: 0;
font-size: 14px;
}
} }
code { code {
......
...@@ -5,6 +5,7 @@ module BlobViewer ...@@ -5,6 +5,7 @@ module BlobViewer
self.partial_name = 'markup' self.partial_name = 'markup'
self.extensions = Gitlab::MarkupHelper::EXTENSIONS self.extensions = Gitlab::MarkupHelper::EXTENSIONS
self.file_types = %i(readme)
self.binary = false self.binary = false
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment