1.3.0 • Published 10 months ago
@equinor/fusion-wc-markdown v1.3.0
fusion-wc-markdown

Installation
npm install @equinor/fusion-wc-markdown
Markdown Editor
Example
<fusion-wc-markdown-editor props>
**some** markdown *text*
</fusion-wc-markdown-editor>
Usage
const markdown = "# my heading here";
<fwc-markdown-editor value={markdown} onInput={(e)=>{console.log(e.target._value)}} change={console.log} />
Properties/Attributes
Name | Type | Default | Description |
---|---|---|---|
menuItems | Array<MdMenuItemType>* | ['strong', 'em', 'bullet_list', 'ordered_list'] | List of visible menu buttons |
minHeight | string | '' | Markdown Editor minimum height |
value | string | '' | Markdown editors value |
menuSize | MenuSizes** | 'medium' | Size of the menu buttons |
* Array<MdMenuItemType>
is list of showing visible menu buttons available as MdMenuItemType
.
type MdMenuItemType =
| 'strong'
| 'em'
| 'link'
| 'ordered_list'
| 'bullet_list'
| 'paragraph'
| 'blockquote'
| 'h1'
| 'h2'
| 'h3';
* MenuSizes
type imported from markdown component.
type MenuSizes = 'small' | 'medium' | 'large';
1.3.0
10 months ago
1.2.1
1 year ago
1.2.0
2 years ago
1.0.2
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.3.6
2 years ago
0.3.5
2 years ago
0.3.2
2 years ago
0.3.5-next.0
2 years ago
0.3.4
2 years ago
0.3.5-next.1
2 years ago
0.3.3
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago