Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@webscopeio/react-markdown-editor
Advanced tools
Markdown editor with Github-like autocomplete
yarn add @webscopeio/react-markdown-editor
https://webscope-react-markdown-editor.firebaseapp.com/
We needed a simple markdown editor with preview functionality and OOTB support for emojis.
Since we're very satisfied with Github's markdown editor, the goal is to get as close as possible to it's functionality.
yarn install
& import
and you're ready to go -> If you're looking for more customizable solution, check out @webscopeio/react-textarea-autocomplete, which is more low-level.npm
modules in a future (markdown functionality, autocomplete functionality, etc.)import React, { Component } from 'react'
import ReactMarkdownEditor from '@webscopeio/react-markdown-editor'
export default class App extends Component {
state = {
value: 'Hello world',
}
render () {
return (
<div>
<ReactMarkdownEditor
placeholder={'Write something ...'}
value={this.state.value}
onChange={({ target: { value } }) => this.setState({ value })}
/>
</div>
)
}
}
Props | Type | Description | Default |
---|---|---|---|
value | string | value property | '' |
onChange | (Event) => void | onChange handler | None |
placeholder | string | Placeholder value | '' |
textAreaProperties | Object | RTA properties | {} |
noPreviewMessage | string | Message to be displayed in a preview panel if no content is present | Nothing to preview |
previewClass | string | Main class name that is used to format Markup preview | markdown-body see githubb-markdown-css |
classes | {[key: string]: string} | classes / CSS modules reference to override styling |
We provide basic styles so that the plugin can be used out of the box. You can override styles by passing classes
property.
Ideally, you will pass a reference to your CSS module. Check out the source code for more info. Optionally you can pass class names directly if you don't use CSS modules.
If I have seen further it is by standing on ye sholders of Giants. (Isaac Newton)
This library is here thanks to the great open source software that is used under the hood. The most important parts are:
package.json
MIT
FAQs
Markdown editor with Github-like autocomplete
We found that @webscopeio/react-markdown-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.