diff options
author | Rowan Rodrik van der Molen <bigsmoke@gmail.com> | 2021-11-05 17:22:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 10:22:38 -0700 |
commit | 7a70a46c0319f279fdee3926abff08922be2f02c (patch) | |
tree | b49a26843e0db55f457812e8a95c3d37ef981671 /test/docbook-reader.docbook | |
parent | 5750f60442923780dda91d63dd11b1904446a2d9 (diff) | |
download | pandoc-7a70a46c0319f279fdee3926abff08922be2f02c.tar.gz |
Support for <indexterm>s when reading DocBook (#7607)
* Support for <indexterm>s when reading DocBook
* Update implementation status of `<n-ary>` tags
* Remove non-idiomatic parentheses
* More complete `<indexterm>` support, with tests
Co-authored-by: Rowan Rodrik van der Molen <rowan@ytec.nl>
Diffstat (limited to 'test/docbook-reader.docbook')
-rw-r--r-- | test/docbook-reader.docbook | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/docbook-reader.docbook b/test/docbook-reader.docbook index c38abda82..00bd84649 100644 --- a/test/docbook-reader.docbook +++ b/test/docbook-reader.docbook @@ -1603,4 +1603,16 @@ or here: <http://example.com/> </step> </procedure> </sect1> +<sect1 id="indexterms"> + <title>Index terms</title> + <para> + In the simplest case, index terms<indexterm><primary>index term</primary></indexterm> consists of just a <code><primary></code> element, but <indexterm><primary>index term</primary><secondary>multi-level</secondary></indexterm> they can also consist of a <code><primary></code> <emph>and</emph> <code><secondary></code> element, and <indexterm><primary>index term</primary><secondary>multi-level</secondary><tertiary>3-level</tertiary></indexterm> can even include a <code><tertiary></code> term. + </para> + <para> + Index terms can also refer to other index terms: <indexterm><primary>index cross referencing</primary></indexterm><indexterm><primary>index term</primary><secondary>cross references</secondary><see>index cross referencing</see></indexterm>exclusively, using the <code><see></code> tag; or <indexterm><primary>index cross referencing</primary><seealso>cross referencing</seealso></indexterm> as a reference to related terms, using the <code><seealso></code> tag. + </para> + <para> + <indexterm><primary>food</primary><secondary>big <foreignphrase>baguette</foreignphrase> <strong>supreme</strong></secondary></indexterm>Nested content in index term elements is flattened. + </para> +</sect1> </article> |