John MacFarlane
03bb426a4a
Shared: makeSections behavior changes.
...
+ When the optional base level parameter is provided, we no
longer ensure that the sequence of heading levels is gapless
[behavior change]. Instead, we set the lowest heading level to
the specified base level, and adjust the others accordingly. If
an author wants to skip a level, e.g. from level 1 to level 3,
they can do that. In general, the heading levels specified
in the source document are preserved; `makeSections` only
puts them into a hierarchical structure. Closes #9398 .
+ Section numbers are now assigned so that the top level
gets `1`, no matter what heading level is used. So, even
if the top heading level is 2, numbers will be `1`, `2`, etc.
rather than `0.1`, `0.2`, as in the past. Closes #5071 .
+ We revert to the old behavior when the `--number-offset` option
is used. So, for example, if a document begins with a level-3
heading, and `--number-offset=1,2` is used, the top-level section
numbers will be `1.2.1`, `1.2.2`, etc. This is mainly for
backwards-compatibility.
2024-02-03 22:19:29 -08:00
..
2024-02-03 22:19:29 -08:00
2023-12-19 15:00:23 -08:00
2024-01-27 10:34:00 -08:00
2023-01-13 09:13:27 -08:00
2022-11-02 09:23:09 -07:00
2023-11-06 19:15:37 -08:00
2024-02-01 10:37:12 -08:00
2021-09-28 21:17:53 -07:00
2023-10-17 21:22:53 -07:00
2024-01-27 10:34:00 -08:00
2021-09-28 21:17:53 -07:00
2019-10-30 08:51:33 -07:00
2021-09-28 21:17:53 -07:00
2022-01-03 14:19:53 -08:00
2024-01-16 11:58:42 -08:00
2023-03-22 08:32:48 -07:00
2023-03-22 08:32:48 -07:00
2020-04-15 23:03:22 -04:00
2022-02-04 23:51:12 -08:00
2022-02-04 10:36:58 -08:00
2021-09-28 21:17:53 -07:00
2023-08-05 11:54:31 -07:00
2023-08-05 11:54:31 -07:00
2023-10-17 09:16:00 -07:00
2023-10-17 09:16:00 -07:00
2019-12-17 21:07:46 -08:00
2021-09-28 21:17:53 -07:00
2021-11-07 21:08:20 -08:00
2021-09-28 21:17:53 -07:00
2023-12-20 10:10:21 -08:00
2023-12-20 10:10:21 -08:00
2023-11-03 10:40:38 -07:00
2023-11-03 10:40:38 -07:00
2021-09-28 21:17:53 -07:00
2021-09-28 21:17:53 -07:00
2021-09-28 21:17:53 -07:00
2022-09-14 22:23:45 +02:00
2022-07-30 08:56:44 -07:00
2023-01-13 09:13:27 -08:00
2021-09-28 21:17:53 -07:00
2021-09-28 21:17:53 -07:00
2020-11-18 14:48:56 +01:00
2021-09-28 21:17:53 -07:00
2022-07-30 08:56:44 -07:00
2022-07-30 08:56:44 -07:00
2023-03-29 11:15:47 -07:00
2023-03-29 11:15:47 -07:00
2021-12-22 09:45:02 -08:00
2023-03-29 11:15:47 -07:00
2022-02-11 09:42:24 -08:00
2023-07-06 08:52:12 -07:00
2022-06-21 10:22:34 -07:00
2022-11-29 09:43:11 -08:00
2022-11-29 09:43:11 -08:00
2019-08-25 14:24:31 -07:00
2020-04-15 23:03:22 -04:00
2021-09-21 12:37:42 -07:00
2021-12-22 09:45:02 -08:00
2020-11-19 22:09:52 +01:00
2020-11-19 22:09:52 +01:00
2020-11-19 22:09:52 +01:00
2020-01-07 22:11:51 +01:00
2023-01-04 13:57:41 -08:00
2021-09-21 12:37:42 -07:00
2021-12-19 12:10:41 -08:00
2022-11-11 10:12:07 -08:00
2021-05-20 17:12:38 -07:00
2021-09-21 12:37:42 -07:00
2021-09-28 21:17:53 -07:00
2021-09-21 12:37:42 -07:00
2020-11-18 14:48:56 +01:00
2021-09-21 12:37:42 -07:00
2021-09-21 12:37:42 -07:00
2019-08-25 14:24:31 -07:00
2020-04-15 23:03:22 -04:00
2023-01-13 09:13:27 -08:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2023-11-15 21:17:06 -08:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2023-06-23 10:36:33 -07:00
2023-01-13 09:13:27 -08:00
2023-11-15 10:06:22 -08:00
2023-06-22 10:53:15 -07:00
2023-06-22 10:53:15 -07:00
2022-06-10 11:29:00 +02:00
2022-06-10 11:29:00 +02:00
2021-09-28 21:17:53 -07:00
2021-09-28 21:17:53 -07:00
2021-02-26 17:56:04 -08:00
2024-01-05 22:09:36 -08:00
2023-07-06 12:20:20 -07:00
2023-08-22 13:33:10 -07:00
2021-09-28 21:17:53 -07:00
2020-04-06 16:41:28 -07:00
2023-07-05 09:10:36 -07:00
2023-07-05 09:10:36 -07:00
2023-02-12 13:32:40 -08:00
2022-11-29 10:16:41 -08:00
2022-11-29 10:16:41 -08:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2023-08-13 19:23:53 -07:00
2023-12-20 10:10:21 -08:00
2020-12-12 14:49:11 +01:00
2023-02-18 00:09:21 +01:00
2023-02-18 00:09:21 +01:00
2023-02-18 00:09:21 +01:00
2023-01-13 09:13:27 -08:00
2023-11-03 10:40:38 -07:00
2023-11-02 19:36:25 -07:00
2021-09-21 12:37:42 -07:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2023-11-02 19:36:25 -07:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2023-12-26 22:12:44 -08:00
2024-01-04 16:45:02 -07:00
2022-03-11 12:12:04 +01:00
2021-09-21 12:37:42 -07:00
2023-07-12 09:13:32 -07:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2024-01-29 10:53:51 -08:00
2023-01-13 09:13:27 -08:00
2023-01-13 09:13:27 -08:00
2023-02-12 13:32:40 -08:00
2023-11-03 10:40:38 -07:00