Skip to content

Commit 6609d69

Browse files
amberpixelsjomei
authored andcommitted
BlockQuote -> BlockTypeQuote, BlockCallout -> BlockTypeCallout. Consistency is the king
1 parent af9c190 commit 6609d69

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

block.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ func (b EquationBlock) GetRichTextString() string {
387387
func (b BasicBlock) GetRichTextString() string {
388388
return "No rich text of a basic block."
389389
}
390+
390391
var _ Block = (*BasicBlock)(nil)
391392

392393
type ParagraphBlock struct {
@@ -783,9 +784,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) {
783784
b = &Heading2Block{}
784785
case BlockTypeHeading3:
785786
b = &Heading3Block{}
786-
case BlockCallout:
787+
case BlockTypeCallout:
787788
b = &CalloutBlock{}
788-
case BlockQuote:
789+
case BlockTypeQuote:
789790
b = &QuoteBlock{}
790791
case BlockTypeBulletedListItem:
791792
b = &BulletedListItemBlock{}

const.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ const (
226226
BlockTypeBookmark BlockType = "bookmark"
227227
BlockTypeCode BlockType = "code"
228228
BlockTypeDivider BlockType = "divider"
229-
BlockCallout BlockType = "callout"
230-
BlockQuote BlockType = "quote"
229+
BlockTypeCallout BlockType = "callout"
230+
BlockTypeQuote BlockType = "quote"
231231
BlockTypeTableOfContents BlockType = "table_of_contents"
232232
BlockTypeEquation BlockType = "equation"
233233
BlockTypeBreadcrumb BlockType = "breadcrumb"

0 commit comments

Comments
 (0)