Hey, within a document one my have several richtext sections - some which allow h1-h6 and others that may only allow a more limited amount of headings. I guess this cannot be expressed in the schema spec.
But say one wanted to prohibit h5/h6 in a given section while still allowing them in other parts of the document, what would be the places where one would have to intercept them?
I am guessing:
- paste handling
- user interface menus that control headings
- keyboard shortcuts that could turn a textblock into a heading.
Is that all?
Edit: I wonder if there is actually any advantage to having the level stored as a separate attribute to the heading. Maybe it’s easier to just define
heading3, etc. separately and add them to a
heading-group. That should allow me to discriminate between them in the content-description of their container without any workarounds.