|
<div class="ui small modal" id="cite-repo-modal">
|
|
<div class="header">
|
|
{{ctx.Locale.Tr "repo.cite_this_repo"}}
|
|
</div>
|
|
<div class="content">
|
|
<div class="ui stackable secondary menu">
|
|
<div class="ui action input" id="citation-panel">
|
|
{{template "repo/cite/cite_buttons" .}}
|
|
<a id="goto-citation-btn" class="ui basic jump icon button" href="{{$.RepoLink}}/src/{{$.BranchName}}/CITATION.cff" data-tooltip-content="{{ctx.Locale.Tr "repo.find_file.go_to_file"}}">
|
|
{{svg "octicon-file-moved"}}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="actions">
|
|
<button class="ui cancel button">
|
|
{{ctx.Locale.Tr "cancel"}}
|
|
</button>
|
|
</div>
|
|
</div>
|
marked.setOptions({
highlight: function (code, lang) {
// Use highlight.js to highlight the code
const language = hljs.getLanguage(lang) ? lang : 'plaintext'; // Fallback to 'plaintext' if no language is found
return hljs.highlight(language, code).value; // Return the highlighted code
}
});