Skip to content

Commit 5afe505

Browse files
committedDec 20, 2023
修复代码块未高亮的问题
·
v1.0.6v0.0.0.7
1 parent e2fcfbf commit 5afe505

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed
 

‎apps/frontend/src/core/render.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -458,20 +458,14 @@ ${await childRender(sy, this)}\
458458
<div class="protyle-attr" contenteditable="false"></div>
459459
</div>`
460460
}
461-
//TODO 语法高亮没有正确触发
462461
return `<div ${strAttr(sy)}>
463462
<div class="protyle-action">
464-
<span class="protyle-action--first protyle-action__language">
465-
${await renderHTML(
463+
<span class="protyle-action--first protyle-action__language">${await renderHTML(
466464
sy.Children?.find(
467465
(el) => el.Type === 'NodeCodeBlockFenceInfoMarker',
468466
),
469-
)}
470-
</span>
471-
<span class="fn__flex-1"></span>
472-
<span class="protyle-icon protyle-icon--only protyle-action__copy">
473-
<svg><use xlink:href="#iconCopy"></use></svg>
474-
</span>
467+
)}</span>
468+
<span class="fn__flex-1"></span><span class="protyle-icon protyle-icon--only protyle-action__copy"><svg><use xlink:href="#iconCopy"></use></svg></span>
475469
</div>
476470
${await renderHTML(
477471
sy.Children?.find((el) => el.Type === 'NodeCodeBlockCode'),

0 commit comments

Comments
 (0)
Please sign in to comment.