Skip to content

Commit 1a3af05

Browse files
committed
Update shiki style because of unsupportted Replacement option
1 parent 1863cfd commit 1a3af05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

public/css/markdown.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ blockquote {
4444

4545
pre {
4646
overflow: auto;
47-
/* background-color: rgba(72, 69, 138); */
4847
padding: 1.5rem 1.2rem;
4948
border-radius: 0.25rem;
5049
min-height: 2rem;
5150
margin: 0.2rem auto;
51+
/* shiki doesn't config colorReplacements */
52+
background-color: rgba(72, 69, 138) !important;
5253

5354
& code {
5455
background-color: inherit;

src/util/remark/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const markdown = async (file) =>
2323
theme: "andromeeda",
2424
defaultColor: false,
2525
addLanguageClass: true,
26-
2726
})
2827
.use(rehypeRaw)
2928
.use(rehypeSlug, { prefix: '' })
@@ -39,3 +38,4 @@ export const markdown = async (file) =>
3938
})
4039
.use(rehypeStringify)
4140
.process(file)
41+

0 commit comments

Comments
 (0)