-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Provide feedback for broken headings structures. #29562
Comments
Note that this will need a dev note, because this might mean some existing plugins need to update their functionality / remove their functionality that does exactly this :) |
I think we should use the same mechanisms we have in the doc outline: We could fold this into this broader issue: "Notify about wrong level more clearly" #20870 |
@ZebulanStanphill yes, I think that one is mostly ready. Agreed on focusing on only block headings for now. |
How is this issue and associated PR's coming along? |
@paaljoachim The UI probably needs to be redesigned again, because now the heading level options are listed vertically, rather than horizontally. Any ideas on how it should look? I suppose you could just put the warning to the right of the options, but I'm not sure if that's the right approach. Furthermore, there was a link to a help page about headings which was always shown in the popover, and if that was kept, it would force the popover to always be much larger than it is currently. |
I assume it would be something like this: As Joen @jasmussen has been working on the Heading block I would assume he might have some thoughts on this as well. |
What problem does this address?
If the user adds headings in the wrong order (for example starts with an h3 followed directly by an h6), there is no feedback about the wrong structure.
What is your proposed solution?
Users should be warned about skipped heading levels.
This could be done as a notification, or if they have a table-of-contents block it can happen in there as well. Since the TOC block will be parsing the headings, it will be possible to detect any abnormalities and inform the user so they can improve their structure.
The text was updated successfully, but these errors were encountered: