Skip to content

Commit 551ed35

Browse files
committed
fix: topic introduce line-height style
Signed-off-by: Innei <tukon479@gmail.com>
1 parent 08e119d commit 551ed35

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/in-page/Note/NoteTopic/markdown-render.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const mdOptions: MarkdownToJSX.Options = {
1818
'textEscaped',
1919
],
2020
forceBlock: true,
21+
wrapper: ({ children }) => <div className="leading-7">{children}</div>,
2122
}
2223
export const NoteTopicMarkdownRender: FC<{ children: string }> = memo(
2324
(props) => {

src/pages/notes/topics/[topicSlug].tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ const TopicDetailPage: NextPage<TopicModel> = (props) => {
5050
>
5151
<SEO title={`专栏 - ${name}`} />
5252
<div className="topic-info -mt-8">
53-
<p>
54-
<span>{props.introduce}</span>
55-
</p>
53+
<p className="leading-6">{props.introduce}</p>
5654
{props.description && (
5755
<>
5856
<Divider />

0 commit comments

Comments
 (0)