There was an error while loading. Please reload this page.
1 parent 37924a2 commit 66fa862Copy full SHA for 66fa862
2 files changed
app/types/cms.ts app/types/content.tsapp/types/cms.ts renamed to app/types/content.ts
server/utils/markdown.ts
@@ -1,8 +1,8 @@
1
import type { ComarkContent } from 'comark-content'
2
import { renderMarkdown } from 'comark/render'
3
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> {
+/** Render a content document as plain markdown with a `# title` / `> description` lead. */
+export async function renderPageMarkdown(content: ComarkContent, path: string): Promise<string | null> {
6
const item = await content.get(path)
7
if (!item || item.meta.kind !== 'document') return null
8
0 commit comments