mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:22:33 +01:00
🎨 add hljs by lute
This commit is contained in:
parent
d4eab1775d
commit
f476fd272e
2 changed files with 1 additions and 2 deletions
|
|
@ -63,7 +63,6 @@ export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) =
|
|||
if (!hljs.getLanguage(language)) {
|
||||
language = "plaintext";
|
||||
}
|
||||
block.classList.add("hljs");
|
||||
block.innerHTML = hljs.highlight(
|
||||
block.textContent + (block.textContent.endsWith("\n") ? "" : "\n"), // https://github.com/siyuan-note/siyuan/issues/4609
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue