my temporary fix in lieu of an official idea:
I copied the default template to a new dir, and modified html_secedit_button in htlm.php to read:
...
$section = $matches[2];
$name = $matches[1];
$level = 1;
foreach($INFO['meta']['description']['tableofcontents'] as $entry) {
if(strtoupper($entry['title'])==strtoupper($name)) {
$level=$entry['level']; }}
$secedit = '';
$secedit .= '<div class="secedit secedit'.$level.'">';
...
and then added the five secedit1,...,secedit5 classes to the design.css file, giving them the same indent as the standard level1,...,level5 classes (perhaps aligning these through a css variable would have been cleaner, but I didn't want to dig to find out how to make a new css variable).
This ensures that the box that the edit button is in has the same margins and width as the sections' actual text. Good enough for now, at least.
- Pomax