markdown-text-editor 0.1.1 → 0.1.3

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
@@ -71,7 +71,7 @@ To get started, include a `<textarea>` element in your HTML and initialize the e
71
71
  ```javascript
72
72
  const editor = new MarkdownEditor('.editor-container', {
73
73
  placeholder: 'Write your markdown...',
74
- toolbar: ['preview', 'bold', 'italic'], // Customize toolbar options as needed
74
+ toolbar: ['heading', 'bold', 'italic', 'strikethrough', 'ul', 'ol', 'checklist', 'blockquote', 'link', 'preview'],
75
75
  });
76
76
  ```
77
77
 
@@ -191,7 +191,7 @@ Customize your Markdown editor by passing an `options` object during initializat
191
191
  | Option | Type | Default | Description |
192
192
  |---------------|----------|------------------------------|-----------------------------------------------------------|
193
193
  | `placeholder` | `string` | `'Write your markdown...'` | Sets the placeholder text for the textarea (optional, as you can also use the standard HTML textarea attribute) |
194
- | `toolbar` | `array` | `['bold', 'italic', 'strikethrough', 'ol', 'ul', 'checklist', 'preview']` | Determines which tools appear in the toolbar and their order. |
194
+ | `toolbar` | `array` | `['heading', 'bold', 'italic', 'strikethrough', 'ul', 'ol', 'checklist', 'blockquote', 'link', 'preview']` | Determines which tools appear in the toolbar and their order. |
195
195
 
196
196
  ---
197
197
 
@@ -202,6 +202,9 @@ Tailor the toolbar to suit your needs by choosing which formatting options to in
202
202
  - **`bold`**: Enables bold text formatting.
203
203
  - **`italic`**: Enables italic text formatting.
204
204
  - **`strikethrough`**: Allows text to be struck through.
205
+ - **`ol`**: (Ordered List): Converts text into a numbered list format.
206
+ - **`ul`**: (Unordered List): Converts text into a bullet point list.
207
+ **`checklist`**: Adds checkboxes to your text, making it great for tasks, to-do lists, or tracking completion status.
205
208
  - **`preview`**: Toggles the real-time markdown preview.
206
209
 
207
210
  **Example:**