UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

16 lines (15 loc) 415 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doc = void 0; var _ = require("../"); var doc = exports.doc = function doc(node) { var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, context = _ref.context; var result = []; node.forEach(function (n) { result.push((0, _.encode)(n, context)); }); return result.join('\n\n'); };