Skip to content

Commit e905e9f

Browse files
Merge pull request #83 from adamtheturtle/upload-multiple-children
Add support for deep nesting
2 parents b10c188 + 88cb929 commit e905e9f

File tree

4 files changed

+503
-130
lines changed

4 files changed

+503
-130
lines changed

sample/index.rst

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@ This is **bold** and *italic* and ``inline code``.
1111

1212
This is an important note that demonstrates the note admonition support.
1313

14+
Some nested content:
15+
16+
* First level item in note
17+
* Another first level item
18+
19+
* Second level nested in note
20+
* Another second level item
21+
22+
* Third level nested in note (deep!)
23+
* Another third level item
24+
25+
* Fourth level nested in note (very deep!)
26+
* Another fourth level item
27+
28+
* Fifth level nested in note (extremely deep!)
29+
* Another fifth level item
30+
31+
* Back to fourth level in note
32+
33+
* Back to third level in note
34+
35+
* Back to second level in note
36+
37+
* Back to first level in note
38+
1439
.. warning::
1540

1641
This is a warning that demonstrates the warning admonition support.
@@ -31,6 +56,14 @@ This is **bold** and *italic* and ``inline code``.
3156

3257
This is a warning that demonstrates the warning admonition support.
3358

59+
.. warning::
60+
61+
This is a warning that demonstrates the nested admonition support.
62+
63+
.. warning::
64+
65+
This is a warning that demonstrates the even deeper admonition support.
66+
3467
.. tip::
3568

3669
This is a helpful tip that demonstrates the tip admonition support.
@@ -89,9 +122,17 @@ Some key features:
89122
* Converts RST to Notion-compatible format
90123

91124
* Supports nested bullet points (new!)
92-
* Deep nesting works too (limited to 2 levels)
93-
* This limit is described in https://developers.notion.com/reference/patch-block-children "For blocks that allow children, we allow up to two levels of nesting in a single request."
94-
* Note that the top level bullet-list is the "child" of the "body" so there is really only one level of nesting in the Notion API in one request.
125+
* Deep nesting now works with multiple levels
126+
127+
* Third level nesting is now supported
128+
* Fourth level also works
129+
130+
* Fifth level nesting works too!
131+
* The upload script handles deep nesting automatically
132+
133+
* Back to third level
134+
135+
* Back to second level
95136

96137
* Supports code blocks with syntax highlighting
97138
* Handles headings, links, and formatting

0 commit comments

Comments
 (0)