-
Notifications
You must be signed in to change notification settings - Fork 4.8k
ToC block: handle newlines #41203
Copy link
Copy link
Closed
Labels
[Block] Table of contents (experimental)Affects the Table of contents BlockAffects the Table of contents Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Metadata
Metadata
Assignees
Labels
[Block] Table of contents (experimental)Affects the Table of contents BlockAffects the Table of contents Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Heading blocks can contain newlines (shift+enter) but ToC block won't show them:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
I got around the problem by adding a space before newline:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
FYI @ZebulanStanphill