md2star.twin_cli module

md2star twin — read any document back into an editable Markdown twin.

The forward path turns Markdown into a polished DOCX/PPTX/PDF. This is the inverse as a document, not just as text: given a PDF (or anything LibreOffice can convert to one), it recovers prose + GFM tables, scrapes every embedded raster back out as PNGs, and — with --diagrams — re-authors node-and-edge figures as Mermaid via the target-matching eyeball loop. The result is a <stem>.md plus an assets/ folder you can edit and re-render.

Thin argparse adapter over md2star.reverse.to_markdown_twin() and md2star.reverse_diagrams.make_diagram_handler(); kept out of md2star.cli so the reverse feature imports lazily and the dispatcher stays small.

Author

[Warith HARCHAOUI](https://linkedin.com/in/warith-harchaoui/)

md2star.twin_cli.main(argv=None)[source]

Console entry point for md2star twin. Returns a process exit code.

Parameters:

argv (list[str] | None)

Return type:

int