John MacFarlane
345b33762e
Shared.hierarchicalize: improve handling of div and section structure.
...
Previously Divs were opaque to hierarchicalize, so headings
inside divs didn't get into the table of contents, for
example (#3057 ).
Now hierarchicalize treats Divs as sections when appropriate.
For example, these structures both yield a section and a
subsection:
``` html
<div>
<h1>one</h1>
<div>
<h2>two</h2>
</div>
</div>
```
``` html
<div>
<h1>one</h1>
<div>
<h1>two</h1>
</div>
</div>
```
Note that
``` html
<h1>one</h1>
<div>
<h2>two</h2>
</div>
<h1>three</h1>
```
gets parsed as the structure
one
two
three
which may not always be desirable.
Closes #3057 .
2019-09-05 22:37:13 -07:00
..
2019-02-01 21:17:46 -08:00
2019-05-29 09:43:50 +02:00
2019-09-05 22:37:13 -07:00
2018-10-11 09:58:25 -07:00
2019-07-20 17:12:53 -07:00
2019-05-29 09:43:50 +02:00
2018-10-07 12:21:43 -07:00
2019-06-21 18:27:26 +02:00
2019-09-02 21:03:05 -07:00
2019-08-25 14:24:31 -07:00
2018-10-17 17:26:37 -07:00
2019-05-28 12:31:41 -04:00
2018-09-19 14:53:29 -07:00
2019-08-25 14:24:31 -07:00
2018-10-07 12:21:43 -07:00
2019-05-29 09:43:50 +02:00
2019-07-18 22:31:03 -07:00
2019-04-30 22:32:52 -07:00
2018-10-05 22:21:20 -07:00
2018-10-22 23:36:44 -07:00
2018-10-07 12:37:08 -07:00
2019-07-19 10:32:59 -07:00
2019-07-13 16:55:41 -07:00
2018-10-07 12:21:43 -07:00
2018-10-05 21:33:14 -07:00
2018-10-23 21:44:07 -07:00
2018-09-29 10:57:11 -07:00
2018-11-25 22:29:54 -08:00
2019-07-22 15:32:49 -07:00
2019-05-29 09:43:50 +02:00
2018-10-07 11:44:11 -07:00
2018-11-11 20:45:38 -08:00
2019-08-25 14:24:31 -07:00
2019-01-08 11:36:33 -08:00
2018-08-22 12:43:15 +03:00
2018-08-29 14:40:04 -07:00
2018-09-07 09:41:17 -07:00
2018-10-31 21:51:20 -07:00
2018-09-26 08:49:13 +02:00
2018-09-16 20:40:32 -07:00
2018-09-19 14:53:29 -07:00
2018-09-20 11:15:03 -07:00
2018-09-25 20:49:13 -07:00
2019-07-20 10:17:49 -07:00
2018-10-08 20:47:09 -07:00
2018-10-29 22:20:14 -07:00
2018-11-13 14:50:26 -08:00
2018-11-02 21:35:49 -07:00
2018-11-06 22:57:11 -08:00
2018-11-25 22:50:16 -08:00
2018-11-12 09:43:12 -08:00
2018-11-16 11:29:15 -08:00
2018-11-15 22:36:01 -08:00
2018-11-25 22:29:54 -08:00
2019-08-25 14:24:31 -07:00
2018-12-04 09:24:15 -08:00
2019-05-29 09:43:50 +02:00
2018-12-05 17:10:33 -08:00
2018-12-31 21:20:56 -08:00
2019-05-12 14:49:52 +02:00
2019-01-09 22:19:26 -08:00
2019-01-09 22:19:26 -08:00
2019-01-02 10:31:13 -08:00
2019-01-22 21:39:26 -08:00
2019-01-21 20:54:12 -08:00
2019-02-04 10:22:02 -08:00
2019-02-25 17:33:54 -08:00
2019-02-15 22:34:32 -08:00
2019-02-23 15:40:06 -07:00
2019-03-18 16:53:36 -07:00
2019-03-22 11:55:41 -07:00
2019-03-17 18:02:59 -07:00
2019-03-17 18:15:47 -07:00
2019-03-29 10:04:22 -07:00
2019-09-04 09:24:42 -07:00
2019-04-02 17:59:47 -07:00
2019-06-07 10:03:10 -07:00
2019-06-04 21:20:11 -07:00
2019-04-15 09:48:11 -07:00
2019-05-01 16:56:37 -07:00
2019-05-21 12:19:59 -04:00
2019-05-22 15:21:15 -07:00
2019-06-10 15:02:48 -07:00
2019-06-08 12:25:34 -07:00
2019-06-03 09:51:19 -07:00
2019-06-04 08:39:54 -07:00
2019-06-10 14:42:08 -07:00
2019-06-10 14:47:04 -07:00
2019-06-11 20:47:29 -07:00
2019-07-10 18:35:01 -07:00
2019-07-13 16:41:43 -07:00
2019-07-06 23:14:21 +02:00
2019-07-13 15:51:33 -07:00
2019-07-13 12:03:45 +02:00
2019-07-18 22:08:37 -07:00
2019-07-22 15:29:07 -07:00
2019-07-24 10:10:36 -07:00
2019-09-02 18:48:37 -07:00
2019-08-14 11:13:18 -07:00
2019-08-14 14:34:44 -07:00
2019-08-23 10:15:42 -07:00
2019-08-24 09:41:25 -07:00
2019-08-24 09:41:25 -07:00
2019-08-24 09:41:25 -07:00
2019-08-23 09:16:54 -07:00
2019-08-26 15:20:22 -07:00
2019-08-27 10:48:02 -07:00
2019-08-27 10:15:00 -07:00
2019-09-03 11:28:20 -07:00
2019-01-02 11:36:37 -08:00
2019-05-25 18:36:56 +03:00
2018-10-15 11:46:31 -07:00
2018-10-25 22:12:14 -07:00
2019-03-02 15:03:59 -08:00
2019-07-18 22:31:03 -07:00
2018-11-25 22:29:54 -08:00
2019-07-18 22:31:03 -07:00
2018-09-09 22:53:18 -07:00
2019-03-28 17:39:22 -07:00
2019-01-02 11:36:37 -08:00
2019-01-31 22:50:51 -08:00
2019-05-29 09:43:50 +02:00
2018-09-15 17:06:10 +02:00
2018-09-15 17:06:10 +02:00