From fe817b11d730c55d48b6a60fc4e6f173da51a66b Mon Sep 17 00:00:00 2001 From: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:36:39 +0200 Subject: [PATCH] docs: update interface in README (#50) Signed-off-by: Michele Dolfi --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12c7dc91..67f65bc6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ from docling.document_converter import DocumentConverter source = "https://arxiv.org/pdf/2206.01062" # PDF path or URL converter = DocumentConverter() doc = converter.convert_single(source) -print(doc.export_to_markdown()) # output: "## DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis [...]" +print(doc.render_as_markdown()) # output: "## DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis [...]" ``` ### Convert a batch of documents