|
{{/* Value - value of the search field (for search results page) */}}
|
|
{{/* Disabled (optional) - if search field/button has to be disabled */}}
|
|
{{/* Placeholder (optional) - placeholder text to be used */}}
|
|
{{/* Tooltip (optional) - a tooltip to be displayed on button hover */}}
|
|
<div class="ui small fluid action input">
|
|
{{template "shared/search/input" dict "Value" .Value "Disabled" .Disabled "Placeholder" .Placeholder}}
|
|
{{template "shared/search/button" dict "Disabled" .Disabled "Tooltip" .Tooltip}}
|
|
</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
}
});