Skip to content

Commit

Permalink
fix: topic introduce line-height style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Dec 18, 2022
1 parent 08e119d commit 551ed35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/in-page/Note/NoteTopic/markdown-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const mdOptions: MarkdownToJSX.Options = {
'textEscaped',
],
forceBlock: true,
wrapper: ({ children }) => <div className="leading-7">{children}</div>,
}
export const NoteTopicMarkdownRender: FC<{ children: string }> = memo(
(props) => {
Expand Down
4 changes: 1 addition & 3 deletions src/pages/notes/topics/[topicSlug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ const TopicDetailPage: NextPage<TopicModel> = (props) => {
>
<SEO title={`专栏 - ${name}`} />
<div className="topic-info -mt-8">
<p>
<span>{props.introduce}</span>
</p>
<p className="leading-6">{props.introduce}</p>
{props.description && (
<>
<Divider />
Expand Down

0 comments on commit 551ed35

Please sign in to comment.