Convert .MD to .PPTX

1. Convert .md Files to View as a Microsoft PowerPoint Deck

Download a copy of the .md files in the drive at Hi, then run the following python script to insert the --- character at every line break.

for filename in os.listdir(folder):
    if filename.endswith(".md"):
        with open(filename, 'r', encoding='utf-8') as f:
            lines = f.readlines()
        
        # Replace empty lines (with or without spaces) with ---
        new_lines = [line if line.strip() else '---\n' for line in lines]
        
        with open(filename, 'w', encoding='utf-8') as f:
            f.writelines(new_lines)

After you have changed the .md files, run a .bat script (if on windows) with the program pandoc installed to convert them all to .pptx documents all at once and preserve file names. If you'd like to use a custom ppt template, check the pandoc documentation for template files.

@echo off
setlocal enabledelayedexpansion

:: Loop through all .md files in the current folder
for f" to "f" -o "%%~nf.pptx"
)

echo Done!
pause