Convert PDF to markdown + JSON quickly with high accuracy
This report summarizes scanner evidence for datalab-to/marker, a Python project with 40,729 GitHub stars. SynthScan examined 59,309 lines of code across 197 source files, recording 190 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 4.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 101 finding(s).
Are imports declared and package/API names verified? 38 finding(s).
Are wrappers, guards, and repeated structures necessary? 86 finding(s).
Which changes need focused human review? 190 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 190 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/marker_modal_deployment.py | 92 | except Exception as e: | CODE |
| LOW | examples/marker_modal_deployment.py | 117 | except Exception as e: | CODE |
| LOW | examples/marker_modal_deployment.py | 286 | except Exception as e: | CODE |
| LOW | examples/marker_modal_deployment.py | 343 | except Exception as e: | CODE |
| MEDIUM | examples/marker_modal_deployment.py | 344 | print(f"Error getting web URL: {e}") | CODE |
| LOW | examples/marker_modal_deployment.py | 363 | except Exception as e: | CODE |
| MEDIUM | examples/marker_modal_deployment.py | 394 | print(f"Error: {response.text}") | CODE |
| LOW | examples/marker_modal_deployment.py | 396 | except Exception as e: | CODE |
| LOW | benchmarks/postprocess.py | 22 | except Exception: # optional; only used for LaTeX-in-table-cell conversion | CODE |
| LOW | benchmarks/postprocess.py | 37 | except Exception: | CODE |
| LOW | benchmarks/inference.py | 136 | except Exception as e: # keep going; record the failure per page | CODE |
| LOW | benchmarks/competitors/liteparse_infer.py | 53 | except Exception: | CODE |
| MEDIUM | benchmarks/competitors/liteparse_infer.py | 36 | def _one(pdf): | CODE |
| LOW | benchmarks/competitors/docling_infer.py | 93 | except Exception: | CODE |
| LOW | benchmarks/competitors/docling_infer.py | 106 | except Exception: | CODE |
| LOW | marker/config/parser.py | 165 | except Exception as e: | CODE |
| LOW | marker/config/parser.py | 176 | except Exception as e: | CODE |
| LOW | marker/providers/spreadsheet.py | 40 | except Exception as e: | STRING |
| LOW | marker/providers/registry.py | 79 | except Exception: | CODE |
| LOW | marker/providers/html.py | 16 | except Exception as e: | CODE |
| LOW | marker/providers/pdf.py | 465 | except Exception: | CODE |
| LOW | marker/providers/powerpoint.py | 53 | except Exception as e: | STRING |
| LOW | marker/providers/powerpoint.py | 223 | except Exception as e: | STRING |
| LOW | marker/providers/document.py | 61 | except Exception as e: | STRING |
| LOW | marker/providers/document.py | 100 | except Exception as e: | STRING |
| MEDIUM | marker/providers/document.py | 89 | def convert_image(match): | CODE |
| LOW | marker/providers/epub.py | 56 | except Exception as e: | STRING |
| LOW | marker/processors/block_relabel.py | 57 | except Exception as e: | CODE |
| LOW | marker/processors/llm/llm_meta.py | 60 | except Exception as e: | CODE |
| LOW | marker/processors/llm/__init__.py | 127 | except Exception as e: | CODE |
| LOW | marker/processors/llm/__init__.py | 143 | except Exception as e: | CODE |
| LOW | marker/processors/llm/__init__.py | 189 | except Exception as e: | CODE |
| LOW | marker/processors/llm/llm_page_correction.py | 196 | except Exception as e: | STRING |
| LOW | marker/processors/llm/llm_page_correction.py | 217 | except Exception as e: | STRING |
| LOW | marker/processors/llm/llm_page_correction.py | 264 | except Exception as e: | STRING |
| LOW | marker/scripts/server.py | 115 | except Exception as e: | CODE |
| LOW | marker/scripts/convert.py | 58 | except Exception: | CODE |
| LOW | marker/scripts/convert.py | 104 | except Exception as e: | CODE |
| LOW | marker/services/claude.py | 112 | except Exception as e: | CODE |
| LOW | marker/services/openrouter.py | 136 | except Exception as e: | CODE |
| LOW | marker/services/gemini.py | 126 | except Exception as e: | CODE |
| LOW | marker/services/openai.py | 124 | except Exception as e: | CODE |
| LOW | marker/services/azure_openai.py | 106 | except Exception as e: | CODE |
| LOW | marker/services/ollama.py | 68 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 125 | CODE | |
| LOW | tests/converters/test_olmocr_bench.py | 59 | CODE | |
| LOW | benchmarks/inference.py | 154 | CODE | |
| LOW | marker/output.py | 58 | CODE | |
| LOW | marker/renderers/ocr_json.py | 55 | CODE | |
| LOW | marker/renderers/html.py | 51 | CODE | |
| LOW | marker/renderers/markdown.py | 29 | CODE | |
| LOW | marker/renderers/markdown.py | 128 | CODE | |
| LOW | marker/builders/line.py | 385 | CODE | |
| LOW | marker/builders/ocr.py | 207 | CODE | |
| LOW | marker/builders/ocr.py | 255 | CODE | |
| LOW | marker/builders/structure.py | 42 | CODE | |
| LOW | marker/config/printer.py | 9 | CODE | |
| LOW | marker/config/crawler.py | 32 | CODE | |
| LOW | marker/config/crawler.py | 88 | CODE | |
| LOW | marker/providers/spreadsheet.py | 84 | CODE | |
| LOW | marker/providers/pdf.py | 134 | CODE | |
| LOW | marker/providers/pdf.py | 209 | CODE | |
| LOW | marker/providers/powerpoint.py | 64 | CODE | |
| LOW | marker/providers/powerpoint.py | 140 | CODE | |
| LOW | marker/converters/__init__.py | 24 | CODE | |
| LOW | marker/converters/pdf.py | 172 | CODE | |
| LOW | marker/schema/polygon.py | 97 | CODE | |
| LOW | marker/schema/polygon.py | 112 | CODE | |
| LOW | marker/schema/polygon.py | 201 | CODE | |
| LOW | marker/schema/groups/page.py | 257 | CODE | |
| LOW | marker/schema/text/line.py | 46 | CODE | |
| LOW | marker/schema/text/span.py | 82 | CODE | |
| LOW | marker/processors/list.py | 57 | CODE | |
| LOW | marker/processors/ignoretext.py | 44 | CODE | |
| LOW | marker/processors/equation.py | 83 | CODE | |
| LOW | marker/processors/table_recon.py | 100 | CODE | |
| LOW | marker/processors/table_recon.py | 329 | CODE | |
| LOW | marker/processors/debug.py | 62 | CODE | |
| LOW | marker/processors/blockquote.py | 35 | CODE | |
| LOW | marker/processors/table.py | 197 | CODE | |
| LOW | marker/processors/line_numbers.py | 40 | CODE | |
| LOW | marker/processors/line_numbers.py | 76 | CODE | |
| LOW | marker/processors/sectionheader.py | 42 | CODE | |
| LOW | marker/processors/llm/llm_table_merge.py | 165 | CODE | |
| LOW | marker/processors/llm/llm_table.py | 287 | CODE | |
| LOW | marker/services/gemini.py | 43 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/renderers/test_html_renderer.py | 14 | def test_html_renderer_block_ids(pdf_document, config): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 18 | def test_markdown_renderer_auto_ocr(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 27 | def test_markdown_renderer_pagination(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 36 | def test_markdown_renderer_pagination_blank_last_page(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 52 | def test_markdown_renderer_metadata(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 59 | def test_markdown_renderer_images(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 68 | def test_markdown_renderer_tables(pdf_document): | CODE |
| LOW | tests/renderers/test_json_renderer.py | 7 | def test_markdown_renderer_pagination(pdf_document): | CODE |
| LOW | tests/renderers/test_extract_images.py | 8 | def test_disable_extract_images(pdf_document): | CODE |
| LOW | tests/builders/test_ocr_pipeline.py | 41 | def test_ocr_with_inline_pipeline(pdf_document): | CODE |
| LOW | tests/builders/test_document_builder.py | 28 | def test_document_builder_inline_eq(pdf_document): | CODE |
| LOW | tests/providers/test_image_provider.py | 17 | def test_image_provider_conversion(pdf_converter, temp_image): | CODE |
| LOW | tests/converters/test_modes.py | 28 | def test_balanced_mode_digital(model_dict, temp_doc): | CODE |
| LOW | tests/processors/test_llm_processors.py | 21 | def test_llm_form_processor_no_config(pdf_document, llm_service): | CODE |
| LOW | tests/processors/test_llm_processors.py | 34 | def test_llm_form_processor_no_cells(pdf_document, llm_service): | CODE |
| LOW | tests/processors/test_llm_processors.py | 115 | def test_llm_caption_processor_disabled(pdf_document): | STRING |
| LOW | tests/processors/test_llm_processors.py | 130 | def test_llm_caption_processor(pdf_document): | STRING |
| LOW | tests/processors/test_llm_processors.py | 154 | def test_llm_complex_region_processor(pdf_document): | STRING |
| LOW | tests/processors/test_llm_processors.py | 182 | def test_multi_llm_processors(pdf_document): | STRING |
| LOW | tests/processors/test_table_merge.py | 11 | def test_llm_table_processor_nomerge(pdf_document, recognition_model, mocker): | CODE |
| LOW | tests/processors/test_document_toc_processor.py | 7 | def test_document_toc_processor(pdf_document, recognition_model): | CODE |
| LOW | tests/processors/test_ignoretext.py | 10 | def test_ignoretext_processor(pdf_document): | CODE |
| LOW⚡ | examples/marker_modal_deployment.py | 33 | def setup_models_with_cache_check(logger, commit_volume=False): | CODE |
| LOW | benchmarks/postprocess.py | 64 | def _strip_escapes_outside_math(s: str) -> str: | CODE |
| LOW | marker/renderers/__init__.py | 120 | def generate_document_metadata(self, document: Document, document_output): | CODE |
| LOW | marker/renderers/chunk.py | 38 | def assemble_html_with_images(block: JSONBlockOutput, image_blocks: set[str]) -> str: | CODE |
| LOW | marker/renderers/json.py | 29 | def reformat_section_hierarchy(section_hierarchy): | CODE |
| LOW | marker/builders/line.py | 154 | def order_blocks_by_reading_order(self, document: Document): | CODE |
| LOW | marker/config/crawler.py | 62 | def _gather_super_annotations(cls: Type) -> Dict[str, Type]: | CODE |
| LOW | marker/schema/labels.py | 42 | def surya_label_to_block_type(label: str) -> BlockTypes | None: | CODE |
| LOW | marker/schema/labels.py | 47 | def block_type_to_surya_label(block_type: BlockTypes) -> str: | CODE |
| LOW | marker/schema/groups/page.py | 149 | def compute_line_block_intersections( | CODE |
| LOW | marker/processors/equation.py | 209 | def _collect_inline_math_blocks(self, document: Document) -> set: | CODE |
| LOW | marker/processors/table.py | 109 | def reconstruct_digital_table(self, page, block) -> str | None: | CODE |
| LOW | marker/processors/line_numbers.py | 61 | def ignore_line_number_blocks(self, document: Document): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | marker/renderers/html.py | 1 | CODE | |
| LOW | marker/schema/polygon.py | 1 | CODE | |
| LOW | marker/schema/document.py | 1 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 1 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 3 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 3 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 3 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 4 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 5 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 6 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 7 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 8 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 9 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 10 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 11 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 12 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 13 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 14 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 15 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 16 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 17 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 18 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 19 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 20 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 21 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 22 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 23 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 24 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 25 | CODE | |
| LOW | marker/schema/blocks/base.py | 1 | CODE | |
| LOW | marker/schema/groups/__init__.py | 1 | CODE | |
| LOW | marker/schema/groups/__init__.py | 2 | CODE | |
| LOW | marker/schema/groups/__init__.py | 3 | CODE | |
| LOW | marker/schema/groups/__init__.py | 4 | CODE | |
| LOW | marker/schema/groups/__init__.py | 5 | CODE | |
| LOW | marker/schema/groups/__init__.py | 6 | CODE | |
| LOW | marker/schema/text/__init__.py | 1 | CODE | |
| LOW | marker/schema/text/__init__.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | benchmarks/postprocess.py | 37 | except Exception: | CODE |
| HIGH | benchmarks/competitors/docling_infer.py | 106 | except Exception: | CODE |
| HIGH | marker/config/crawler.py | 101 | except ImportError: | CODE |
| HIGH | marker/providers/registry.py | 79 | except Exception: | CODE |
| HIGH | marker/providers/pdf.py | 465 | except Exception: | CODE |
| HIGH | marker/scripts/convert.py | 58 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/marker_modal_deployment.py | 9 | # Define the Modal app | COMMENT |
| MEDIUM | examples/marker_modal_deployment.py | 14 | # Define the container image with all dependencies | COMMENT |
| MEDIUM⚡ | examples/marker_modal_deployment.py | 30 | # Create a persistent volume for model caching | COMMENT |
| MEDIUM | marker/builders/structure.py | 137 | # Create a merged block | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | examples/marker_modal_deployment.py | 41 | # Check if models exist in cache | COMMENT |
| LOW | examples/marker_modal_deployment.py | 207 | # Read file content | COMMENT |
| LOW | marker/providers/spreadsheet.py | 98 | # Check if this cell is the start of a merged range | STRING |
| LOW | marker/providers/registry.py | 76 | # Check if there are any HTML tags | COMMENT |
| LOW | marker/schema/groups/page.py | 67 | # Check if RGB, convert if needed | COMMENT |
| LOW | marker/processors/footnote.py | 25 | # Check if it is top-level | COMMENT |
| LOW | marker/processors/llm/llm_mathblock.py | 129 | # Check if the ratio of math blocks to additional blocks is high enough | STRING |
| LOW | marker/processors/llm/llm_table_merge.py | 398 | # Check if the number of rows is the same | COMMENT |
| LOW | marker/processors/llm/llm_table_merge.py | 403 | # Check if the number of columns is the same | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | benchmarks/inference.py | 38 | # olmOCR-bench output normalization (same dir); robust to how the script is run. | COMMENT |
| MEDIUM | data/examples/json/multicolcnn.json | 1164 | "html": "<p block-type=\"Text\">We propose the use of dilated convolutions as an attractive alternative to the | CODE |
| MEDIUM | data/examples/json/multicolcnn.json | 1865 | "html": "<p block-type=\"Text\">Furthermore, we performed a set of experiments in which we varied the number o | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/competitors/mineru_infer.sh | 1 | #!/bin/bash | COMMENT |
| LOW | marker/models.py | 41 | model devices are set server-side. | COMMENT |
| LOW | …/examples/markdown/switch_transformers/switch_trans.md | 561 | import mesh tensorflow as mtf | COMMENT |
| LOW | …/examples/markdown/switch_transformers/switch_trans.md | 661 | # d model = model hidden size (scalar). | COMMENT |
| LOW | …/examples/markdown/switch_transformers/switch_trans.md | 681 | # probability. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | data/examples/markdown/thinkpython/thinkpython.md | 8598 | Figure [C.7](#page-237-1) shows the result. Each class is represented with a box that contains the name of the class, an | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/marker_modal_deployment.py | 304 | # that you can use to test your deployment. It'll store the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/competitors/mineru_infer.sh | 10 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | marker/schema/blocks/__init__.py | 27 | __all__ = [ | CODE |