UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

11 lines 294 B
import { encode } from '..'; export const expand = (node, { context } = {}) => { // Title of expand appears as a bold text, followed by empty line const result = [`*${node.attrs.title}*`, '']; node.forEach(n => { result.push(encode(n, context)); }); return result.join('\n'); };