UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

14 lines (13 loc) 357 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.heading = void 0; var _inlines = require("./inlines"); var heading = exports.heading = function heading(node) { var result = ''; node.forEach(function (n) { result += (0, _inlines.inlines)(n); }); return "h".concat(node.attrs.level, ". ").concat(result); };