UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

10 lines 297 B
/** * This will return ADF to replace the titles in some macro * For example * {panel:title}aaa{panel} */ export function title(text, schema) { const mark = schema.marks.strong.create(); const title = schema.text(text, [mark]); return schema.nodes.paragraph.createChecked({}, [title]); }