UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

10 lines 347 B
import { encode } from '..'; export var blockquote = function blockquote(node) { var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, context = _ref.context; var result = []; node.forEach(function (n) { result.push(encode(n, context)); }); return "{quote}".concat(result.join('\n\n'), "{quote}"); };