Skip to content

Commit 90dea29

Browse files
committed
Document the imports and mergeNth options
1 parent bcf7d52 commit 90dea29

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@ Output:
6666

6767
## Options
6868

69-
An options object can be passed as the second argument to `cssToHtml()` to customize the behaviour of the HTML generator. _(Values marked with * are default)._
70-
71-
| Option | Values | Description |
72-
| :----------- | :--------- | :---------- |
73-
| `duplicates` | `preserve` | Preserve duplicate elements. Eg: <br/> `button {} button {}` <br/> Will become: <br/> `<button></button><button></button>`. |
74-
| | `remove` * | Remove duplicate elements. Eg: <br/> `button {} button {}` <br/> Will become: <br/> `<button></button>`. |
75-
| `fill` | `fill` * | Fill the DOM with duplicate elements up to the desired level. Eg: <br/> `span#fourth:nth-child(4) {}` <br/> Will become: <br/> `<span></span><span></span><span></span><span id="fourth"></span>`. |
76-
| | `no-fill` | Don't fill. Eg: <br/> `span#fourth:nth-child(4) {}` <br/> Will become: <br/> `<span id="fourth"></span>`. |
69+
An options object can be passed as the second argument to `cssToHtml()` to customize the behavior of the HTML generator. _(Values marked with * are default)._
70+
71+
| Option | Values | Description |
72+
| :----------- | :------------- | :---------- |
73+
| `duplicates` | `preserve` | Preserve duplicate elements. Eg: <br/> `button {} button {}` <br/> Will become: <br/> `<button></button><button></button>`. |
74+
| | `remove` * | Remove duplicate elements. Eg: <br/> `button {} button {}` <br/> Will become: <br/> `<button></button>`. |
75+
| `fill` | `fill` * | Fill the DOM with duplicate elements up to the desired location. Eg: <br/> `span#fourth:nth-child(4) {}` <br/> Will become: <br/> `<span></span><span></span><span></span><span id="fourth"></span>`. |
76+
| | `no-fill` | Don't fill. Eg: <br/> `span#fourth:nth-child(4) {}` <br/> Will become: <br/> `<span id="fourth"></span>`. |
77+
| `imports` | `include` | Fetch imported stylesheets and include them in the HTML generation process. |
78+
| | `style-only` * | Ignore `@import` rules. |
79+
| `mergeNth` | `merge` * | Elements generated from `:nth-` selectors will be merged with any similar element occupying the desired location. |
80+
| | `no-merge` | These elements will not be merged. |

0 commit comments

Comments
 (0)