English
craft-hub / parseMarkdownDocument
Function: parseMarkdownDocument()
parseMarkdownDocument(
rawContent):object
Defined in: packages/craft-hub/src/document-spaces.ts:313
Parse optional YAML frontmatter from raw Markdown without altering the body when absent.
Parameters
rawContent
string
Returns
object
frontmatter
frontmatter:
Record<string,unknown>
markdown
markdown:
string