Skip to content

Commit 3944f78

Browse files
committed
feat: remove code snippet default styles
1 parent 18b5970 commit 3944f78

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Code.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const { code, lang = "ts", theme = 'dracula' }: Props = Astro.props;
1313
const html = await codeToHtml(code, {
1414
lang,
1515
theme,
16+
transformers: [{ pre(node) { node.properties.style = "" } }],
1617
});
1718
---
1819

src/components/NavButton.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ interface Link {
44
href: string;
55
}
66
7-
87
const { prev, next } = Astro.props as {
98
prev?: Link;
109
next?: Link;

0 commit comments

Comments
 (0)