AI Demos Research — the structured-intelligence platform. Every verdict on these pages opens to the execution behind it.
Graded 23 November 2026

Can Datalab convert a PDF with styled headings and subheadings to Markdown?

Datalab turned every heading of the procedure into a Markdown heading, but did not keep its three heading sizes as three levels. The subheadings under Reception, Responsibilities and Identification and booking in came back at the same level as their parent. Only the Storage and laboratory-number groups nested correctly.

1 of 1 test case failed

Every test case in this scenario has a result.

Pass rate0%0 of 1 gradable
Coverage1 of 1test case with a result
0PassNo test case passed.
1FailMissed at least one thing it was expected to do; the reason and proof are with each test case below.
0Not gradableEvery result here could be graded.
0UntestedEvery test case in this scenario has a result.
The pass rate is a summary. The evidence is the test case below: what we sent, what we checked, what the tool returned, and the proof.

The test case

Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on this test case.

Styled headings — hierarchy preservedFailEvidence
What we sent

We uploaded the complete three-page procedure PDF to Datalab's Convert API, asking for Markdown output and setting no mode, then waited for the conversion to finish and saved the Markdown.

InputDocument (PDF)
Input PDF: the three-page procedure sent, with headings set in 16, 13 and 12 pt
Open the PDF ↗
What the tool returned

Copied from Output file (Markdown), lines 3–33, 45–67

Markdownthe whole file · cited lines 3–33 and 45–67 marked


# Scope

This procedure covers the receipt, identification, storage and disposal of samples submitted to the laboratory for chemical analysis. It applies to everything received at the Braithe Road reception, including samples delivered by courier and samples brought in by clients. It does not cover samples taken by our own field staff, which are dealt with in KAL-SP-11.

## Reception

Samples are received at reception between 08:00 and 17:30 on weekdays and between 09:00 and 12:00 on Saturdays. Outside those hours clients who hold a key may use the refrigerated drop box at the rear entrance.

## Chain of custody

Every delivery arrives with a completed submission form. Reception staff check that the form is signed, that the number of containers matches the number listed on it, and that each container carries a legible client reference. The form is signed and timed on receipt and the top copy is returned to the person making the delivery.

## Condition on arrival

Reception staff record the condition of each container on the submission form before it leaves the reception bench. Anything recorded there that falls outside the limits below goes to the duty chemist before the sample is booked in.

## Temperature

Chilled samples. Where the submission form specifies chilled transport, the temperature of the transport box is measured and written on the form. A box above 8 degrees is accepted, marked, and referred to the duty chemist, who decides whether the analysis can still be reported. A box above 15 degrees is not accepted for microbiological work at all.

## Container integrity

Containers that are cracked, leaking, or filled above the shoulder are photographed on the reception bench and set aside, and the client is telephoned the same day. A leaking container is not opened at reception.

## Storage

### Refrigerated storage

Samples for chemical analysis are held at 4 degrees in the reception cold room and are racked by the day of receipt, not by client. Racks are cleared every Friday afternoon.

### Frozen storage

Samples that require frozen storage are held at minus 20 degrees in the chest freezer in room 4. Nothing goes into the freezer without a completed freezer label, and nothing is stacked above the load line marked inside the cabinet.

## Retention and disposal

Analysed samples are kept for twenty-eight days after the report is issued and are then disposed of by the route set out in KAL-SP-19. Samples held longer at a client's request are labelled with the agreed retention date and reviewed monthly by the laboratory manager.

## Records

Submission forms, condition records and the reception log are kept for six years. The reception log is a bound book: entries are not erased, and a correction is made by a single line through the original, initialled and dated.

## Responsibilities

The laboratory manager owns this procedure. Reception staff carry it out; the duty chemist decides anything it refers to them; and the quality manager audits it twice a year against the reception log and the submission forms.

## Reception staff

Reception staff check every delivery against its form, record the condition of each container, book the submission in, and put the samples into the right storage within thirty minutes of accepting them. They do not decide whether a sample outside the limits above can be analysed, and they are not asked to.

## The duty chemist

The duty chemist is named on the board in reception for each working day. They decide whether a sample that arrived outside the limits can be reported and on what terms, record the decision on the submission form and initial it, and tell the client where the decision changes what the report will say.

## Identification and booking in

### The laboratory number

Numbers run in one sequence for the whole laboratory and are never reused, including where a submission is rejected after being numbered. The number and the year are written on the container as well as on the form, because a container that has lost its label is a container nobody can report.

