Skip to content

Commit 66fa862

Browse files
committed
fix: typecheck
1 parent 37924a2 commit 66fa862

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

File renamed without changes.

server/utils/markdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { ComarkContent } from 'comark-content'
22
import { renderMarkdown } from 'comark/render'
33

4-
/** Render a CMS document as plain markdown with a `# title` / `> description` lead. */
5-
export async function renderPageMarkdown(cms: ComarkContent, path: string): Promise<string | null> {
4+
/** Render a content document as plain markdown with a `# title` / `> description` lead. */
5+
export async function renderPageMarkdown(content: ComarkContent, path: string): Promise<string | null> {
66
const item = await content.get(path)
77
if (!item || item.meta.kind !== 'document') return null
88

0 commit comments

Comments
 (0)