File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -458,20 +458,14 @@ ${await childRender(sy, this)}\
458
458
<div class="protyle-attr" contenteditable="false"></div>
459
459
</div>`
460
460
}
461
- //TODO 语法高亮没有正确触发
462
461
return `<div ${ strAttr ( sy ) } >
463
462
<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 (
466
464
sy . Children ?. find (
467
465
( el ) => el . Type === 'NodeCodeBlockFenceInfoMarker' ,
468
466
) ,
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>
475
469
</div>
476
470
${ await renderHTML (
477
471
sy . Children ?. find ( ( el ) => el . Type === 'NodeCodeBlockCode' ) ,
You can’t perform that action at this time.
0 commit comments