feat: Enhance chunking logic to include display text and preserve whitespace in sentences

This commit is contained in:
JB
2025-10-10 11:17:14 -07:00
parent 443dee09b6
commit 15c1220ba3
4 changed files with 144 additions and 27 deletions
+9 -1
View File
@@ -126,11 +126,19 @@
}
#reader .chunk {
margin-bottom: 1.75rem;
margin-bottom: 1.25rem;
white-space: pre-wrap;
word-wrap: break-word;
}
#reader .chunk[data-level="sentence"] {
margin-bottom: 0.6rem;
}
#reader .chunk[data-level="sentence"] + #reader .chunk[data-level="sentence"] {
margin-top: -0.2rem;
}
#reader p,
#reader li,
#reader blockquote {