react-headless-mde 2.0.1 → 2.0.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 +16 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ React-mde-headless has **no 3rd party dependencies**.
|
|
|
12
12
|
## Using
|
|
13
13
|
|
|
14
14
|
```jsx
|
|
15
|
-
import { boldCommand, italicCommand, linkCommand, useTextAreaMarkdownEditor } from 'react-mde
|
|
15
|
+
import { boldCommand, italicCommand, linkCommand, useTextAreaMarkdownEditor } from 'react-headless-mde';
|
|
16
16
|
|
|
17
17
|
export const MarkdownEditor = () => {
|
|
18
18
|
const { ref, commandController } = useTextAreaMarkdownEditor({
|
|
@@ -59,22 +59,23 @@ export const MarkdownEditor = () => {
|
|
|
59
59
|
- image
|
|
60
60
|
- link
|
|
61
61
|
|
|
62
|
+
## New API discussion [here](https://github.com/Webbrother/react-headless-mde/issues/22)
|
|
63
|
+
|
|
62
64
|
## Todo
|
|
63
65
|
|
|
64
|
-
-
|
|
65
|
-
- undo/redo
|
|
66
|
+
- Undo/Redo commands
|
|
66
67
|
- Check execution on SSR (For example, Next.js) and, if necessary, regenerate eslint config, taking into account execution on node.js
|
|
67
68
|
- peerDependencies React?
|
|
68
|
-
-
|
|
69
|
+
- Undo for
|
|
69
70
|
- 1st priority
|
|
70
|
-
- all
|
|
71
|
-
- quote
|
|
72
|
-
- strikethrough
|
|
71
|
+
- all headers
|
|
72
|
+
- `quote`
|
|
73
|
+
- `strikethrough`
|
|
73
74
|
- 2nd priority
|
|
74
|
-
- orderedList
|
|
75
|
-
- unorderedList
|
|
76
|
-
- checkedList
|
|
77
|
-
- codeBlock
|
|
75
|
+
- `orderedList`
|
|
76
|
+
- `unorderedList`
|
|
77
|
+
- `checkedList`
|
|
78
|
+
- `codeBlock`
|
|
78
79
|
|
|
79
80
|
PR's are welcome!
|
|
80
81
|
|
|
@@ -93,7 +94,10 @@ this has been taken from [their documentation](<https://github.com/showdownjs/sh
|
|
|
93
94
|
> you should filter any suspicious content coming from user input. Showdown does not include an
|
|
94
95
|
> XSS filter, so you must provide your own. But be careful in how you do it…
|
|
95
96
|
|
|
96
|
-
You might want to take a look at
|
|
97
|
+
You might want to take a look at
|
|
98
|
+
|
|
99
|
+
- [rehype-sanitize](https://github.com/rehypejs/rehype-sanitize).
|
|
100
|
+
- [showdown-xss-filter](https://github.com/VisionistInc/showdown-xss-filter).
|
|
97
101
|
|
|
98
102
|
## Licence
|
|
99
103
|
|