Skip to content

Commit

Permalink
Fix: #63 인라인 코드와 코드 블록 분기 처리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Aug 24, 2024
1 parent bd60e0e commit 294e31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/CustomMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const component: Partial<Components> = {
const language = className?.split('-')[1] || '';
const mappedLanguage = languageMap[language] || 'plaintext';

if (language && node?.position?.start.line === node?.position?.end.line) {
if (!language && node?.position?.start.line === node?.position?.end.line) {
return <code className={`${className} rounded-sm border-none bg-[#E9ECEF] px-2`}>{children}</code>;
}
return (
Expand Down

0 comments on commit 294e31b

Please sign in to comment.