@atlaskit/editor-wikimarkup-transformer
Version:
Wiki markup transformer for JIRA and Confluence
17 lines (16 loc) • 529 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.expand = void 0;
var _ = require("..");
var expand = exports.expand = function expand(node) {
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
context = _ref.context;
// Title of expand appears as a bold text, followed by empty line
var result = ["*".concat(node.attrs.title, "*"), ''];
node.forEach(function (n) {
result.push((0, _.encode)(n, context));
});
return result.join('\n');
};