We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6ffa3 commit b651edaCopy full SHA for b651eda
examples/server/public/index.html.gz
9 Bytes
examples/server/webui/src/main.js
@@ -111,12 +111,12 @@ const VueMarkdown = defineComponent(
111
highlight: function (str, lang) { // Add highlight.js
112
if (lang && hljs.getLanguage(lang)) {
113
try {
114
- return '<pre><code class="hljs">' +
+ return '<pre dir="auto"><code class="hljs">' +
115
hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
116
'</code></pre>';
117
} catch (__) {}
118
}
119
- 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>';
120
121
}));
122
// support latex with double dollar sign and square brackets
0 commit comments