@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
14 lines • 368 B
JavaScript
const INDENT = ' ';
export function getIndent(state) {
var _a;
return (_a = state.options.indent) !== null && _a !== void 0 ? _a : INDENT;
}
export function indent(state) {
const current = state.delim;
state.delim += getIndent(state);
function dedent() {
state.delim = current;
}
return dedent;
}
//# sourceMappingURL=indent.js.map