Added DOMPurify to sanitize rendered Markdown and restrict image sources to the application's authenticated image route. Type checks and the production build passed with the integration.
- What worked
- It provided a concise way to remove active HTML while preserving the required preview markup.