## Splitting a submission

Where determinations on one sample must be done in different sections, the sample is split at reception and each part carries the laboratory number with a suffix. The split is recorded on the form with the volume in each part.

## Sub-samples for microbiology

A sub-sample for microbiological work is taken first, before any other part is poured, and is taken in the reception cabinet rather than on the open bench. Where the volume received is too small to allow that, the microbiological determinations are refused rather than taken second.

## Storage capacity

The reception cold room holds forty racks and the freezer sixty labelled boxes. Where either is full, reception tells the duty chemist before accepting anything further into it. A sample put into the wrong storage is worse than a sample refused: the refusal is visible and the wrong storage is not.

## Weekly clearance

Racks are cleared every Friday afternoon against the booking-in record. A sample still in the cold room after its retention date is disposed of by the route in KAL-SP-19 and the disposal is logged. A sample in the cold room with no record at all is not disposed of: it goes to the duty chemist, because an unrecorded sample is a failure somewhere earlier in this procedure.

## Transport boxes and returns

Transport boxes belonging to the laboratory are emptied, wiped and returned on the next round to the client they came from. Boxes belonging to a client are emptied and returned unwashed unless the client asks otherwise. Ice packs are refrozen and reused; a leaking ice pack is thrown away rather than refrozen.

## Out-of-hours deliveries

The refrigerated drop box is checked at 08:00 every weekday and at 09:00 on Saturdays. Anything in it is booked in as arriving at the time of the check and not at the time it was left, and clients are told that is the practice when a key is issued. The box is not checked on Sundays or public holidays, and clients are asked not to use it on the day before one.

## Deviations

A deviation from this procedure is recorded on the submission form and in the reception log, with the reason and the name of whoever authorised it. Deviations are reviewed monthly by the laboratory manager and again at each audit. A deviation that has happened three times is a sign that the procedure is wrong rather than the staff, and is raised as such.

## Complaints

A client complaint about the condition or the handling of a sample goes to the laboratory manager on the day it is received and is acknowledged within one working day. The reception log, the submission form and the condition record are copied into the complaint file before anything else is done, because they are the only evidence of what arrived.

## Training

Nobody works reception unsupervised until they have been through this procedure with the laboratory manager, worked two full days alongside someone who has, and had their first ten submissions checked. Training is recorded on the individual's file, and the record says who signed each stage off.

## Revision history

Revision 4 adds the drop box and the fifteen-degree limit for microbiological work, and moves the retention period from twenty-one days to twenty-eight. Revision 3 followed the 2024 audit and rewrote the condition records. Revisions 1 and 2 are held in the controlled document file and are not in circulation.

Returned Markdown: the heading level Datalab gave each heading of the procedure

