Skip to content

Latest commit

 

History

History
90 lines (63 loc) · 3.42 KB

CHANGELOG.unreleased.md

File metadata and controls

90 lines (63 loc) · 3.42 KB
  • Markdown: Do not align table contents if it exceeds the print width and --prose-wrap never is set ([#5701] by [@chenshuai2144])

    The aligned table is less readable than the compact one if it's particularly long and the word wrapping is not enabled in the editor so we now print them as compact tables in these situations.

    <!-- Input -->
    | Property | Description | Type | Default |
    | -------- | ----------- | ---- | ------- |
    | bordered | Toggles rendering of the border around the list | boolean | false |
    | itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - |
    
    <!-- Output (Prettier stable, --prose-wrap never) -->
    | Property   | Description                                                                                                           | Type    | Default |
    | ---------- | --------------------------------------------------------------------------------------------------------------------- | ------- | ------- |
    | bordered   | Toggles rendering of the border around the list                                                                       | boolean | false   |
    | itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string  | -       |
    
    <!-- Output (Prettier master, --prose-wrap never) -->
    | Property | Description | Type | Default |
    | --- | --- | --- | --- |
    | bordered | Toggles rendering of the border around the list | boolean | false |
    | itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - |
  • LWC: Add support for Lightning Web Components ([#5800] by [@ntotten])

    Supports Lightning Web Components (LWC) template format for HTML attributes by adding a new parser called lwc.

    // Input
    <my-element data-for={value}></my-element>
    
    // Output (Prettier stable)
    <my-element data-for="{value}"></my-element>
    
    // Output (Prettier master)
    <my-element data-for={value}></my-element>
  • Fix prettier.getSupportInfo() reporting babel parser for older versions of Prettier. ([#5826] by [@azz])

    In version 1.16.0 of Prettier, the babylon parser was renamed to babel. Unfortunately this lead to a minor breaking change: prettier.getSupportInfo('1.15.0') would report that it supported babel, not babylon, which breaks text-editor integrations. This has now been fixed.