");
// Header with title and author.
html.push_str(""); // end header
// Scrollable content container.
html.push_str("
");
// Render each page using the sync block renderer.
for page in &doc.pages {
match page {
DocumentPagesItem::LinearDocument(linear_doc) => {
html.push_str(&render_linear_document_sync(
linear_doc,
&ctx,
resolved_content,
));
}
DocumentPagesItem::Canvas(_) => {
html.push_str(
"
[Canvas layout not yet supported]
",
);
}
DocumentPagesItem::Unknown(_) => {
html.push_str("
[Unknown page type]
");
}
}
}
html.push_str("