Skip to content

Add support for Table of contents block type #180

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

Closed
KoditkarVedant opened this issue Oct 25, 2021 · 2 comments · Fixed by #202
Closed

Add support for Table of contents block type #180

KoditkarVedant opened this issue Oct 25, 2021 · 2 comments · Fixed by #202
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@KoditkarVedant
Copy link
Contributor

KoditkarVedant commented Oct 25, 2021

Notion has added support for adding and retrieving Table of Contents and Divider block types.

Table of Contents blocks
You can now can add Table of Contents blocks to pages and other blocks.

Below is an example response from Append block children containing a Table of Contents block uploaded to Notion.

{
    "object": "list",
    "results": [
        {
            "object": "block",
            "id": "block-id",
            "created_time": "2021-10-14T18:10:00.000Z",
            "last_edited_time": "2021-10-14T18:10:00.000Z",
            "has_children": false,
            "archived": false,
            "type": "table_of_contents",
            "table_of_contents": {}
        }
    ],
    "next_cursor": null,
    "has_more": false
}

Notion API change log: https://developers.notion.com/changelog/table-of-contents-and-divider-block-types-are-now-supported

@KoditkarVedant KoditkarVedant added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up for grabs labels Oct 25, 2021
@KoditkarVedant KoditkarVedant added this to the 2.2.1 milestone Nov 1, 2021
@KoditkarVedant KoditkarVedant changed the title Add support for Table of contents and divider block types Add support for Table of contents block type Nov 4, 2021
@mhall002
Copy link

mhall002 commented Nov 5, 2021

Hi there, I'm looking to make my first open source contribution - would I be able to work on this issue?

@KoditkarVedant
Copy link
Contributor Author

@mhall002 yeah sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants