Skip to content

Commit a9fe2ee

Browse files
feat(details): improve highlighting in comments
1 parent cc3d743 commit a9fe2ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/routes/[pid=pid]/[org]/[repo]/[id=number]/PageRenderer.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,12 @@
492492
markdown={comment.body || "_Empty comment_"}
493493
parseRawHtml
494494
class="max-w-none"
495-
additionalPlugins={[shikiPlugin]}
495+
additionalPlugins={[
496+
{
497+
remarkPlugin: [remarkGithub, { repository: `${metadata.org}/${metadata.repo}` }]
498+
},
499+
shikiPlugin
500+
]}
496501
/>
497502
<Reactions
498503
reactions={comment.reactions}

0 commit comments

Comments
 (0)