% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gridtable.R
\name{as_gridtable.character}
\alias{as_gridtable.character}
\title{Validate and Normalize a Simple Pandoc Grid Table}
\usage{
\method{as_gridtable}{character}(x, ...)
}
\arguments{
\item{x}{Character scalar containing one simple Pandoc grid table.}

\item{...}{Currently unused.}
}
\value{
Character scalar with class \code{gridtable} containing a canonical Pandoc grid table.
}
\description{
Validate a character string containing a simple Pandoc grid table and
rebuild it by parsing structural `+` and `|` delimiters, discarding the
original spacing, and returning an aligned grid table.
}
\details{
The accepted grid-table form is intentionally restricted: every boundary row
must contain the same number of `+` delimiters; every text row is split on
every `|` and must therefore contain the same number of `|` delimiters; each
boundary span must contain at least one `-` or `=`; the first boundary row and
all body boundary rows must use `-`; the second boundary row must be the only
`=` boundary row; and exactly one header text row must appear between the
first and second boundary rows; header cells must be non-empty and
unique after trimming. Literal `|` characters inside cell text are interpreted
as delimiters, not cell content.
}
\seealso{
Other gridtable: 
\code{\link{as.data.frame.gridtable}()},
\code{\link{as_calibrated}()},
\code{\link{as_calibrated.data.frame}()},
\code{\link{as_gridtable}()},
\code{\link{as_gridtable.data.frame}()},
\code{\link{kbl}()},
\code{\link{kbl.calibrated}()},
\code{\link{kbl.default}()},
\code{\link{kbl.gridtable}()},
\code{\link{print.gridtable}()}
}
\concept{gridtable}
