Skip to content

Commit

Permalink
Add caption property to code block type
Browse files Browse the repository at this point in the history
  • Loading branch information
dstotijn committed Jan 31, 2022
1 parent 63149ba commit 5af1e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ type Callout struct {

type Code struct {
RichTextBlock
Language *string `json:"language,omitempty"`
Caption []RichText `json:"caption,omitempty"`
Language *string `json:"language,omitempty"`
}

type Embed struct {
Expand Down

0 comments on commit 5af1e9a

Please sign in to comment.