These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:11 pm Advanced search

Outline and aside

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

Outline and aside

Postby th » Mon Dec 13, 2010 2:57 pm

Hi

I've got a document:

<!DOCTYPE html>
<titel></title>
<article>
<h1></h1>
<h2></h2>
<aside></aside>
<h3></h3>
</article>

The resulting outline according to http://gsnedders.html5.org/outliner/ seems to be:

Code: Select all
(article)
  (h1)
    (h2)
    (aside)
    (h3)


That is, aside interrupts the header hierarchy, causing the h3 to start its own header context on the same level as the h2.

What I would like to have is this:

Code: Select all
(article)
  (h1)
    (h2)
    (aside)
      (h3)


where the h3 is a child of h2. The aside is only there to explain a point made in the h2 ("tangentially related"... in the original, non-test document there are quite a few paragraphs under all those headings, but being a minimal example I elided those).

Can I make the h2/h3 stay together in one hierarchy of headers?

Another thing: Have you been able to use this outliner mentioned above with uploaded files? I only get Python errors and have to resort to supplying an URL.
th
<h6>
 
Posts: 2
Joined: Mon Dec 13, 2010 2:47 pm

Re: Outline and aside

Postby th » Tue Dec 14, 2010 4:27 pm

th wrote:Can I make the h2/h3 stay together in one hierarchy of headers?


Answered in http://oli.jp/2010/outline-algorithm/

"Yes, we can!" ;-)
th
<h6>
 
Posts: 2
Joined: Mon Dec 13, 2010 2:47 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests