mathpix-markdown-it
Version:
Mathpix-markdown-it is an open source implementation of the mathpix-markdown spec written in Typescript. It relies on the following open source libraries: MathJax v3 (to render math with SVGs), markdown-it (for standard Markdown parsing)
12 lines • 530 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLastChild = exports.isFirstChild = void 0;
var isFirstChild = function (node) {
return node.parent && node.parent.childNodes[0] && node.parent.childNodes[0] === node;
};
exports.isFirstChild = isFirstChild;
var isLastChild = function (node) {
return node.parent && node.parent.childNodes && node.parent.childNodes[node.parent.childNodes.length - 1] === node;
};
exports.isLastChild = isLastChild;
//# sourceMappingURL=node-utils.js.map