UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

13 lines (12 loc) 890 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mediaInline = void 0; var mediaInline = exports.mediaInline = function mediaInline(node) { var _context$conversion$m, _context$conversion; var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, context = _ref.context; var fileName = (_context$conversion$m = context === null || context === void 0 || (_context$conversion = context.conversion) === null || _context$conversion === void 0 || (_context$conversion = _context$conversion.mediaConversion) === null || _context$conversion === void 0 || (_context$conversion = _context$conversion[node.attrs.id]) === null || _context$conversion === void 0 ? void 0 : _context$conversion.transform) !== null && _context$conversion$m !== void 0 ? _context$conversion$m : node.attrs.id; return "[^".concat(fileName, "]"); };