-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] 마크다운에서 code block에 line break가 적용되지 않는다
- Loading branch information
1 parent
5af61b3
commit d1c6632
Showing
8 changed files
with
117 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"css.customData": [".vscode/tailwind.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"version": 1.1, | ||
"atDirectives": [ | ||
{ | ||
"name": "@tailwind", | ||
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@apply", | ||
"description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#apply" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@responsive", | ||
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#responsive" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@screen", | ||
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#screen" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@variants", | ||
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#variants" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 20 additions & 24 deletions
44
...ents/post-body/markdown-styles.module.css → ...ts/[slug]/_components/post-body/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,68 @@ | ||
.markdown { | ||
.post-content { | ||
@apply text-lg leading-relaxed w-full text-content; | ||
} | ||
|
||
.markdown ul, | ||
.markdown ol, | ||
.markdown p { | ||
.post-content ul, | ||
.post-content ol, | ||
.post-content p { | ||
@apply my-6; | ||
} | ||
|
||
.markdown pre { | ||
.post-content pre { | ||
@apply bg-gray-100 text-gray-800 p-4 rounded-lg my-4; | ||
} | ||
.markdown pre > code { | ||
@apply text-gray-800; | ||
.post-content pre code { | ||
@apply text-gray-800 overflow-auto w-full inline-block; | ||
} | ||
|
||
.markdown code { | ||
.post-content code { | ||
@apply bg-gray-100 text-success rounded-md text-sm leading-6 p-1; | ||
} | ||
|
||
.markdown h2 { | ||
.post-content h2 { | ||
@apply text-3xl mt-12 mb-4 leading-snug font-bold; | ||
} | ||
|
||
.markdown h3 { | ||
.post-content h3 { | ||
@apply text-2xl mt-8 mb-4 leading-snug font-bold; | ||
} | ||
|
||
.markdown img { | ||
.post-content img { | ||
@apply rounded-md shadow-sm mx-auto my-7; | ||
} | ||
|
||
.markdown figure { | ||
.post-content figure { | ||
@apply text-center my-8; | ||
} | ||
|
||
.markdown figcaption { | ||
.post-content figcaption { | ||
@apply text-sm text-gray-600 mt-2; | ||
} | ||
|
||
.markdown a { | ||
.post-content a { | ||
@apply text-blue-600 underline; | ||
} | ||
|
||
.markdown a:hover { | ||
.post-content a:hover { | ||
@apply text-blue-800 underline; | ||
} | ||
|
||
.markdown ul { | ||
.post-content ul { | ||
@apply pl-6 list-disc; | ||
} | ||
|
||
.markdown ol { | ||
.post-content ol { | ||
@apply pl-6 list-decimal; | ||
} | ||
|
||
.markdown li { | ||
.post-content li { | ||
@apply mb-2; | ||
} | ||
|
||
.markdown blockquote { | ||
.post-content blockquote { | ||
@apply bg-gray-50 border-l-4 border-success text-gray-700 pl-6 py-4 my-4 text-base; | ||
} | ||
|
||
.markdown blockquote > p { | ||
.post-content blockquote p { | ||
@apply p-0 m-0; | ||
} | ||
|
||
.markdown pre > code { | ||
white-space: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters