|
3 | 3 | Heading1, |
4 | 4 | Heading2, |
5 | 5 | Heading3, |
| 6 | + Heading4, |
| 7 | + Heading5, |
6 | 8 | List, |
7 | 9 | ListOrdered, |
8 | 10 | ListChecks, |
@@ -37,6 +39,8 @@ const menuItems = [ |
37 | 39 | { labelKey: "slash.heading1", descKey: "slash.heading1_desc", icon: "heading-1", command: "formatBlock", value: "<h1>" }, |
38 | 40 | { labelKey: "slash.heading2", descKey: "slash.heading2_desc", icon: "heading-2", command: "formatBlock", value: "<h2>" }, |
39 | 41 | { labelKey: "slash.heading3", descKey: "slash.heading3_desc", icon: "heading-3", command: "formatBlock", value: "<h3>" }, |
| 42 | + { labelKey: "slash.heading4", descKey: "slash.heading4_desc", icon: "heading-4", command: "formatBlock", value: "<h4>" }, |
| 43 | + { labelKey: "slash.heading5", descKey: "slash.heading5_desc", icon: "heading-5", command: "formatBlock", value: "<h5>" }, |
40 | 44 | { labelKey: "slash.bullet_list", descKey: "slash.bullet_list_desc", icon: "list", command: "insertUnorderedList" }, |
41 | 45 | { labelKey: "slash.numbered_list", descKey: "slash.numbered_list_desc", icon: "list-ordered", command: "insertOrderedList" }, |
42 | 46 | { labelKey: "slash.task_list", descKey: "slash.task_list_desc", icon: "list-checks", command: "taskList" }, |
@@ -101,7 +105,7 @@ function getFrecencyScore(id) { |
101 | 105 | } |
102 | 106 |
|
103 | 107 | const shortcutHints = { |
104 | | - "slash.heading1": "# ", "slash.heading2": "## ", "slash.heading3": "### ", |
| 108 | + "slash.heading1": "# ", "slash.heading2": "## ", "slash.heading3": "### ", "slash.heading4": "#### ", "slash.heading5": "##### ", |
105 | 109 | "slash.bullet_list": "- ", "slash.numbered_list": "1. ", |
106 | 110 | "slash.task_list": "- [ ] ", "slash.blockquote": "> ", |
107 | 111 | "slash.code_block": "```", "slash.divider": "---", |
@@ -189,7 +193,7 @@ function renderItems() { |
189 | 193 | menu.innerHTML = html; |
190 | 194 |
|
191 | 195 | createIcons({ |
192 | | - icons: { Pilcrow, Heading1, Heading2, Heading3, List, ListOrdered, ListChecks, Quote, FileCode, Table, Minus, Workflow }, |
| 196 | + icons: { Pilcrow, Heading1, Heading2, Heading3, Heading4, Heading5, List, ListOrdered, ListChecks, Quote, FileCode, Table, Minus, Workflow }, |
193 | 197 | attrs: { class: "" }, |
194 | 198 | }); |
195 | 199 |
|
|
0 commit comments