A Container
…It has a child
…/…the child has child
I want the container to be .title sytle, the first child to be H1 and the second child to be h2, and so on.
For HTML CSS tagging purposes, I would like the parent container to use a title style e.g. .ttile, the children to be H1 and the descendant to be H2, e.g.
Is this possible. What would I need to do to the template or the note attributes to make this happen?
Tinderbox compares the font size of a paragraph to the standard text font size.
If the difference is more than 6 points, we use H1.
If the difference is 4-5 points, we use H2.
If the difference is 1-3 points, we use H3.
Otherwise, we use paragraph markup.
I see, but how will this help me? Do I need to change the font size for all the titles of the notes? Is there not a way to do this through export or action code?
My issues is that the template is setting the root container to H1, where as I’d like the top container to be .title, the first layer of children h1 and, then h2, and h3. and so on.
Extra credit point: if your source containers differ in level you can always calculate the difference in relative $OutlineDepth to get to the same graduated heading result.