Selected works
Esimerkki 2
/esimerkki-2Your content will now be highly structured and deeply typed. This will make it more sustainable and easier to take with you as your projects evolve and develop. It will be especially helpful whenever you plan to take your content to a new presentation layer, or do a redesign. This hinges on, however, whether you structure your text to what it means, rather to how it should be presented.
This is the same line of thought as you would have with semantic HTML. You should avoid embedding marks like
greenorlargeText, because these are matters of presentation. Rather, ask the questions “why should the text be green”, or “what does largeText mean”. If the text should be green because there's something you want to call out, make a decorator called "highlight", or "important". If the text should be large because it is supposed to be a header, create a style called "heading".There will be situations where the line between meaning and presentations isn't clear cut. Take text alignment. In many cases this can be a concern of the stylesheet to where the content is rendered. But there are cases where you would want control over text-alignment to be able to reproduce certain representations of text, like poems or the like. In this case we would suggest either adding a custom type, or creating a separate style that would also embed that usecase more specifically.

Kuvan caption 
What is Portable Text?
Portable Text is a JSON based rich text specification for modern content editing platforms. In order words, it's not "an alternative to Markdown", which was designed to be easy for humans to read and write something that would specifically end up as HTML. Portable Text is designed to be a format for text editing interfaces and for serializing into any human-readable format.
The specification is open source and available on GitHub. If you have peeked at the data-structures produced by Sanity’s rich text editor, it may seem a bit daunting and inscrutable at first. So let's break it down to reveal that there's actually a simple structure to Portable Text.
Esimerkki
/esimerkkiTämä on esimerkki ja tässä on linkki
Your content will now be highly structured and deeply typed. This will make it more sustainable and easier to take with you as your projects evolve and develop. It will be especially helpful whenever you plan to take your content to a new presentation layer, or do a redesign. This hinges on, however, whether you structure your text to what it means, rather to how it should be presented.
Toinen text section
ja bold