feat: isComment -> simpleMode

This commit is contained in:
DIYgod
2024-01-17 01:22:36 +08:00
parent 292e43c7e4
commit b23ebf266f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ const MarkdownContent = memo(function PageContent({
onScroll,
onMouseEnter,
parsedContent,
isComment,
simpleMode,
page,
site,
withActions,
@@ -29,7 +29,7 @@ const MarkdownContent = memo(function PageContent({
onScroll?: (scrollTop: number) => void
onMouseEnter?: () => void
parsedContent?: ReturnType<typeof renderPageContent>
isComment?: boolean
simpleMode?: boolean
page?: ExpandedNote
site?: ExpandedCharacter
withActions?: boolean
@@ -39,7 +39,7 @@ const MarkdownContent = memo(function PageContent({
if (parsedContent) {
inParsedContent = parsedContent
} else if (content) {
inParsedContent = renderPageContent(content, false, isComment)
inParsedContent = renderPageContent(content, false, simpleMode)
}
return (