mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 17:57:06 +08:00
feat: view sql in chat
This commit is contained in:
@@ -11,7 +11,7 @@ const md = new MarkdownIt({
|
||||
if (lang && hljs.getLanguage(lang)) {
|
||||
try {
|
||||
return `<pre class="hljs">
|
||||
<code>${hljs.highlight(str, { language: lang, ignoreIllegals: true }).value}</code>
|
||||
<div>${hljs.highlight(str, { language: lang, ignoreIllegals: true }).value}</div>
|
||||
</pre>`
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
||||
Reference in New Issue
Block a user