UNPKG

yoastseo

Version:

Yoast client-side content analysis

33 lines (32 loc) 994 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _LeafNode = _interopRequireDefault(require("./LeafNode")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * A header in a document. * * @extends module:parsedPaper/structure.LeafNode * * @memberOf module:parsedPaper/structure */ class Heading extends _LeafNode.default { /** * Makes a new header object. * * @param {number} level The header level (e.g. 1 for main heading, 2 for subheading lvl 2, etc.) * @param {Object} sourceCodeLocation The parse5 formatted location of the element inside of the source code. */ constructor(level, sourceCodeLocation) { super("Heading", sourceCodeLocation); /** * Heading's level (e.g. 1 for "h1", 2 for "h2", ... ). * @type {number} */ this.level = level; } } var _default = exports.default = Heading; //# sourceMappingURL=Heading.js.map