Skip to content

feat: { spacing: 'dedent' } #146

@bennypowers

Description

@bennypowers

Let's give users a middle ground between 'compact' and 'preserve':

/**
 * @fires {CustomEvent<{ component: PfeClipboard }>} copied
 *        Fires when the current url is successfully copied the user's system clipboard.
 *
 *        ```js
 *        detail: {
 *          url: string
 *        }
 *        ```
 *
 */
console.log(parse(comment, { spacing: 'dedent' }.tags[0].description)
Fires when the current url is successfully copied the user's system clipboard.

```js
detail: {
  url: string
}
```

this shouldn't be hard to implement, it's basically:

  1. get the value if spacing was 'preserve'
  2. run dedent from 'dedent' npm package on the result

If the maintainers wish, I'm happy to make a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions