mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 03:06:30 +00:00
Modify JATS reader to handle BITS too (#9138)
Add provision for title-group, book, book-part-wrapper, book-meta, book-part-meta, book-title, book-title-group, index, toc, legend, title, collection-meta
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
```
|
||||
% pandoc -f jats -t native
|
||||
<toc-group>
|
||||
<toc-title-group>
|
||||
<title>TOC group</title>
|
||||
</toc-title-group>
|
||||
<p>Content of toc group</p>
|
||||
<toc>
|
||||
<toc-title-group>
|
||||
<title>TOC</title>
|
||||
</toc-title-group>
|
||||
<p>Content of TOC</p>
|
||||
<toc-div content-type="sections">
|
||||
<toc-title-group>
|
||||
<title>Mental Health Services</title>
|
||||
</toc-title-group>
|
||||
<toc-entry>
|
||||
<label>Section 1</label>
|
||||
<title>Introduction</title>
|
||||
<nav-pointer rid="tc3"/>
|
||||
</toc-entry>
|
||||
<toc-entry>
|
||||
<label>Section 2</label>
|
||||
<title>Mental Health of the Population</title>
|
||||
<nav-pointer rid="tc4"/>
|
||||
</toc-entry>
|
||||
</toc-div>
|
||||
</toc>
|
||||
</toc-group>
|
||||
^D
|
||||
[ Header
|
||||
1 ( "" , [] , [] ) [ Str "TOC" , Space , Str "group" ]
|
||||
, Para
|
||||
[ Str "Content"
|
||||
, Space
|
||||
, Str "of"
|
||||
, Space
|
||||
, Str "toc"
|
||||
, Space
|
||||
, Str "group"
|
||||
]
|
||||
, Header 2 ( "" , [] , [] ) [ Str "TOC" ]
|
||||
, Para
|
||||
[ Str "Content" , Space , Str "of" , Space , Str "TOC" ]
|
||||
, Header
|
||||
3
|
||||
( "" , [] , [] )
|
||||
[ Str "Mental"
|
||||
, Space
|
||||
, Str "Health"
|
||||
, Space
|
||||
, Str "Services"
|
||||
]
|
||||
, Header 4 ( "" , [] , [] ) [ Str "Introduction" ]
|
||||
, Header
|
||||
4
|
||||
( "" , [] , [] )
|
||||
[ Str "Mental"
|
||||
, Space
|
||||
, Str "Health"
|
||||
, Space
|
||||
, Str "of"
|
||||
, Space
|
||||
, Str "the"
|
||||
, Space
|
||||
, Str "Population"
|
||||
]
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user