17 lines
302 B
Markdown
17 lines
302 B
Markdown
#### Preserve order of anchor and tag (#19599 by @fisker)
|
|
|
|
<!-- prettier-ignore -->
|
|
```yaml
|
|
# Input
|
|
foo: &anchor1 !!str Value1
|
|
bar: !!str &anchor2 Value2
|
|
|
|
# Prettier stable
|
|
foo: !!str &anchor1 Value1
|
|
bar: !!str &anchor2 Value2
|
|
|
|
# Prettier main
|
|
foo: &anchor1 !!str Value1
|
|
bar: !!str &anchor2 Value2
|
|
```
|