Skip to content

Commit 40d1cec

Browse files
authored
Merge pull request #2724 from lriggle-strib/master
Add divs around individual tags
2 parents 81fec38 + 2445045 commit 40d1cec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/lib/output/themes/default/partials/comment.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ export function commentTags(context: DefaultThemeRenderContext, props: Reflectio
3939

4040
return (
4141
<>
42-
<h4 class="tsd-anchor-link">
43-
<a id={anchor} class="tsd-anchor"></a>
44-
{name}
45-
{anchorIcon(context, anchor)}
46-
</h4>
47-
<Raw html={context.markdown(item.content)} />
42+
<div class={`tsd-tag-${name}`}>
43+
<h4 class="tsd-anchor-link">
44+
<a id={anchor} class="tsd-anchor"></a>
45+
{name}
46+
{anchorIcon(context, anchor)}
47+
</h4>
48+
<Raw html={context.markdown(item.content)} />
49+
</div>
4850
</>
4951
);
5052
})}

0 commit comments

Comments
 (0)