Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add math option to documentation for Less 4.x #383

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,27 @@ Default: `false`

Force evaluation of imports.

#### strictMath
#### strictMath (deprecated replaced by `Math`)
Type: `Boolean`
Default: `false`

When enabled, math is required to be in parenthesis.


#### math
Type: `String`
Default: `parens-division`

Available options:

| Option | Description |
|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| `always` | Less does math eagerly |
| `parens-division` | No division is performed outside of parens using / operator (but can be "forced" outside of parens with ./ operator - ./ is deprecated) |
| `parens` | Parens required for all math expressions |
| `strict` | Requires brackets for all operations. |


#### strictUnits
Type: `Boolean`
Default: `false`
Expand Down
16 changes: 15 additions & 1 deletion docs/less-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,26 @@ Default: `false`

Force evaluation of imports.

## strictMath
## strictMath (deprecated replaced by `Math`)
Type: `Boolean`
Default: `false`

When enabled, math is required to be in parenthesis.

## math
Type: `String`
Default: `parens-division`

Available options:

| Option | Description |
|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| `always` | Less does math eagerly |
| `parens-division` | No division is performed outside of parens using / operator (but can be "forced" outside of parens with ./ operator - ./ is deprecated) |
| `parens` | Parens required for all math expressions |
| `strict` | Requires brackets for all operations. |


## strictUnits
Type: `Boolean`
Default: `false`
Expand Down
Loading