Editor wikimarkup transformer

Typescript ❤️

Wiki markup transformer for JIRA and Confluence

Install
yarn add @atlaskit/editor-wikimarkup-transformer
Source
Bundle
Changelog
Latest

11.15.1

Patch Changes

  • Updated dependencies

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 package provides a transformer for ProseMirror Node <-> Wikimarkup conversion.

Usage

Use the component in your React app as follows to encode ProseMirror node to Wikimarkup:

import { WikiMarkupTransformer } from '@atlaskit/editor-wikimarkup-transformer'; const transformer = new WikiMarkupTransformer(schema); const wikimarkupString = transformer.encode(pmNode); // A Wikimarkup string representing the Prosemirror node output

Use the component in your React app as follows to parse Wikimarkup to ProseMirror node:

import { WikiMarkupTransformer } from '@atlaskit/editor-wikimarkup-transformer'; const transformer = new WikiMarkupTransformer(schema); const pmNode = transformer.parse(wikiMarkup); // A prosemirror node is output

ADF to Wikimarkup

Editor
Output: