@mintlify/cli 4.0.1527 → 4.0.1528

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2984,7 +2984,7 @@ function isWordChar(ch) {
2984
2984
  }
2985
2985
  var SerializerState = class {
2986
2986
  constructor(options = {}) {
2987
- var _a, _b, _c, _d;
2987
+ var _a, _b, _c, _d, _e;
2988
2988
  this.chunks = [];
2989
2989
  this.chunkStarts = [];
2990
2990
  this.outLength = 0;
@@ -3003,8 +3003,9 @@ var SerializerState = class {
3003
3003
  this.options = {
3004
3004
  tightLists: (_a = options.tightLists) !== null && _a !== void 0 ? _a : false,
3005
3005
  indentSize: (_b = options.indentSize) !== null && _b !== void 0 ? _b : 2,
3006
- removeTrailingNewline: (_c = options.removeTrailingNewline) !== null && _c !== void 0 ? _c : true,
3007
- hasReferenceDefinitions: (_d = options.hasReferenceDefinitions) !== null && _d !== void 0 ? _d : false
3006
+ listIndentSize: (_c = options.listIndentSize) !== null && _c !== void 0 ? _c : 0,
3007
+ removeTrailingNewline: (_d = options.removeTrailingNewline) !== null && _d !== void 0 ? _d : true,
3008
+ hasReferenceDefinitions: (_e = options.hasReferenceDefinitions) !== null && _e !== void 0 ? _e : false
3008
3009
  };
3009
3010
  this.indentSize = this.options.indentSize;
3010
3011
  this.hasReferenceDefinitions = this.options.hasReferenceDefinitions;
@@ -3484,7 +3485,7 @@ function renderList(state, node, ordered, renderContent2) {
3484
3485
  const checked = child.attrs.checked;
3485
3486
  const taskMarker = checked == null ? "" : checked ? "[x] " : "[ ] ";
3486
3487
  const prefix = (ordered ? `${start + i}. ` : "- ") + taskMarker;
3487
- const indent = " ".repeat(prefix.length);
3488
+ const indent = " ".repeat(Math.max(prefix.length, state.options.listIndentSize));
3488
3489
  const itemState = new SerializerState(state.options);
3489
3490
  itemState.sourceMap = state.sourceMap ? [] : null;
3490
3491
  renderContent2(itemState, child);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1527",
3
+ "version": "4.0.1528",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -86,7 +86,7 @@
86
86
  "keytar": "7.9.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@mintlify/editor": "0.0.410",
89
+ "@mintlify/editor": "0.0.411",
90
90
  "@mintlify/ts-config": "2.0.2",
91
91
  "@tsconfig/recommended": "1.0.2",
92
92
  "@types/detect-port": "1.3.2",
@@ -105,5 +105,5 @@
105
105
  "vitest": "2.1.9",
106
106
  "vitest-mock-process": "1.0.4"
107
107
  },
108
- "gitHead": "258d8ffc81ca93d98057c7ebd82bfcdfefafbe1b"
108
+ "gitHead": "dd62ac0de90eabc5d35842d4030000e494787d6a"
109
109
  }