Skip to content

Commit

Permalink
server : Improve code snippets direction between RTL text (ggerganov#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ebraminio authored Jan 14, 2025
1 parent 091592d commit c5bf0d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified examples/server/public/index.html.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/server/webui/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ const VueMarkdown = defineComponent(
highlight: function (str, lang) { // Add highlight.js
if (lang && hljs.getLanguage(lang)) {
try {
return '<pre><code class="hljs">' +
return '<pre dir="auto"><code class="hljs">' +
hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
'</code></pre>';
} catch (__) {}
}
return '<pre><code class="hljs">' + md.value.utils.escapeHtml(str) + '</code></pre>';
return '<pre dir="auto"><code class="hljs">' + md.value.utils.escapeHtml(str) + '</code></pre>';
}
}));
// support latex with double dollar sign and square brackets
Expand Down

0 comments on commit c5bf0d1

Please sign in to comment.