mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-10-30 18:15:59 +01:00
Support relative links in asciidoc files.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
@if(content.viewType == "text"){
|
||||
@defining(pathList.reverse.head) { file =>
|
||||
@if(renderableSuffixes.find(suffix => file.toLowerCase.endsWith(suffix))) {
|
||||
@renderMarkup(file, content.content.get, branch, repository, false, false)
|
||||
@renderMarkup(pathList, content.content.get, branch, repository, false, false)
|
||||
} else {
|
||||
<pre class="prettyprint linenums blob">@content.content.get</pre>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user