Skip to content

Commit

Permalink
npm run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Oct 27, 2024
1 parent 32869a4 commit f39d9a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const contentDir = path.join(process.cwd(), "content").replace(/\\/g, "/");

// Merge app level props in with page props
export function withAppProps(
props: { props: Record<PropertyKey, unknown> } = { props: {} }
props: { props: Record<PropertyKey, unknown> } = { props: {} },
) {
const blog = getLastBlog();
delete blog.body;
Expand Down Expand Up @@ -107,7 +107,7 @@ function setPrevNext(page, menu) {
}
},
undefined,
undefined
undefined,
);

return page;
Expand All @@ -116,7 +116,7 @@ function setPrevNext(page, menu) {
// Build a list of paths from the sitemap
function collectPaths(
level: Record<string, { nested?: string[]; href?: string }>,
prefix = ""
prefix = "",
) {
let out = [];

Expand Down
2 changes: 1 addition & 1 deletion lib/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ export const toHTML = async (raw) => {
.use(rehypeSlug)
.use(rehyperBlockquotePlus, rehyperBlockquotePlusOptions)
.use(rehypeStringify)
.process(raw)
.process(raw),
);
};

0 comments on commit f39d9a0

Please sign in to comment.