Revert changes to hierarchicalizeWithIds.

Revert "hierarchicalize: ensure that sections get ids..."
This reverts commit 212406a61d.

Revert "Improve detection of headings in Divs by hierarchicalize."
This reverts commit 6e2cfd6c97.

Revert "Shared.hierarchicalize: improve handling of div and section structure."
This reverts commit 345b33762e.
This commit is contained in:
John MacFarlane
2019-09-08 21:56:42 -07:00
parent 95a19fcff0
commit 1ccff3339d
2 changed files with 5 additions and 77 deletions
-56
View File
@@ -1,56 +0,0 @@
```
% pandoc -f markdown -t docbook
<div>
# one
<div>
## two
</div>
</div>
^D
<section xml:id="one">
<title>one</title>
<section xml:id="two">
<title>two</title>
<para>
</para>
</section>
</section>
```
```
% pandoc -f markdown -t docbook
<div>
# one
<div>
# two
</div>
</div>
^D
<section xml:id="one">
<title>one</title>
<section xml:id="two">
<title>two</title>
<para>
</para>
</section>
</section>
```
```
% pandoc -f markdown -t docbook
# one
<div>
# two
</div>
^D
<section xml:id="one">
<title>one</title>
<para>
</para>
</section>
<section xml:id="two">
<title>two</title>
<para>
</para>
</section>
```