mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-24 08:44:28 +01:00
fix: fix multline breaks in post body, add slugs to urls
This commit is contained in:
@@ -19,7 +19,8 @@ export default function SaveModule(props: Props) {
|
||||
const changeCallback = useDebouncedCallback(ctx => {
|
||||
|
||||
const { state } = ctx;
|
||||
const md = getMarkdown(state);
|
||||
let md = getMarkdown(state);
|
||||
md = md.replace(/\n(?=\n)/g, "\n\n<br/>\n");
|
||||
onChange(md);
|
||||
}, [], 500)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user