Plugins usually don't directly access the content.htm. Rather the content.htm is converted into a number of arrays and the plugins read from and sometimes write into these arrays. So the following change may not break existing plugins :
At present a new page is started by its healine in a fitting <h-...> paragraph. However, the pagedata follows right away, and the pagedata also indicates that a new page is going to be started. So the start of a new page is indicated twice... why not let the pagedata do the job alone?
i.e. a new page could start when the <?php $page_data[]=array(... is encountered and the pagedata could have 2 new key-value pairs, namely: 'headline' => '...' and 'level' => '...'
In admin editing mode the headline could be in a text-input line (styled according to the h-x of the template) e.g. below or above the online editor. Similar to the other pagedata tabs there could be a pagedata tap on the right side with the menu level written on it. Thus the headline would still always be visible, only on saving the ajax pagedata save would have to be done first.
Deleting the headline+save would glue the page to the preceding page. Breaking a page into two pages could be done by entering {{{headline 'my new headline,1'}}} inside the page contents.
Possible advantages:
- free use of all h-levels
- no more calls from users "help, my page is gone"
- one could add new levels without reworking the content
- no head scratching, how many levels do I need, in planning a site and before entering text
- the online editor drop down list for the paragraphs wouldn't have to be altered by "#1 level headline" for "h1".