UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

26 lines (25 loc) 706 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.anchorMacro = void 0; var _commonMacro = require("./common-macro"); var anchorMacro = exports.anchorMacro = function anchorMacro(_ref) { var input = _ref.input, position = _ref.position, schema = _ref.schema, context = _ref.context; return (0, _commonMacro.commonMacro)(input.substring(position), schema, { keyword: 'anchor', paired: false, context: context, rawContentProcessor: rawContentProcessor }); }; var rawContentProcessor = function rawContentProcessor(_rawAttrs, _rawContent, length, _schema, _context) { return { type: 'text', text: '', length: length }; };