How to Create a Markdown Blog with Next.js
- Install Markdown
- Customize 1: sanitize(XSS: Cross-Site Scripting)
- What is HTML sanitization?
- Step 1: Install isomorphic-dompurify
- Step 2: Add to post detail file
- Customize 2: Syntax Highlighting(Prism.js)
- Step 1: Install prismjs
- Step 2: Add to post detail file
- Customize 3: Table of Contents
- Example: Add to post detail file
- Customize 4: html tags
- Example: link
- Reference