Python Prompts Free Prompt

Python Script to Convert Markdown to HTML

Write a Python script to convert Markdown files to HTML
☆ Save
Prompt
You are a Python developer. Write a script that converts all Markdown (.md) files in a folder to HTML using the markdown library. The script must: 1) Accept input folder and output folder, 2) Preserve directory structure, 3) Generate a table of contents for each file, 4) Apply a CSS style, 5) Handle code syntax highlighting, 6) Provide an option to merge all files into a single HTML, 7) Log progress. Add comments and a requirements.txt.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.