Skip to content

Instantly share code, notes, and snippets.

@ento
Last active March 14, 2020 04:52
Show Gist options
  • Save ento/d428290398f5670ffb8ebc446b5c0fd3 to your computer and use it in GitHub Desktop.
Save ento/d428290398f5670ffb8ebc446b5c0fd3 to your computer and use it in GitHub Desktop.
How GitHub renders YAML front matter
string mapping array boolean number multiline
hello
more-mapping empty array string
even-more-mapping
hello
one
two
three
3
hello
one
two
true
1
hello world

hello

foo 123 {"foo"=>"bar"} ["one", "two", 123]
string
number
mapping
sequence
null
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam lobortis et orci eu fringilla. Morbi vitae pretium nisl, quis varius nisl. Nulla facilisi. Vivamus et elit dolor. Quisque non nunc odio. Sed eu quam ut elit hendrerit bibendum a et risus. Proin tristique faucibus ipsum. Nam ut diam a urna auctor mollis. Cras varius quam elit, eu consectetur ante rutrum ut. Donec enim ligula, porta non augue vitae, tempor vehicula mi. Vivamus laoreet leo in ligula lacinia ullamcorper. Proin quis tempus libero, nec vehicula mauris. Curabitur a lacus mauris. Sed aliquet, eros non semper ultrices, odio mauris sollicitudin odio, vel maximus lorem turpis eget sem. Vestibulum porta magna eget nibh malesuada tincidunt nec et sem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam ut urna pretium, sagittis purus eget, consequat ipsum. Nunc ornare a ante quis dapibus. In ullamcorper erat a metus dapibus, sit amet laoreet ligula consectetur. Praesent molestie vitae metus non euismod. Duis at accumsan ligula. Vestibulum ultricies sapien ut est venenatis, congue consequat tellus convallis. Nam porttitor sollicitudin nibh vitae consectetur.
Error in user YAML: Alias parsing is not enabled.
---
- foo: &anchor
    bar: baz
- boo: *anchor
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment