@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
19 lines • 532 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.indent = exports.getIndent = void 0;
const INDENT = ' ';
function getIndent(state) {
var _a;
return (_a = state.options.indent) !== null && _a !== void 0 ? _a : INDENT;
}
exports.getIndent = getIndent;
function indent(state) {
const current = state.delim;
state.delim += getIndent(state);
function dedent() {
state.delim = current;
}
return dedent;
}
exports.indent = indent;
//# sourceMappingURL=indent.js.map
;