01552: Simple table heading and anchors
Description:
Now that the markup !!#anchor Anchored Heading is available it seems to me that for consistency simple table headings should also enable the anchor markup
simon
(FYI, this does not create an anchor <h2><a id="name"></a>, but adds an identifier like <h2 id="name">. The effect is similar for links, TOC.)
I am actually considering adding a general markup like a JavaScript or CSS query selector, that could be applied to different elements, headings, tables, table headings and cells, input form elements, block containers, other directives.
Something like this:
!!#id1.cl.cl2 Heading -> <h2 id="id1" class="cl1 cl2">Heading</h2>
!!.cl3 Heading -> <h2 class="cl3">Heading</h2>
(:div#id2.cl3.cl4:) -> <div id="id2" class="cl3 cl4">
(:input.c5#id4.c6 text50 name value:) -> <input id="id4" class="c5 c6" type="text" size="50" name="name" value="value"> (also note the text50)
This would save so much typing, especially when building user interfaces, templates, forms.
For a table header cell, an easy way to add CSS class names like ||.halfwidth Cell || can allow to control column widths.
How likely is for a table cell to contain text starting with a hash or a dot? I do have sometimes the first header contain "#" for a numbered column below. What about the leading space for alignment center or right, should the aligning space come before the selector? --Petko