Releases: AdrianApan/yamde
[FIX] v1.7.1
- Fix an issue with the
dist
folder when runningnpm publish
[RELEASE] v1.7.0
- Add
required
prop (defaults tofalse
)
Credits to @joepio for his contribution on this.
🐛 Fix toolbar filtering on mobile view
Toolbar should be filtered correctly now on mobile too when passing in the toolbar
prop.
✨ Toolbar customisation options
You can customize the toolbar actions by passing in the toolbar
prop (toolbar?: string[]
).
Omiting this prop will default to showing all available actions.
<Yamde value={text} handler={setText} toolbar={['bold', 'italic', 'strikethrough']} />
Available actions:
Identifier | Description |
---|---|
bold |
Bold text. |
italic |
Italic text. |
strikethrough |
|
heading1 |
Heading 1 (H1) |
heading2 |
Heading 2 (H2) |
heading3 |
Heading 3 (H3) |
ulist |
Unordered list |
olist |
Ordered list |
table |
Table markdown |
image |
Image markdown |
quote |
Blockquote markdown |
code |
Code highlight |
hr |
Horizontal rule |
⚡️ Move to Ant Design icons
Dropped react-icon
in favour of @ant-design/icons
, considerably reducing bundle size and performance.
Reduce bundle size
Reduce bundle size from 1.2MB
(297.7KB
gzipped) to 162.37KB
(50.77KB
gzipped). The react-icons
package turned out to be the pain point when introducing a bundler such as rollup
in the mix. While this is an immediate optimisation, the next version will replace react-icons
entirely and will introduce a bundler such as rollup
for maximum optimisation.
🔍 Add package keywords
Add extra package.json
keywords.
🎉 First stable release
Base features:
- 14 action buttons
- Responsive UI
- Dark/Light mode support