Replace HTML with better Markdown in memory.md