fixes in ux

This commit is contained in:
Mateusz Gruszczyński
2026-07-20 23:24:07 +02:00
parent f5292aefd6
commit 867e2be96b
6 changed files with 69 additions and 9 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ export function applyFormat(editor, format) {
if (format === "bold") wrap("**");
if (format === "italic") wrap("*");
if (format === "strike") wrap("~~");
if (format === "heading") prefix("## ");
if (format === "heading" || format === "heading2") prefix("## ");
if (format === "heading1") prefix("# ");
if (format === "heading3") prefix("### ");
if (format === "heading4") prefix("#### ");
if (format === "bullet") prefix("- ");
if (format === "number") prefix((index) => `${index + 1}. `);
if (format === "quote") prefix("> ");