Open the Markdown file ↗
Output file (JSON)
API response: the completed conversion of all three pages, carrying the same Markdown
Cited values2 values from this file
status
complete
page_count
3
Show the whole file (8 KB)
JSON
{
  "progress_percent": 100,
  "status": "complete",
  "result_url": null,
  "expires_in": null,
  "output_format": "markdown",
  "chunks": null,
  "json": null,
  "markdown": "\n\n# Scope\n\nThis procedure covers the receipt, identification, storage and disposal of samples submitted to the laboratory for chemical analysis. It applies to everything received at the Braithe Road reception, including samples delivered by courier and samples brought in by clients. It does not cover samples taken by our own field staff, which are dealt with in KAL-SP-11.\n\n## Reception\n\nSamples are received at reception between 08:00 and 17:30 on weekdays and between 09:00 and 12:00 on Saturdays. Outside those hours clients who hold a key may use the refrigerated drop box at the rear entrance.\n\n## Chain of custody\n\nEvery delivery arrives with a completed submission form. Reception staff check that the form is signed, that the number of containers matches the number listed on it, and that each container carries a legible client reference. The form is signed and timed on receipt and the top copy is returned to the person making the delivery.\n\n## Condition on arrival\n\nReception staff record the condition of each container on the submission form before it leaves the reception bench. Anything recorded there that falls outside the limits below goes to the duty chemist before the sample is booked in.\n\n## Temperature\n\nChilled samples. Where the submission form specifies chilled transport, the temperature of the transport box is measured and written on the form. A box above 8 degrees is accepted, marked, and referred to the duty chemist, who decides whether the analysis can still be reported. A box above 15 degrees is not accepted for microbiological work at all.\n\n## Container integrity\n\nContainers that are cracked, leaking, or filled above the shoulder are photographed on the reception bench and set aside, and the client is telephoned the same day. A leaking container is not opened at reception.\n\n## Storage\n\n### Refrigerated storage\n\nSamples for chemical analysis are held at 4 degrees in the reception cold room and are racked by the day of receipt, not by client. Racks are cleared every Friday afternoon.\n\n### Frozen storage\n\nSamples that require frozen storage are held at minus 20 degrees in the chest freezer in room 4. Nothing goes into the freezer without a completed freezer label, and nothing is stacked above the load line marked inside the cabinet.\n\n## Retention and disposal\n\nAnalysed samples are kept for twenty-eight days after the report is issued and are then disposed of by the route set out in KAL-SP-19. Samples held longer at a client's request are labelled with the agreed retention date and reviewed monthly by the laboratory manager.\n\n## Records\n\nSubmission forms, condition records and the reception log are kept for six years. The reception log is a bound book: entries are not erased, and a correction is made by a single line through the original, initialled and dated.\n\n## Responsibilities\n\nThe laboratory manager owns this procedure. Reception staff carry it out; the duty chemist decides anything it refers to them; and the quality manager audits it twice a year against the reception log and the submission forms.\n\n## Reception staff\n\nReception staff check every delivery against its form, record the condition of each container, book the submission in, and put the samples into the right storage within thirty minutes of accepting them. They do not decide whether a sample outside the limits above can be analysed, and they are not asked to.\n\n## The duty chemist\n\nThe duty chemist is named on the board in reception for each working day. They decide whether a sample that arrived outside the limits can be reported and on what terms, record the decision on the submission form and initial it, and tell the client where the decision changes what the report will say.\n\n## Identification and booking in\n\n### The laboratory number\n\nNumbers run in one sequence for the whole laboratory and are never reused, including where a submission is rejected after being numbered. The number and the year are written on the container as well as on the form, because a container that has lost its label is a container nobody can report.\n\n## Splitting a submission\n\nWhere determinations on one sample must be done in different sections, the sample is split at reception and each part carries the laboratory number with a suffix. The split is recorded on the form with the volume in each part.\n\n## Sub-samples for microbiology\n\nA sub-sample for microbiological work is taken first, before any other part is poured, and is taken in the reception cabinet rather than on the open bench. Where the volume received is too small to allow that, the microbiological determinations are refused rather than taken second.\n\n## Storage capacity\n\nThe reception cold room holds forty racks and the freezer sixty labelled boxes. Where either is full, reception tells the duty chemist before accepting anything further into it. A sample put into the wrong storage is worse than a sample refused: the refusal is visible and the wrong storage is not.\n\n## Weekly clearance\n\nRacks are cleared every Friday afternoon against the booking-in record. A sample still in the cold room after its retention date is disposed of by the route in KAL-SP-19 and the disposal is logged. A sample in the cold room with no record at all is not disposed of: it goes to the duty chemist, because an unrecorded sample is a failure somewhere earlier in this procedure.\n\n## Transport boxes and returns\n\nTransport boxes belonging to the laboratory are emptied, wiped and returned on the next round to the client they came from. Boxes belonging to a client are emptied and returned unwashed unless the client asks otherwise. Ice packs are refrozen and reused; a leaking ice pack is thrown away rather than refrozen.\n\n## Out-of-hours deliveries\n\nThe refrigerated drop box is checked at 08:00 every weekday and at 09:00 on Saturdays. Anything in it is booked in as arriving at the time of the check and not at the time it was left, and clients are told that is the practice when a key is issued. The box is not checked on Sundays or public holidays, and clients are asked not to use it on the day before one.\n\n## Deviations\n\nA deviation from this procedure is recorded on the submission form and in the reception log, with the reason and the name of whoever authorised it. Deviations are reviewed monthly by the laboratory manager and again at each audit. A deviation that has happened three times is a sign that the procedure is wrong rather than the staff, and is raised as such.\n\n## Complaints\n\nA client complaint about the condition or the handling of a sample goes to the laboratory manager on the day it is received and is acknowledged within one working day. The reception log, the submission form and the condition record are copied into the complaint file before anything else is done, because they are the only evidence of what arrived.\n\n## Training\n\nNobody works reception unsupervised until they have been through this procedure with the laboratory manager, worked two full days alongside someone who has, and had their first ten submissions checked. Training is recorded on the individual's file, and the record says who signed each stage off.\n\n## Revision history\n\nRevision 4 adds the drop box and the fifteen-degree limit for microbiological work, and moves the retention period from twenty-one days to twenty-eight. Revision 3 followed the 2024 audit and rewrote the condition records. Revisions 1 and 2 are held in the controlled document file and are not in circulation.",
  "html": null,
  "extraction_schema_json": null,
  "extraction_score_average": null,
  "extraction_scoring_status": null,
  "extraction_mode": null,
  "segmentation_results": null,
  "segmentation_schema": null,
  "images": {},
  "metadata": {
    "page_stats": [
      {
        "page_id": 0,
        "num_blocks": 22
      },
      {
        "page_id": 1,
        "num_blocks": 21
      },
      {
        "page_id": 2,
        "num_blocks": 10
      }
    ],
    "failed_pages": []
  },
  "success": true,
  "error": "",
  "parse_quality_score": 5.0,
  "page_count": 3,
  "total_cost": 1.2,
  "cost_breakdown": {
    "final_cost_cents": 1.2
  },
  "runtime": 1.80810546875,
  "checkpoint_id": null,
  "versions": null
}
Open the JSON file ↗
Expected vs. Found
✗Expected: Every styled heading becomes a Markdown heading at a level that keeps its place under its parent heading, not plain or bold text.Found: Scope and Reception, both 16 pt, became levels one and two; Reception's 13 and 12 pt subheadings, and the 13 pt page-2 subheadings except The laboratory number, became level two.
Supporting proof
Proof 1Captured file (JSON)
API request: the complete PDF sent with Markdown output and no mode set
Cited values2 values from this file
file
{ "name": "procedure_KAL-SP-06_sample_reception.pdf", "bytes": 43662, "sha256": "1d53151023b44fca82503e6e748e2a1bed0b2374f54d2dc2d10279009401f34d" }
form
{ "output_format": "markdown" }
Show the whole file (1 KB)
JSON
{
  "method": "POST",
  "url": "https://www.datalab.to/api/v1/convert",
  "headers": {
    "X-API-Key": "***masked***"
  },
  "form": {
    "output_format": "markdown"
  },
  "file": {
    "name": "procedure_KAL-SP-06_sample_reception.pdf",
    "bytes": 43662,
    "sha256": "1d53151023b44fca82503e6e748e2a1bed0b2374f54d2dc2d10279009401f34d"
  }
}
Open the JSON file ↗
Proof 2Captured file (JSON)
Run record: the default settings used and the one completed status check
Cited values2 values from this file
config_note
default pipeline: `mode` not set (product default `balanced`), output_format=markdown
extra › polls
[ { "t": 4.5, "http": 200, "status": "complete", "progress": 100 } ]
Show the whole file (2 KB)
JSON
{
  "product": "Datalab",
  "subject_slug": "datalab",
  "test_case": "TC29 · Styled headings — hierarchy preserved",
  "task": "86bd5xtag",
  "test_case_version_id": "47c298c6-e5b4-47d6-9831-1b87aac7b092",
  "input": {
    "artifact_id": "de9d1039-a3d9-4a20-8f3d-6096e93e62fa",
    "sha256": "1d53151023b44fca82503e6e748e2a1bed0b2374f54d2dc2d10279009401f34d",
    "line": "AI_DEMOS_INPUT artifact=de9d1039-a3d9-4a20-8f3d-6096e93e62fa sha256=1d53151023b44fca82503e6e748e2a1bed0b2374f54d2dc2d10279009401f34d",
    "url": "https://d3epheqghktydj.cloudfront.net/research-artifacts/1d53151023b44fca82503e6e748e2a1bed0b2374f54d2dc2d10279009401f34d.pdf",
    "name": "procedure_KAL-SP-06_sample_reception.pdf"
  },
  "endpoint": "https://www.datalab.to/api/v1/convert",
  "config_note": "default pipeline: `mode` not set (product default `balanced`), output_format=markdown",
  "surface": "API",
  "tool_version": "not exposed",
  "plan_tier": "not exposed by the API",
  "run_time": "2026-11-22 11:02 IST",
  "latency_s": 4.5,
  "pages": 3,
  "cost": "1.2¢ (Datalab cost_breakdown.final_cost_cents)",
  "output_file": "output.md",
  "output_chars": 7481,
  "output_sha256": "fbe1ad7a9de72b7ac50a2c821236b72f6c9fdb01ec3328126234ce2fc7670874",
  "response_file": "api_response.json",
  "request_file": "request.json",
  "run_file": "run.json",
  "source_renders": ["source_page_1.png", "source_page_2.png", "source_page_3.png"],
  "extra": {
    "submit_response": {
      "success": true,
      "error": null,
      "request_id": "y5l3Wut7BkWSoDS7fmcLCA",
      "request_check_url": "https://www.datalab.to/api/v1/convert/y5l3Wut7BkWSoDS7fmcLCA",
      "versions": null,
      "checkpoint_reused": null
    },
    "polls": [
      {
        "t": 4.5,
        "http": 200,
        "status": "complete",
        "progress": 100
      }
    ]
  }
}
Open the JSON file ↗
Why this result

