By default, this tool parse all the pptx titles into level 1 markdown titles, in order to get a hierarchical table of contents, provide your predefined title list in a file and provide it with -t argument.
The first line with spaces in the begining is considered a second level heading and the number of spaces is the unit of indents. In this case, Heading 1.1 will be outputted as ## Heading 1.1 . As it has two spaces at the begining, 2 is the unit of heading indent, so Heading 1.1.1 with 4 spaces will be outputted as ### Heading 1.1.1. Header texts are matched with fuzzy matching, unmatched pptx titles will be regarded as the deepest header.
Use it with pptx2md [filename] -t titles.txt.
Other Arguments
-t [filename] provide the title file
-o [filename] path of the output file
-i [path] directory of the extracted pictures
--image-width [width] the maximum width of the pictures, in px. If set, images are put as html img tag.
--disable-image disable the image extraction
--disable-escaping do not attempt to escape special characters
--disable-wmf keep wmf formatted image untouched (avoid exceptions under linux)
--disable-color disable color tags in HTML
--min-block-size [size] the minimum number of characters for a text block to be outputted
--wiki / --mdk if you happen to be using tiddlywiki or madoko, this argument outputs the corresponding markup language
Screenshots
Data Link Layer Design Issues
Services Provided to the Network Layer
Framing
Error Control & Flow Control
Error Detection and Correction
Error Correcting Code (ECC)
Error Detecting Code
Elementary Data Link Protocols
Sliding Window Protocols
One-Bit Sliding Window Protocol
Protocol Using Go Back N
Using Selective Repeat
Performance of Sliding Window Protocols
Example Data Link Protocols
PPP
Top: Title list file content.
Bottom: The table of contents generated.
Left: Source pptx file.
Right: Generated markdown file (rendered by madoko).
Detailed Parse Rules
Lists are generated when paragraphs in a block has different level, otherwise a paragraph is generated.
When a title has fuzzy matching score larger than 92 with previous title, its omitted.
Some preset theme color style is converted into bold.
请发表评论