Editor bitbucket transformer
Typescript ❤️
Editor Bitbucket transformer
Install
yarn add @atlaskit/editor-bitbucket-transformer
Source
Bundle
Changelog
Latest
9.1.0
Minor Changes
- #120472
73c800ab5f2fc
- ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
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 markdown or converting Bitbucket HTML to ProseMirror Node.
Usage
Use the encoder with editor-bitbucket-transformer as follows:
import { BitbucketTransformer } from '@atlaskit/editor-bitbucket-transformer';
import { bitbucketSchema as schema } from '@atlaskit/adf-schema/schema-bitbucket';
const serializer = new BitbucketTransformer(schema);
// To encode editor content as markdown
serializer.encode(editorContent);
// To convert HTML to editor content
serializer.parse(html);
Bitbucket Markdown
️️️ Bitbucket Editor
Bitbucket HTML
️️️ Bitbucket Editor