Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Advanced Tables & Math Intelligence v1.5

Choose a tag to compare

@M1ck4 M1ck4 released this 18 Nov 07:23
· 38 commits to main since this release
444ae7a

๐Ÿš€ Advanced Tables & Math Intelligence v1.5

Version 1.5 is a major feature upgrade focused on structural intelligence โ€” bringing high-quality table extraction, math awareness, and deeper Markdown reconstruction to the core engine.

This release builds upon the security foundation of v1.4 and dramatically improves performance for academic, technical, and data-heavy PDFs.


โœจ New in v1.5

๐Ÿ“Š Advanced Table Extraction & Reconstruction

Tables are now detected, analyzed, and reconstructed into clean Markdown with far greater precision.

Core Enhancements:

  • Multi-column detection with tolerance-aware bounding-box grouping

  • Robust cell boundary inference using horizontal and vertical alignment

  • Normalization of ragged rows into consistent table shapes

  • Safe pipe (|) insertion โ€” avoids false positives in normal text

  • Auto-generation of alignment header:

    | A | B |
    |---|---|
    | 1 | 2 |
  • Supports:

    • Numeric tables
    • Mixed text + numeric cells
    • Multi-row tables
    • Tables with uneven spacing

Outcome: Academic papers, research tables, data reports, and technical PDFs now convert to Markdown tables that are structured, readable, and conversion-ready for Obsidian, Jupyter, GitHub, and any Markdown renderer.


๐Ÿงฎ Math & Equation Awareness

The engine now intelligently identifies mathematical expressions and preserves them as inline or display-style LaTeX.

Features:

  • Inline math detection: x^2, (a+b)/c, sin(x), fractions, superscripts
  • Display math detection for centered or isolated expressions
  • Safe transformation into $...$ and $$...$$ without over-triggering
  • Zero false positives in normal text thanks to conservative heuristics

Example:

The function $f(x) = x^2 + 3x + 2$ grows quadratically.

$$
\int_0^1 x^3 dx = 1/4
$$

This dramatically improves performance on scientific papers, engineering PDFs, textbooks, and lecture notes.


๐Ÿง  Engine Improvements

Several subsystems were upgraded to support tables and math reliably without user intervention.

๐Ÿ”ง Transform Layer

  • New normalization paths for structural blocks
  • Improved heading/list boundaries around tables
  • Cleaner pre-processing of mixed content pages

๐Ÿ”ง Render Layer

  • Unified table rendering with alignment and safety checks
  • Math passthrough inserted at the correct phase to prevent escape issues

๐Ÿ”ง Pipeline Stability

  • Stronger separation of paragraph vs tabular vs mathematical blocks
  • Better fallback when encountering malformed PDFs

๐Ÿ”ง CLI Enhancements

  • More graceful failures when table/math inference encounters edge cases
  • Cleaner output file selection
  • Minor polish to logging text and quiet-mode behavior

๐Ÿ—‚ Updated Files in This Release

The following modules were significantly enhanced:

  • tables.py โ€” complete rewrite for advanced detection + Markdown reconstruction
  • equations.py โ€” new module for math awareness and LaTeX-style structuring
  • transform.py โ€” smarter content structuring around detected tables/math
  • render.py โ€” improved Markdown generation for complex layouts
  • pipeline.py โ€” orchestrates new math/table subsystems cleanly
  • cli.py โ€” safer output handling and polish

No GUI changes were required; the system operates fully automatically.


๐Ÿ“š Ideal For

  • Academic papers (STEM-heavy)
  • Research datasets
  • Financial reports
  • Engineering documents
  • Textbooks and technical notes
  • Science & mathematics PDFs

๐Ÿ”’ Built on v1.4 Security Foundation

Tables and math do not alter the privacy architecture:

  • 100% offline processing
  • No uploads or background requests
  • No telemetry
  • Passwords handled securely in memory only

๐Ÿ“Œ Summary

v1.5 is a major evolution of pdf_to_md, bringing:

  • High-fidelity Markdown tables
  • Intelligent math detection
  • Improved transformation + rendering pipeline
  • A more accurate and expressive output for technical documents

This update dramatically improves usability for researchers, engineers, scientists, educators, and anyone working with structured PDFs.

Recommended for all users โ€” especially those working with data, equations, or academic content.