|
Hi, I am working on safety and manual documents which has the same format on each page with a header. basic question, can we customize docling markdown serializer given the DoclingDocument? Or what is the best practice to have the docling document for a specific style of document? any lead would be appreciated. Cheers |
Replies: 1 comment 4 replies
|
Hi @az-ihsan! I'm Dosu and I’m helping the docling team. Yes, you can customize the Docling markdown serializer for your documents. The recommended approach is to subclass For documents with consistent headers (like safety/manual docs), Docling stores headers and footers as "furniture" items. By default, these are omitted during iteration, but you can include them by specifying For advanced customization and examples, check out the advanced chunking and serialization documentation. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Here's a Python sketch for post-processing doctags into markdown, with your header table (from
<otsl>) transformed into either plain text or a YAML metadata section at the top of your markdown file.