Skip to content

Instantly share code, notes, and snippets.

@marcpalmer
Last active September 5, 2022 15:20
Show Gist options
  • Save marcpalmer/5492a6baed73e3b836871a4cc6d7e344 to your computer and use it in GitHub Desktop.
Save marcpalmer/5492a6baed73e3b836871a4cc6d7e344 to your computer and use it in GitHub Desktop.
Possible structured data in Markdown
| userID | name | age | permissions | address |
|--------|------|-----|-------------|--------------------|
|1 |peter | 32 |read |[object](#address-1)|
|2 |admin | 100 |read,write |[object](#address-2)|
## Address 1 // <--- linkify this when loading e.g. address-1
| street | town |
|--------|-------|
|High St.|Tetbury|
## Address 2
| street | town |
|--------|-------|
|Main St.|Oldtown|
Then there could be support for simple value lists (ordered) and sets:
| userID | name | age | permissions |
|--------|------|-----|----------------------------|
|1 |peter | 32 |[permissions](permissions-1)|
## Permissions 1
1. read
2. write
3. admin
...and to-many relationships:
| userID | name | age | addresses |
|--------|------|-----|------------------------|
|1 |peter | 32 |[addresses](addresses-1)|
## Addresses 1
| street | town |
|--------|-------|
|High St.|Tetbury|
|Main St.|Oldtown|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment