Editor slack transformer
Editor Slack transformer
yarn add @atlaskit/editor-slack-transformer
4.0.0
Major Changes
-
#117363
10a0f7f6c2027
- This package'speerDependencies
have been adjusted forreact
and/orreact-dom
to reflect the status of only supporting React 18 going forward. No explicit breaking change to React support has been made in this release, but this is to signify going forward, breaking changes for React 16 or React 17 may come via non-major semver releases.Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
Note: This component is designed for internal Atlassian development.
External contributors will be able to use this component but will not be able to submit issues.
This transformer allows encoding ProseMirror Node to Slack markdown.
Usage
Use the encoder with editor-slack-transformer as follows:
import { SlackTransformer } from '@atlaskit/editor-slack-transformer';
const serializer = new SlackTransformer();
// To encode editor content as Slack markdown
serializer.encode(editorContent);