diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-06 08:44:36 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-06 08:44:59 -0700 |
commit | 6e2cfd6c97b1b8657f1f3e2b66090a2c3ba8d887 (patch) | |
tree | a1024b399cb6bd5d0a1a7baef1dedb8960e9f7ba /test/command | |
parent | 345b33762eb4cc6d57d74c76c4757a6166ee5c13 (diff) | |
download | pandoc-6e2cfd6c97b1b8657f1f3e2b66090a2c3ba8d887.tar.gz |
Improve detection of headings in Divs by hierarchicalize.
The structure
```
<h1>one</h1>
<div>
<h1>two</h1>
</div>
```
should create two coordinate sections, not a section with
a subsection. Now it does.
Extends #3057.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/3057.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/command/3057.md b/test/command/3057.md index b1f3a8c2e..0db5e7969 100644 --- a/test/command/3057.md +++ b/test/command/3057.md @@ -45,10 +45,12 @@ ^D <section xml:id="one"> <title>one</title> - <section> - <title>two</title> - <para> - </para> - </section> + <para> + </para> +</section> +<section> + <title>two</title> + <para> + </para> </section> ``` |