@opositatest/markdown-text-editor 1.3.0 → 1.4.1

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
@@ -30,9 +30,27 @@ The editor currently focuses on text-first rich content that serializes cleanly
30
30
  - Block quotes
31
31
  - Code blocks
32
32
  - Links
33
+ - Tables
33
34
  - Inline styles: bold, italic, underline, strikethrough, and inline code
34
35
  - Display math blocks written in LaTeX
35
36
 
37
+ Indented / nested blocks are **not** part of the supported surface: `Tab` never indents (see [Tab key](#tab-key)).
38
+
39
+ ### Tab key
40
+
41
+ `Tab` behaves like it does in any other form control: it moves focus to the next focusable element of the
42
+ host page (`Shift-Tab` moves to the previous one), so it never indents a block or uses the browser's focus as a
43
+ trap. `Escape` still blurs the editor.
44
+
45
+ The only exceptions are BlockNote's own behaviours *inside* a block:
46
+
47
+ - **Code blocks**: `Tab` inserts two spaces. `Shift-Tab` leaves the editor.
48
+ - **Tables**: `Tab` / `Shift-Tab` move between cells. At the first/last cell they leave the editor instead of
49
+ indenting the table.
50
+
51
+ Markdown that already contains nested lists (pasted content or a document saved before this rule) is still
52
+ parsed and re-exported unchanged, but indentation can no longer be created from the keyboard.
53
+
36
54
  ### Math / LaTeX blocks
37
55
 
38
56
  The package includes a custom math block on top of the default BlockNote schema. It renders display formulas with KaTeX and stores them as fenced display-math blocks in Markdown:
@@ -97,6 +115,15 @@ Load via CDN (no build step required):
97
115
 
98
116
  `width` and `height` accept any valid CSS size, such as `320px`, `40rem`, or `100%`.
99
117
 
118
+ ### Formatting toolbar
119
+
120
+ Selecting text opens the formatting toolbar. Its **Quitar formato** action converts selected
121
+ text blocks to paragraphs and removes inline styles, colors, code formatting, and links in one
122
+ undoable operation. Non-text blocks such as images, tables, and formulas are left unchanged.
123
+
124
+ The action tooltip also shows the browser shortcut for pasting without source formatting:
125
+ `Ctrl/⌘ + Shift + V`.
126
+
100
127
  #### Available slash menu item ids
101
128
 
102
129
  Use these stable, English ids (not the localized, user-facing title) in the `hidden-slash-menu-items` / `enabled-media-blocks` JSON arrays: