Configure custom title hierarchies
masterBy default, all PPTX titles are parsed as level 1 markdown titles. To create a hierarchical table of contents, provide a predefined title list using the -t argument.
Title File Format: Use indentation (spaces) to define heading levels. The number of spaces in the first indented line determines the indentation unit.
Example titles.txt:
Heading 1
Heading 1.1
Heading 1.1.1
Heading 1.2Matching Logic:
- Titles are matched using fuzzy matching (score must be > 92).
- Unmatched titles default to the deepest header level.
- Similar titles (score > 92) are omitted by default unless
--keep-similar-titlesis used.
Usage:
pptx2md [filename] -t titles.txt