diff --git a/src/app/blog/write/ContentArea.tsx b/src/app/blog/write/ContentArea.tsx index 1f4edf7..8c896da 100644 --- a/src/app/blog/write/ContentArea.tsx +++ b/src/app/blog/write/ContentArea.tsx @@ -6,6 +6,7 @@ import { KeyboardEvent } from "react"; const md = new MarkdownIt({ linkify: true, typographer: true, + breaks: true, highlight: (str, lang) => { if (lang && hljs.getLanguage(lang)) { try { diff --git a/src/app/blog/write/action.ts b/src/app/blog/write/action.ts index f9d3214..377cc55 100644 --- a/src/app/blog/write/action.ts +++ b/src/app/blog/write/action.ts @@ -18,6 +18,7 @@ export async function savePostServer( const md = new MarkdownIt({ linkify: true, typographer: true, + breaks: true, highlight: (str, lang) => { if (lang && hljs.getLanguage(lang)) { try {