Skip to content

Commit

Permalink
add display none for latex annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm committed Jan 31, 2025
1 parent 9dbbfa8 commit eb0cac4
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docling_core/types/doc/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,9 @@ class DoclingDocument(BaseModel):
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>"""

Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/2206.01062.yaml.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h2>DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis</h2>
Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/bad_doc.yaml.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h1>This is the title</h1>
Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/constructed_doc.embedded.html.gt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h1>Title of the Document</h1>
Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/constructed_doc.placeholder.html.gt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h1>Title of the Document</h1>
Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/constructed_doc.referenced.html.gt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h1>Title of the Document</h1>
Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/constructed_document.yaml.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h1>Title of the Document</h1>
Expand Down
3 changes: 3 additions & 0 deletions test/data/doc/dummy_doc.yaml.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
table tr:nth-child(even) td{
background-color: LightGray;
}
math annotation {
display: none;
}
</style>
</head>
<h1>DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis</h1>
Expand Down

0 comments on commit eb0cac4

Please sign in to comment.