Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@equinor/fusion-wc-markdown

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-wc-markdown

Markdown editor created from ProseMirror markdown

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
178
decreased by-83.94%
Maintainers
4
Weekly downloads
 
Created
Source

fusion-wc-markdown Published on npm

Storybook

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
NameTypeDefaultDescription
menuItemsArray<MdMenuItemType>*['strong', 'em', 'bullet_list', 'ordered_list']List of visible menu buttons
minHeightstring''Markdown Editor minimum height
valuestring''Markdown editors value
menuSizeMenuSizes**'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';

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc