Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vue: fix format on blocks with
src
attribute (#9052)
- Loading branch information
Showing
4 changed files
with
193 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#### Fix format blocks with `src` attribute ([#9052](https://github.com/prettier/prettier/pull/9052) by [@fisker](https://github.com/fisker)) | ||
|
||
<!-- prettier-ignore --> | ||
```vue | ||
<!-- Input --> | ||
<custom lang="markdown" src="./foo.md"></custom> | ||
<custom lang="markdown" src="./foo.md" /> | ||
<!-- Prettier stable --> | ||
<custom lang="markdown" src="./foo.md"> | ||
</custom> | ||
<custom lang="markdown" src="./foo.md" | ||
/> | ||
<!-- Prettier master --> | ||
<custom lang="markdown" src="./foo.md"></custom> | ||
<custom lang="markdown" src="./foo.md" /> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template lang="uppercase-rocks" src="foo.uppercase-rocks"></template> | ||
<style lang="uppercase-rocks" src="foo.uppercase-rocks"></style> | ||
<script lang="uppercase-rocks" src="foo.uppercase-rocks"></script> | ||
<custom lang="uppercase-rocks" src="foo.uppercase-rocks"></custom> | ||
<template lang="uppercase-rocks" src></template> | ||
<template lang="uppercase-rocks" src=""></template> | ||
<template lang="uppercase-rocks" src>PrEtTiEr</template> | ||
<template lang="uppercase-rocks" src="">PrEtTiEr</template> | ||
<template lang="uppercase-rocks" src> | ||
|
||
</template> | ||
<template lang="uppercase-rocks" src=""> | ||
|
||
</template> | ||
|
||
<template lang="uppercase-rocks" src="foo.uppercase-rocks"> | ||
PrEtTiEr | ||
</template> | ||
|
||
|
||
<template lang="uppercase-rocks" :src="">PrEtTiEr</template> | ||
<template lang="uppercase-rocks" @src="">PrEtTiEr</template> | ||
|
||
<template lang="uppercase-rocks" src="foo.uppercase-rocks"/> | ||
<style lang="uppercase-rocks" src="foo.uppercase-rocks"/> | ||
<script lang="uppercase-rocks" src="foo.uppercase-rocks"/> | ||
<custom lang="uppercase-rocks" src="foo.uppercase-rocks"/> | ||
<custom lang="uppercase-rocks" src/> | ||
<template lang="uppercase-rocks" src=""/> |