The test asked for the heading nesting to survive, not only for headings to be marked. The document uses three heading sizes, 16, 13 and 12 pt, and the Markdown did not keep them as three levels, so it is a Fail even though every heading was marked as one.

Tested by Pradip Nichite · evidence dated 22 November 2026

Configuration and setup

How this tool was set up for the run and what the test needed in place. Each row is a fact from the run's records; a fact the records do not hold is left out, not guessed.

Software that produced the output
Datalab
Build or version
Not exposed by the hosted product
Plan or tier
not exposed by the API
Surface
API
Set up before the run
The input had to be a short PDF with styled headings over body text: a three-page procedure with headings in 16, 13 and 12 pt, converted whole to Markdown in one pass on Datalab's default settings.
Output format
Markdown
Tested
22 November 2026 · Pradip Nichite

How this scenario is graded

How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.

How results are decided

Each test case gets one result per tool: Pass, Fail or Not gradable. A test case we haven't run yet shows Untested. There are no partial results.

The rules
  • Pass: the tool did everything the test expected, and nothing it said contradicts the correct answer.
  • Fail: at least one expected behaviour clearly didn't happen; the test case's result says which one and quotes the tool.
  • Not gradable: our evidence couldn't settle the outcome (for example a record we needed is missing). It is never counted as a fail, and the test case's result says what's missing.

