UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

8 lines 210 B
import { baseMarkPattern } from './__base'; export const subsup = (text, attrs) => { if (attrs.type === 'sub') { return baseMarkPattern(text, '~'); } else { return baseMarkPattern(text, '^'); } };