% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pdf2txtAI.R
\name{merge_text_chunks_named}
\alias{merge_text_chunks_named}
\title{Merge Text Chunks into Named Sections}
\usage{
merge_text_chunks_named(
  text_chunks,
  remove_tables = TRUE,
  remove_figure_captions = TRUE
)
}
\arguments{
\item{text_chunks}{A list of character strings with markdown text from sequential PDF chunks}

\item{remove_tables}{Logical. If TRUE, removes all table content including captions. Default is FALSE.}

\item{remove_figure_captions}{Logical. If TRUE, removes figure captions. Default is FALSE.}
}
\value{
A named character vector where:
\itemize{
\item Names are section titles (without the # symbol)
\item Values are complete section contents (including the title line)
}
}
\description{
Takes a list of markdown text chunks and merges them into named sections.
Each section name is extracted from the markdown header (# Title).
}
