spec/asciidoctor/section_spec.rb in metanorma-standoc-1.8.3 vs spec/asciidoctor/section_spec.rb in metanorma-standoc-1.8.4
- old
+ new
@@ -24,10 +24,11 @@
== Scope
Text
+ [bibliography]
== Normative References
== Terms and Definitions
=== Term1
@@ -79,13 +80,22 @@
[appendix]
== Annex
=== Annex A.1
+ [bibliography]
== Bibliography
=== Bibliography Subsection
+
+ [index]
+ == Index
+
+ This is an index
+
+ [index,type=thematic]
+ == Thematic Index
INPUT
#{BLANK_HDR.sub(/<status>/, "<abstract> <p>Text</p> </abstract><status>")}
<preface><abstract id="_">
<title>Abstract</title>
<p id="_">Text</p>
@@ -180,9 +190,16 @@
<title>Bibliography</title>
<references id="_" obligation="informative" normative="false">
<title>Bibliography Subsection</title>
</references>
</clause></bibliography>
+<indexsect id='_'>
+ <title>Index</title>
+ <p id='_'>This is an index</p>
+</indexsect>
+<indexsect id='_' type='thematic'>
+ <title>Thematic Index</title>
+</indexsect>
</standard-document>
OUTPUT
end
it "processes sections with number attributes" do