Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: supports the format feature in the playground#841

Merged
keithamus merged 2 commits intocsskit:mainfrom
yisibl:add-playground-format
Jan 29, 2026
Merged

feat: supports the format feature in the playground#841
keithamus merged 2 commits intocsskit:mainfrom
yisibl:add-playground-format

Conversation

@yisibl
Copy link
Contributor

@yisibl yisibl commented Jan 28, 2026

  • Add format() function to csskit_wasm with configurable options:
    • indent_style: spaces or tabs
    • indent_width: 1-8 (default 2)
    • quote_style: single or double quotes
  • Add web-sys dependency for console error logging
  • Add unit tests for format options
  • Formatter controls are now positioned on the left side of the page, facilitating future enhancements.

Fixes: #838


It seems we still have a lot of work to do regarding the formatter.

image

@yisibl yisibl requested a review from keithamus as a code owner January 28, 2026 17:02
Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work!

@keithamus keithamus enabled auto-merge (squash) January 29, 2026 11:43
@keithamus keithamus disabled auto-merge January 29, 2026 11:43
@keithamus keithamus enabled auto-merge (squash) January 29, 2026 11:44
yisibl and others added 2 commits January 29, 2026 11:46
- Add `format()` function to csskit_wasm with configurable options:
  - indent_style: spaces or tabs
  - indent_width: 1-8 (default 2)
  - quote_style: single or double quotes
- Add web-sys dependency for console error logging
- Add unit tests for format options
- Formatter controls are now positioned on the left side of the page, facilitating future enhancements.
@keithamus keithamus force-pushed the add-playground-format branch from 9e0d2a8 to f5c8514 Compare January 29, 2026 11:48
@keithamus keithamus merged commit 1554157 into csskit:main Jan 29, 2026
17 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
## [0.0.16] - 2026-01-29

### Css_lexer
- css_lexer: Compact String & URL tokens (#843) ([#843](#843))

### Csskit_wasm
- website/csskit-wasm: Support the format feature in the playground (#841) ([#841](#841))

[forcebuild]
@keithamus keithamus mentioned this pull request Jan 29, 2026
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
## [0.0.16] - 2026-01-29

### Css_lexer
- css_lexer: Compact String & URL tokens (#843) ([#843](#843))

### Csskit_wasm
- website/csskit-wasm: Support the format feature in the playground (#841) ([#841](#841))
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
## [0.0.16] - 2026-01-29

### Css_lexer
- css_lexer: Compact String & URL tokens (#843) ([#843](#843))
- csskit/css_lexer/css_parse: Add super secret hidden `expand` command (#846) ([#846](#846))

### Csskit_wasm
- website/csskit-wasm: Support the format feature in the playground (#841) ([#841](#841))

[forcebuild]
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
## [0.0.16] - 2026-01-29

### Css_lexer
- css_lexer: Compact String & URL tokens (#843) ([#843](#843))
- csskit/css_lexer/css_parse: Add super secret hidden `expand` command (#846) ([#846](#846))

### Csskit_wasm
- website/csskit-wasm: Support the format feature in the playground (#841) ([#841](#841))
@yisibl yisibl deleted the add-playground-format branch February 11, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supports the format feature in the playground

2 participants