Render `tight` Markdown lists in WYSIWYG editor

This commit is contained in:
Matt Baer 2021-03-25 09:54:08 -04:00
parent 424bd55816
commit 47aa436caa
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ export const writeAsMarkdownSerializer = new MarkdownSerializer(
state.closeBlock(node);
},
bullet_list(state, node) {
node.attrs.tight = true;
state.renderList(node, " ", () => `${node.attrs.bullet || "*"} `);
},
ordered_list(state, node) {