Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlockQuote -> BlockTypeQuote, BlockCallout -> BlockTypeCallout. #182

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading