You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to use React-mde with Font Awesome 4 (and possibly earlier versions) – see below under 'Customizing Icons'.
31
+
30
32
## Optional dependencies
31
33
32
34
-[Showdown](https://github.com/showdownjs/showdown). React-mde is not opinionated as to how to transform markdown into HTML and this can be done both in client-side,
@@ -103,8 +105,16 @@ For example, you can use your own custom icon component by changing the `iconPro
103
105
/>
104
106
```
105
107
108
+
In order to use Font Awesome 4 classes, you can pass the following prop:
109
+
```
110
+
buttonContentOptions={{
111
+
iconProvider: name => <i className={`fa fa-${name}`} />,
112
+
}}
113
+
```
114
+
This will cause React-mde to use FA4-style classnames.
0 commit comments