Home / Function/ markdownContentEntryType.getEntryInfo() — astro Function Reference

markdownContentEntryType.getEntryInfo() — astro Function Reference

Architecture documentation for the markdownContentEntryType.getEntryInfo() function in content-entry-type.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6fb09f27_ae7d_8499_d9cd_06f18fa22d9e["markdownContentEntryType.getEntryInfo()"]
  deec1f28_4d3d_27c1_da09_7a6a276ef96d["content-entry-type.ts"]
  6fb09f27_ae7d_8499_d9cd_06f18fa22d9e -->|defined in| deec1f28_4d3d_27c1_da09_7a6a276ef96d
  style 6fb09f27_ae7d_8499_d9cd_06f18fa22d9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/vite-plugin-markdown/content-entry-type.ts lines 8–16

	async getEntryInfo({ contents, fileUrl }: { contents: string; fileUrl: URL }) {
		const parsed = safeParseFrontmatter(contents, fileURLToPath(fileUrl));
		return {
			data: parsed.frontmatter,
			body: parsed.content.trim(),
			slug: parsed.frontmatter.slug,
			rawData: parsed.rawFrontmatter,
		};
	},

Domain

Subdomains

Frequently Asked Questions

What does markdownContentEntryType.getEntryInfo() do?
markdownContentEntryType.getEntryInfo() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-markdown/content-entry-type.ts.
Where is markdownContentEntryType.getEntryInfo() defined?
markdownContentEntryType.getEntryInfo() is defined in packages/astro/src/vite-plugin-markdown/content-entry-type.ts at line 8.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free