Learn how you can export custom Portable Text from Google Docs and Notion to Sanity
geopoint
and file
block your content and have Cloudpress export it correctly to Sanity.
geopoint
and file
block.
body
property is an array that contains two objects that represent the geopoint
and file
blocks. To copy the JSON for a block, highlight the JSON code for the block you want to include in your Raw Content Block and copy it to the clipboard.
For example, here is the JSON of the geopoint
:
geopoint
and the file
.
@@begin_raw_content
and @@end_raw_content
processing directives.
@@begin_raw_content
directive to your document.@@end_raw_content
directive.@@begin_raw_content
and @@end_raw_content
directives as raw content and will export it to Sanity as-is. It is therefore important that the content you specify is valid JSON. If not, Sanity will prevent Cloudpress from exporting the content.
When the document in the screenshots above is exported to Sanity, it will result in the correct Portable Text content being created.