> On Dec 26, 2021, at 7:10, Per Bothner <[email protected]> wrote:
> 
> (This is related to the "control over sectioning and splitting: thread,
> as it may make it easier to provide a clean solution.)
> 
> Currently, a header element generates an empty <span id="...> element.
> 
> For example:
> 
> @subheading Electron
> 
> generates (assuming no conflicting "Electron" anchor or node):
> 
> <span id="Electron"></span><h4 class="subheading">Electron</h4>
> 
> while:
> 
> @anchor{Electron}
> @subheading Electron
> 
> generates:
> 
> <span id="Electron"></span><span id="Electron-1"></span><h4 
> class="subheading">Electron</h4>
> 
> Two requests:
> (1) Don't generates the implicit id="Electron-1" when it immediately follows
> an explicit id="Electron".
> (2) Add the id attribute to the <h4> element rather than generate an empty 
> <span> node.
> 
> Thus I'd like to see, for both inputs above:
> 
> <h4 id="Electron" class="subheading">Electron</h4>
> 
> I think this is both cleaner and it would make for easier post-processing,
> such as by JavaScript or XSLT.

Or CSS. Since now we can have a target on the "Electron" id that affects the 
whole H4 and not an empty span that's probably only used for navigation 
purposes.


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


Reply via email to