Skip to content

Instantly share code, notes, and snippets.

@guillaumebort
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumebort/9660586 to your computer and use it in GitHub Desktop.
Save guillaumebort/9660586 to your computer and use it in GitHub Desktop.
Sample prismic.io Structured Text value
body: {
type: "StructuredText"
value: [
- { … }
- { … }
- { … }
- { … }
- { … }
- { … }
- { … }
- { … }
- { … }
- { … }
- { … }
- {
type: "paragraph"
text: "The top of the pastry is a priority zone for finalization. This is where your "last touch" goes, and it's tremendously important, as it gives the pastry most of its character. We didn't mention color, but it's a very important component of the piece. Just like an illustrator will pick colors that add to the shape in a matching way to keep a perfect meaning, the colors must be perfect to be consistent with the taste of the piece."
spans: [
- {
start: 78
end: 90
type: "strong"
}
- {
start: 175
end: 175
type: "hyperlink"
data: {
type: "Link.document"
value: {
document: {
id: "UlXJfLO534MB8xmZ"
type: "article"
tags: [ ]
slug: "dont-be-a-stranger"
}
isBroken: false
}
}
}
]
}
- {
type: "heading2"
text: "Before starting"
spans: [ ]
}
- {
type: "paragraph"
text: "Finishing by the beginning: what did we have to consider, before running towards the aforementioned steps?"
spans: [
- {
start: 28
end: 56
type: "strong"
}
]
}
- { … }
- { … }
- { … }
- { … }
- { … }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment