New API route for markdown rendering