diff --git a/docs/features/comments.md b/docs/features/comments.md index f80f89d8c..f17060b02 100644 --- a/docs/features/comments.md +++ b/docs/features/comments.md @@ -125,4 +125,4 @@ Quartz can conditionally display the comment box based on a field `comments` in title: Comments enabled here! comments: true --- -``` \ No newline at end of file +``` diff --git a/quartz/components/Comments.tsx b/quartz/components/Comments.tsx index 21652430d..9c734fd1b 100644 --- a/quartz/components/Comments.tsx +++ b/quartz/components/Comments.tsx @@ -28,8 +28,7 @@ function boolToStringBool(b: boolean): string { export default ((opts: Options) => { const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => { // check if comments should be displayed according to frontmatter - if ((opts.respectFrontmatter ?? false) && - !(fileData.frontmatter?.comments ?? false)) { + if ((opts.respectFrontmatter ?? false) && !(fileData.frontmatter?.comments ?? false)) { return null } @@ -54,7 +53,7 @@ export default ((opts: Options) => { } // make sure we actually need to load the script - if(Comments != null) { + if (Comments != null) { Comments.afterDOMLoaded = script }