neo-md 1.2.0 → 1.3.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 +4 -5
- package/dist/index.d.ts +7 -2
- package/dist/index.js +3579 -3175
- package/dist/index.umd.cjs +115 -30
- package/dist/neo-md.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ function App() {
|
|
|
89
89
|
viewMode={view}
|
|
90
90
|
onViewModeChange={setView}
|
|
91
91
|
components={customRenderers}
|
|
92
|
-
|
|
92
|
+
showWordCount={false}
|
|
93
93
|
enableCopy={false}
|
|
94
94
|
className="my-custom-wrapper"
|
|
95
95
|
placeholder="Type something amazing..."
|
|
@@ -114,9 +114,9 @@ The `MarkdownEditor` component accepts the following props:
|
|
|
114
114
|
| `className` | `string` | `""` | Classes applied to the root container. |
|
|
115
115
|
| `editorClassName` | `string` | `""` | Classes applied to the editor pane wrapper. |
|
|
116
116
|
| `previewClassName` | `string` | `""` | Classes applied to the preview pane wrapper. |
|
|
117
|
-
| `
|
|
118
|
-
| `
|
|
119
|
-
| `
|
|
117
|
+
| `showToolbar` | `boolean` | `true` | Shows the top toolbar block. |
|
|
118
|
+
| `showWordCount` | `boolean` | `true` | Shows the character counter badge. |
|
|
119
|
+
| `showMarkdownToolbar` | `boolean` | `true` | Shows the markdown formatting toolbar. |
|
|
120
120
|
| `enableDownload` | `boolean` | `true` | Toggles the "Download" button. |
|
|
121
121
|
| `enableCopy` | `boolean` | `true` | Toggles the "Copy" button. |
|
|
122
122
|
| `enableScrollSync` | `boolean` | `true` | Toggles bidirectional scroll sync between panes. |
|
|
@@ -126,7 +126,6 @@ The `MarkdownEditor` component accepts the following props:
|
|
|
126
126
|
| `components` | `Components` | `{}` | Complete `react-markdown` DOM rendering overrides. |
|
|
127
127
|
| `syntaxColors` | `SyntaxHighlightColors` | `defaultColors` | Custom color theme for syntax highlighting. |
|
|
128
128
|
|
|
129
|
-
|
|
130
129
|
## Exposed Methods (`MarkdownEditorRef`)
|
|
131
130
|
|
|
132
131
|
Via `forwardRef`, parents can trigger the following imperatives on the editor:
|
package/dist/index.d.ts
CHANGED
|
@@ -13,10 +13,12 @@ export declare interface MarkdownEditorProps {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
editorClassName?: string;
|
|
15
15
|
previewClassName?: string;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
showToolbar?: boolean;
|
|
17
|
+
showWordCount?: boolean;
|
|
18
|
+
showMarkdownToolbar?: boolean;
|
|
18
19
|
enableDownload?: boolean;
|
|
19
20
|
enableCopy?: boolean;
|
|
21
|
+
enableScrollSync?: boolean;
|
|
20
22
|
placeholder?: string;
|
|
21
23
|
readOnly?: boolean;
|
|
22
24
|
maxLength?: number;
|
|
@@ -56,6 +58,9 @@ export declare interface SyntaxHighlightColors {
|
|
|
56
58
|
codeBlockText?: string;
|
|
57
59
|
codeBlockBg?: string;
|
|
58
60
|
horizontalRule?: string;
|
|
61
|
+
tablePipe?: string;
|
|
62
|
+
tableCellText?: string;
|
|
63
|
+
tableSeparator?: string;
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
export { }
|