From 876532e02fe4e1a2dad872b6c9a3e509eb080df1 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Fri, 17 Dec 2021 12:37:28 +0100 Subject: [PATCH] Add `divider` block type --- block.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/block.go b/block.go index df4bcc5..b374666 100644 --- a/block.go +++ b/block.go @@ -35,6 +35,7 @@ type Block struct { PDF *FileBlock `json:"pdf,omitempty"` Bookmark *Bookmark `json:"bookmark,omitempty"` Equation *Equation `json:"equation,omitempty"` + Divider *Divider `json:"divider,omitempty"` } type RichTextBlock struct { @@ -102,6 +103,8 @@ type Bookmark struct { Caption []RichText `json:"caption,omitempty"` } +type Divider struct{} + type BlockType string const ( @@ -125,6 +128,7 @@ const ( BlockTypePDF BlockType = "pdf" BlockTypeBookmark BlockType = "bookmark" BlockTypeEquation BlockType = "equation" + BlockTypeDivider BlockType = "divider" BlockTypeUnsupported BlockType = "unsupported" )