Skip to content

Commit

Permalink
🔄 synced local 'quartz/' with remote 'quartz/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Feb 27, 2024
1 parent a9082b5 commit c6cb10a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions quartz/components/pages/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { htmlToJsx } from "../../util/jsx"
import { classNames } from "../../util/lang"
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
import { htmlToJsx } from "../../util/jsx";
import { classNames } from "../../util/lang";
import { QuartzComponentConstructor, QuartzComponentProps } from "../types";

const Content: QuartzComponent = ({ fileData, tree }: QuartzComponentProps) => {
const content = htmlToJsx(fileData.filePath!, tree)
const classes: string[] = fileData.frontmatter?.cssclasses ?? []
return <article class={classNames(undefined, "popover-hint", ...classes)}>{content}</article>
function Content({ fileData, tree }: QuartzComponentProps) {
const content = htmlToJsx(fileData.filePath!, tree);
const classes: string[] = fileData.frontmatter?.cssclasses ?? [];
return <article class={classNames(undefined, "popover-hint", ...classes)}>{content}</article>;
}

export default (() => Content) satisfies QuartzComponentConstructor
export default (() => Content) satisfies QuartzComponentConstructor;

0 comments on commit c6cb10a

Please sign in to comment.