@@ -248,35 +248,35 @@ When you call `toString(options)` you can control how the output is formatted.
248248If an option is omitted, the formatter learns from the current document and keeps its style. If no style can be inferred,
249249the formatter falls back to a compact style with no extra spaces or indentation.
250250
251- ### Options
252-
253- | Option | Type/Values | Description |
254- | -------------------------------- | ------------------------| --------------------------------------------------------|
255- | ** indentationLevel** | ` number ` | Base indentation level for the document. |
256- | ** indentationCharacter** | ` 'space' \| 'tab' ` | Character used for indentation. |
257- | ** string.quote** | ` 'single' \| 'double' ` | Quotation style for string values. |
258- | ** property.quote** | ` 'single' \| 'double' ` | Quotation style for property keys. |
259- | ** property.unquoted** | ` boolean ` | Allow unquoted property keys when valid. |
260- | ** array.indentationSize** | ` number ` | Indentation size for array entries. |
261- | ** array.trailingIndentation** | ` boolean ` | Indent closing bracket on a new line. |
262- | ** array.leadingIndentation** | ` boolean ` | Indent opening bracket on a new line. |
263- | ** array.entryIndentation** | ` boolean ` | Indent each array entry. |
264- | ** array.trailingComma** | ` boolean ` | Append a trailing comma after the last entry. |
265- | ** array.commaSpacing** | ` boolean ` | Add space after commas in arrays. |
266- | ** array.colonSpacing** | ` boolean ` | Add space after colons in arrays (for objects inline). |
267- | ** object.indentationSize** | ` number ` | Indentation size for object properties. |
268- | ** object.trailingIndentation** | ` boolean ` | Indent closing brace on a new line. |
269- | ** object.leadingIndentation** | ` boolean ` | Indent opening brace on a new line. |
270- | ** object.entryIndentation** | ` boolean ` | Indent each object property. |
271- | ** object.trailingComma** | ` boolean ` | Append a trailing comma after the last property. |
272- | ** object.commaSpacing** | ` boolean ` | Add space after commas in objects. |
273- | ** object.colonSpacing** | ` boolean ` | Add space after colons in objects. |
274-
275- ### Quick recipes
251+ #### Options
252+
253+ | Option | Type/Values | Description |
254+ | ------------------------------| ------------------------| --------------------------------------------------------|
255+ | ` indentationLevel ` | ` number ` | Base indentation level for the document. |
256+ | ` indentationCharacter ` | ` 'space' \| 'tab' ` | Character used for indentation. |
257+ | ` string.quote ` | ` 'single' \| 'double' ` | Quotation style for string values. |
258+ | ` property.quote ` | ` 'single' \| 'double' ` | Quotation style for property keys. |
259+ | ` property.unquoted ` | ` boolean ` | Allow unquoted property keys when valid. |
260+ | ` array.indentationSize ` | ` number ` | Indentation size for array entries. |
261+ | ` array.trailingIndentation ` | ` boolean ` | Indent closing bracket on a new line. |
262+ | ` array.leadingIndentation ` | ` boolean ` | Indent opening bracket on a new line. |
263+ | ` array.entryIndentation ` | ` boolean ` | Indent each array entry. |
264+ | ` array.trailingComma ` | ` boolean ` | Append a trailing comma after the last entry. |
265+ | ` array.commaSpacing ` | ` boolean ` | Add space after commas in arrays. |
266+ | ` array.colonSpacing ` | ` boolean ` | Add space after colons in arrays (for objects inline). |
267+ | ` object.indentationSize ` | ` number ` | Indentation size for object properties. |
268+ | ` object.trailingIndentation ` | ` boolean ` | Indent closing brace on a new line. |
269+ | ` object.leadingIndentation ` | ` boolean ` | Indent opening brace on a new line. |
270+ | ` object.entryIndentation ` | ` boolean ` | Indent each object property. |
271+ | ` object.trailingComma ` | ` boolean ` | Append a trailing comma after the last property. |
272+ | ` object.commaSpacing ` | ` boolean ` | Add space after commas in objects. |
273+ | ` object.colonSpacing ` | ` boolean ` | Add space after colons in objects. |
274+
275+ #### Quick recipes
276276
277277Here are some common formatting styles you can achieve by combining different options.
278278
279- #### 1) Compact, single-line arrays; pretty multi-line objects
279+ ##### 1) Compact, single-line arrays; pretty multi-line objects
280280
281281``` ts
282282node .toString ({
@@ -310,7 +310,7 @@ Output style:
310310}
311311```
312312
313- #### 2) Tabs everywhere, single quotes, unquoted props where valid
313+ ##### 2) Tabs everywhere, single quotes, unquoted props where valid
314314
315315``` ts
316316node .toString ({
@@ -340,7 +340,7 @@ Output style:
340340}
341341```
342342
343- #### 3) Strict compact style (no spaces after commas/colons)
343+ ##### 3) Strict compact style (no spaces after commas/colons)
344344
345345``` ts
346346node .toString ({
0 commit comments