Skip to content

Commit 776e957

Browse files
refactoring the markdown_summary
Signed-off-by: Peter Staar <[email protected]>
1 parent 99a041f commit 776e957

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docling_core/experimental/serializer/markdown_summary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class MarkdownSummaryParams(MarkdownParams):
5353
add_references: bool = True
5454
add_summary: bool = True
5555

56-
5756
toc_labels: list[DocItemLabel] = [DocItemLabel.TITLE, DocItemLabel.SECTION_HEADER]
5857

5958

test/test_markdown_summary.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ def verify(exp_file: Path, actual: str):
3232
],
3333
)
3434
@pytest.mark.parametrize("use_md_headers", [False, True])
35-
def test_markdown_summary_outline(
36-
mode: MarkdownSummaryMode, use_md_headers: bool
37-
):
35+
def test_markdown_summary_outline(mode: MarkdownSummaryMode, use_md_headers: bool):
3836
# Build a representative document with title, headers, text, lists, table, and pictures
3937
doc = _construct_doc()
4038

@@ -55,4 +53,3 @@ def test_markdown_summary_outline(
5553
/ f"constructed_mdsum_{mode.value}_mdhdr_{str(use_md_headers).lower()}.gt.md"
5654
)
5755
verify(exp_file=exp_path, actual=outline)
58-

0 commit comments

Comments
 (0)