Skip to content

Commit

Permalink
BlockQuote -> BlockTypeQuote, BlockCallout -> BlockTypeCallout. Consi…
Browse files Browse the repository at this point in the history
…stency is the king
  • Loading branch information
amberpixels authored and jomei committed Nov 17, 2024
1 parent af9c190 commit 6609d69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ func (b EquationBlock) GetRichTextString() string {
func (b BasicBlock) GetRichTextString() string {
return "No rich text of a basic block."
}

var _ Block = (*BasicBlock)(nil)

type ParagraphBlock struct {
Expand Down Expand Up @@ -783,9 +784,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) {
b = &Heading2Block{}
case BlockTypeHeading3:
b = &Heading3Block{}
case BlockCallout:
case BlockTypeCallout:
b = &CalloutBlock{}
case BlockQuote:
case BlockTypeQuote:
b = &QuoteBlock{}
case BlockTypeBulletedListItem:
b = &BulletedListItemBlock{}
Expand Down
4 changes: 2 additions & 2 deletions const.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ const (
BlockTypeBookmark BlockType = "bookmark"
BlockTypeCode BlockType = "code"
BlockTypeDivider BlockType = "divider"
BlockCallout BlockType = "callout"
BlockQuote BlockType = "quote"
BlockTypeCallout BlockType = "callout"
BlockTypeQuote BlockType = "quote"
BlockTypeTableOfContents BlockType = "table_of_contents"
BlockTypeEquation BlockType = "equation"
BlockTypeBreadcrumb BlockType = "breadcrumb"
Expand Down

0 comments on commit 6609d69

Please sign in to comment.