aboutsummaryrefslogtreecommitdiff
path: root/test/docbook-reader.docbook
diff options
context:
space:
mode:
authorRowan Rodrik van der Molen <bigsmoke@gmail.com>2021-11-05 17:22:38 +0000
committerGitHub <noreply@github.com>2021-11-05 10:22:38 -0700
commit7a70a46c0319f279fdee3926abff08922be2f02c (patch)
treeb49a26843e0db55f457812e8a95c3d37ef981671 /test/docbook-reader.docbook
parent5750f60442923780dda91d63dd11b1904446a2d9 (diff)
downloadpandoc-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.docbook12
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: &lt;http://example.com/&gt;
</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>&lt;primary&gt;</code> element, but <indexterm><primary>index term</primary><secondary>multi-level</secondary></indexterm> they can also consist of a <code>&lt;primary&gt;</code> <emph>and</emph> <code>&lt;secondary&gt;</code> element, and <indexterm><primary>index term</primary><secondary>multi-level</secondary><tertiary>3-level</tertiary></indexterm> can even include a <code>&lt;tertiary&gt;</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>&lt;see&gt;</code> tag; or <indexterm><primary>index cross referencing</primary><seealso>cross referencing</seealso></indexterm> as a reference to related terms, using the <code>&lt;seealso&gt;</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>