% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yaml.R
\name{yaml_body}
\alias{yaml_body}
\title{Partition the YAML metadata and the body in a document}
\usage{
yaml_body(x)
}
\arguments{
\item{x}{A character vector of the document content.}
}
\value{
A list of components \code{yaml} and \code{body}.
}
\description{
Split a document into the YAML metadata (which starts with \verb{---} in the
beginning of the document) and the body. The YAML metadata will be parsed.
}
\examples{
xfun::yaml_body(c("---", "title: Hello", "output: markdown::html_document", "---",
    "", "Content."))
}
