Skip to content

Instantly share code, notes, and snippets.

@therumbler
therumbler / markdown_to_json_feed.py
Created October 3, 2023 16:14
Turn a folder of markdown files into a JSON Feed object
import os
from datetime import datetime
def filename_to_id(filename):
return f"https://example.com/posts/{filename.replace('.md', '')}"
def markdown_filepath_to_html(filepath):
return "<h1>Implement Me</h1>"