mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-29 00:41:34 +02:00
Add caption
property to code block type
Ref: https://developers.notion.com/changelog/caption-property-is-now-supported-in-code-block-type
This commit is contained in:
3
block.go
3
block.go
@ -78,7 +78,8 @@ type Callout struct {
|
|||||||
|
|
||||||
type Code struct {
|
type Code struct {
|
||||||
RichTextBlock
|
RichTextBlock
|
||||||
Language *string `json:"language,omitempty"`
|
Caption []RichText `json:"caption,omitempty"`
|
||||||
|
Language *string `json:"language,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Embed struct {
|
type Embed struct {
|
||||||
|
Reference in New Issue
Block a user