From 0060b295c2289e3071f82fd34444a79669ef4b93 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Thu, 16 Dec 2021 11:54:23 +0100 Subject: [PATCH] Add quote block type, simplify callout block type --- block.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/block.go b/block.go index 126442c..39e91cd 100644 --- a/block.go +++ b/block.go @@ -25,6 +25,7 @@ type Block struct { Toggle *RichTextBlock `json:"toggle,omitempty"` ChildPage *ChildPage `json:"child_page,omitempty"` Callout *Callout `json:"callout,omitempty"` + Quote *RichTextBlock `json:"quote,omitempty"` } type RichTextBlock struct { @@ -46,9 +47,8 @@ type ChildPage struct { } type Callout struct { - Text []RichText `json:"text"` - Icon *Icon `json:"icon,omitempty"` - Children []Block `json:"children,omitempty"` + RichTextBlock + Icon *Icon `json:"icon,omitempty"` } type BlockType string @@ -64,6 +64,7 @@ const ( BlockTypeToggle BlockType = "toggle" BlockTypeChildPage BlockType = "child_page" BlockTypeCallout BlockType = "callout" + BlockTypeQuote BlockType = "quote" BlockTypeUnsupported BlockType = "unsupported" )