Where this sits in the benchmark

This page is one cell of a larger study: one tool, one scenario. Only this benchmark's frame appears here.

History of this result

What has happened to this result since it was first published. Runs and grades are never overwritten: a retest or a re-grade publishes a new result and keeps the earlier one readable.

from the publication record
24 November 2026First publishedConverting a complex PDF into clean Markdown with a hosted API v1

Act on this result

Nothing filed here edits the run or the grade. A challenge opens a review, and a review can produce a new run or a re-grade — which becomes the current result and leaves this one in the history.

This matches what I see

You run the same kind of test against your own setup and get the same behaviour.

Agree →
This does not match

Yours behaves differently. Tell us what you got, with a screenshot if you have one.

Disagree →
Point out an issue

Something here is wrong — a reference value, a transcription, a grade.

Report an issue →
Request a retest

On a newer build, a larger dataset, or your own setup.

Request a retest →
We have fixed this

Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.

Vendor notice →
Filed against this evidenceNothing yet. Challenges, counter-evidence and fix notices appear here with their outcome, and stay on the page after they are resolved.
Cite this result
aidemos.com/benchmarks/pdf-to-markdown-apis/results/datalab/a-document-with-styled-headings-and-subheadings · 0 pass · 1 fail · coverage 1/1 · graded 2026-11-23

The same record is available as structured data through the AI Demos MCP server, with the counts, the coverage and every per-test-case reason carried as fields.

Verify the proof files

These files support this result. Open a file to inspect the original evidence.

Input · Document (PDF) ↗application/pdf · 43 KB
Output file (Markdown) ↗text/markdown; charset=utf-8 · 7 KB
Output file (JSON) ↗application/json · 8 KB
Proof 1 · Captured file (JSON) ↗application/json · 0 KB
Proof 2 · Captured file (JSON) ↗application/json · 2 KB
File fingerprints (SHA-256)

A fingerprint identifies the exact file used for this result.

Input · Document (PDF)1d53151023b44fca82503e6e748e2a1bed0b2374f54d2dc2d10279009401f34d
Output file (Markdown)3d56a48ac5cf4df2e297376f3b1dda24ff44f7f0abf64aa686e714f951cb88a0
Output file (JSON)228339401d65522af603bcb19e128748e24825916822831269db6be9cfd01d2d
Proof 1 · Captured file (JSON)f96927712f4ca14ff57513c3c08ddf80b983efb16d9beec5bcd35630ddf43a28
Proof 2 · Captured file (JSON)6cc61bbffffff1bd24b0ce6c96087b8e16b93d916f128ed7060814b38fb0d2d4