UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

21 lines 417 B
import { commonMacro } from './common-macro'; export const anchorMacro = ({ input, position, schema, context }) => { return commonMacro(input.substring(position), schema, { keyword: 'anchor', paired: false, context, rawContentProcessor }); }; const rawContentProcessor = (_rawAttrs, _rawContent, length, _schema, _context) => { return { type: 'text', text: '', length }; };