Proper support of superscript/subscript

This commit is contained in:
jpirnay
2026-05-15 20:47:01 +02:00
parent ae704153d9
commit 95d33a67f0
6 changed files with 132 additions and 7 deletions
@@ -66,6 +66,8 @@ class ChapterHtmlSlimParser final : public Print {
bool hasItalic = false, italic = false;
bool hasUnderline = false, underline = false;
bool hasStrikethrough = false, strikethrough = false;
bool hasSup = false, sup = false;
bool hasSub = false, sub = false;
};
std::vector<StyleStackEntry> inlineStyleStack;
CssStyle currentCssStyle;
@@ -73,6 +75,8 @@ class ChapterHtmlSlimParser final : public Print {
bool effectiveItalic = false;
bool effectiveUnderline = false;
bool effectiveStrikethrough = false;
bool effectiveSup = false;
bool effectiveSub = false;
// Buffered table model — populated while inside <table>, emitted on </table>
struct BufferedTableCell {
std::unique_ptr<ParsedText> text;