@kong-ui-public/monaco-editor 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -179,6 +179,15 @@ Configuration for the editor toolbar, which displays action buttons above the ed
179
179
  The following built-in actions are available:
180
180
 
181
181
  - **`format`**: Formats the editor content using Monaco's formatter
182
+ - **`bold`**: Toggles bold text (`**text**`) — *markdown/mdc only*
183
+ - **`italic`**: Toggles italic text (`_text_`) — *markdown/mdc only*
184
+ - **`strikethrough`**: Toggles strikethrough text (`~~text~~`) — *markdown/mdc only*
185
+ - **`inlineCode`**: Toggles inline code (`` `code` ``) — *markdown/mdc only*
186
+ - **`link`**: Inserts a link (`[text](url)`) — *markdown/mdc only*
187
+ - **`image`**: Inserts an image (`![alt](url)`) — *markdown/mdc only*
188
+ - **`unorderedList`**: Toggles unordered list prefix (`- `) — *markdown/mdc only*
189
+ - **`orderedList`**: Toggles ordered list prefix (`1. `, `2. `, …) — *markdown/mdc only*
190
+ - **`taskList`**: Toggles task list prefix (`- [ ] `) — *markdown/mdc only*
182
191
  - **`search`**: Toggles the search/find widget
183
192
  - **`fullScreen`**: Toggles full-screen mode for the editor
184
193
 
@@ -198,6 +207,12 @@ interface MonacoEditorToolbarOptions {
198
207
  }
199
208
  ```
200
209
 
210
+ ##### Markdown Shortcuts
211
+
212
+ When the editor language is `markdown` or `mdc`, the following keyboard shortcuts are automatically active:
213
+
214
+ - **List continuation on Enter**: Pressing Enter at the end of a list item automatically continues the list on the next line with the appropriate prefix (`- `, `1. `, `- [ ] `, etc.). Pressing Enter on an empty list item removes the prefix and ends the list.
215
+
201
216
  ##### Action Configuration
202
217
 
203
218
  Each action can be configured with the following options: