mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
Revert changes to hierarchicalizeWithIds.
Revert "hierarchicalize: ensure that sections get ids..." This reverts commit212406a61d. Revert "Improve detection of headings in Divs by hierarchicalize." This reverts commit6e2cfd6c97. Revert "Shared.hierarchicalize: improve handling of div and section structure." This reverts commit345b33762e.
This commit is contained in:
@@ -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>
|
||||
```
|
||||
Reference in New Issue
Block a user