UNPKG

@connectv/marked

Version:
18 lines 754 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function Heading(props, renderer, children) { if (props.depth == 1) return renderer.create("h1", { id: props.slug }, children); else if (props.depth == 2) return renderer.create("h2", { id: props.slug }, children); else if (props.depth == 3) return renderer.create("h3", { id: props.slug }, children); else if (props.depth == 4) return renderer.create("h4", { id: props.slug }, children); else if (props.depth == 5) return renderer.create("h5", { id: props.slug }, children); else return renderer.create("h6", { id: props.slug }, children); } exports.Heading = Heading; //# sourceMappingURL=heading.js.map