Fix bullet points for PDF text extraction
Use list-style-position: inside so bullets are part of text flow, not separate positioned elements. Fixes copy/paste issues. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,8 @@ STYLES = {
|
|||||||
}
|
}
|
||||||
ul, ol {
|
ul, ol {
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
padding-left: 1.5em;
|
padding-left: 0;
|
||||||
|
list-style-position: inside;
|
||||||
}
|
}
|
||||||
li {
|
li {
|
||||||
margin: 0.2em 0;
|
margin: 0.2em 0;
|
||||||
@@ -171,6 +172,7 @@ STYLES = {
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
ul, ol { padding-left: 0; list-style-position: inside; }
|
||||||
a { color: #000; }
|
a { color: #000; }
|
||||||
""",
|
""",
|
||||||
"dark": """
|
"dark": """
|
||||||
@@ -221,6 +223,7 @@ STYLES = {
|
|||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
|
ul, ol { padding-left: 0; list-style-position: inside; }
|
||||||
a { color: #818cf8; }
|
a { color: #818cf8; }
|
||||||
hr { border: none; border-top: 1px solid #374151; margin: 2em 0; }
|
hr { border: none; border-top: 1px solid #374151; margin: 2em 0; }
|
||||||
""",
|
""",
|
||||||
@@ -297,7 +300,8 @@ STYLES = {
|
|||||||
th { font-weight: 400; color: #666; }
|
th { font-weight: 400; color: #666; }
|
||||||
ul, ol {
|
ul, ol {
|
||||||
margin: 0.3em 0;
|
margin: 0.3em 0;
|
||||||
padding-left: 1.3em;
|
padding-left: 0;
|
||||||
|
list-style-position: inside;
|
||||||
}
|
}
|
||||||
li {
|
li {
|
||||||
margin: 0.15em 0;
|
margin: 0.15em 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user