Skip to content

Commit dfb221b

Browse files
author
Alexander Pavlov
committed
up
1 parent b5550ed commit dfb221b

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

contentlayer.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ const Post = defineDocumentType(() => ({
7373
export default makeSource({
7474
contentDirPath: 'content',
7575
documentTypes: [Post],
76-
mdx: {
76+
markdown: {
7777
remarkPlugins: [remarkGfm, remarkToc ],
7878
rehypePlugins: [
7979
rehypeAutolinkHeadings,
8080
rehypeSlug,
81-
rehypePrism,
82-
rehypeCodeTitles
81+
rehypeCodeTitles,
82+
rehypePrism
8383
]
8484
}
8585
})

styles/globals.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,19 @@ input:-webkit-autofill:focus {
389389
.cm-theme * {
390390
font-size: 16px;
391391
}
392+
393+
.rehype-code-title {
394+
margin-bottom: -0.6rem;
395+
padding: 0.5em 1em;
396+
font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console',
397+
'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
398+
'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
399+
monospace;
400+
401+
background-color: black;
402+
color: white;
403+
z-index: 0;
404+
405+
border-top-left-radius: 0.3em;
406+
border-top-right-radius: 0.3em;
407+
}

styles/prism-atom-dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pre[class*="language-"] {
6868

6969
.token.class-name {
7070
color: #FFFFB6;
71-
text-decoration: underline;
71+
text-decoration: none;
7272
}
7373

7474
.token.boolean,

0 commit comments

Comments
 (0)