-
Notifications
You must be signed in to change notification settings - Fork 4.7k
ToC block: re-enable + use static markup and only support core Heading and Page Break blocks #29739
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
Changes from all commits
c53df83
afadefa
2796c70
f564667
4b7bbc6
0ff623d
8ba556a
dc2730a
8f7db2d
4282578
3080087
803eddc
6a724bf
1eb8d22
e7e866a
6221796
38bb612
a8a1cbd
6d9c653
21adec5
fa6cc7d
2ed8a4a
c439c5b
425109f
327338f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,6 +208,13 @@ const transforms = { | |
| } ); | ||
| }, | ||
| }, | ||
| { | ||
| type: 'block', | ||
| blocks: [ 'core/table-of-contents' ], | ||
| transform: () => { | ||
| return createBlock( 'core/table-of-contents' ); | ||
| }, | ||
| }, | ||
|
||
| ], | ||
| }; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,13 +8,19 @@ | |
| "keywords": [ "document outline", "summary" ], | ||
| "textdomain": "default", | ||
| "attributes": { | ||
| "headings": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "onlyIncludeCurrentPage": { | ||
| "type": "boolean", | ||
| "default": false | ||
| } | ||
| }, | ||
| "usesContext": [ "postId" ], | ||
| "supports": { | ||
| "html": false | ||
| } | ||
| }, | ||
| "example": {} | ||
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.