UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

16 lines (15 loc) 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.title = title; /** * This will return ADF to replace the titles in some macro * For example * {panel:title}aaa{panel} */ function title(text, schema) { var mark = schema.marks.strong.create(); var title = schema.text(text, [mark]); return schema.nodes.paragraph.createChecked({}, [title]); }