Beautiful
This commit is contained in:
parent
4d8a9dff8e
commit
a5109e1b20
3 changed files with 83 additions and 4 deletions
34
metadata.md
Normal file
34
metadata.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Metadata Format
|
||||
This format stores metadata at the top of a file using `key=value`
|
||||
pairs.
|
||||
|
||||
## Structure
|
||||
|
||||
key=value
|
||||
key=value
|
||||
key=value
|
||||
====
|
||||
(rest of the file)
|
||||
|
||||
- Each line before the separator must be `key=value`.
|
||||
- The separator is a line containing only `=` characters (like `===`
|
||||
or `====`).
|
||||
- Anything after the separator is regular file content.
|
||||
|
||||
## Example
|
||||
|
||||
title=My Song
|
||||
artist=Pink Floyd
|
||||
year=1973
|
||||
====
|
||||
Lyrics go here...
|
||||
|
||||
## Parsed Result
|
||||
|
||||
``` json
|
||||
{
|
||||
"title": "My Song",
|
||||
"artist": "Pink Floyd",
|
||||
"year": "1973"
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue