Introduce ordered list support

This commit is contained in:
jpirnay
2026-03-31 21:10:22 +02:00
parent aa085425af
commit 0ad2ac71c7
2 changed files with 27 additions and 1 deletions
@@ -70,6 +70,14 @@ class ChapterHtmlSlimParser {
int tableRowIndex = 0;
int tableColIndex = 0;
// List nesting tracking for ul/ol markers
struct ListEntry {
int depth;
bool isOrdered;
int counter;
};
std::vector<ListEntry> listStack;
// Anchor-to-page mapping: tracks which page each HTML id attribute lands on
int completedPageCount = 0;
std::vector<std::pair<std::string, uint16_t>> anchorData;