metanorma-standoc 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/asciidoctor/standoc/biblio.rng +1 -0
  3. data/lib/asciidoctor/standoc/cleanup.rb +33 -13
  4. data/lib/asciidoctor/standoc/cleanup_section.rb +84 -80
  5. data/lib/asciidoctor/standoc/front.rb +1 -1
  6. data/lib/asciidoctor/standoc/isodoc.rng +1 -3
  7. data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +31 -16
  8. data/lib/metanorma/standoc/version.rb +1 -1
  9. data/metanorma-standoc.gemspec +1 -1
  10. data/spec/asciidoctor/base_spec.rb +11 -11
  11. data/spec/asciidoctor/blocks_spec.rb +0 -2
  12. data/spec/asciidoctor/cleanup_sections_spec.rb +14 -14
  13. data/spec/asciidoctor/cleanup_spec.rb +60 -60
  14. data/spec/asciidoctor/inline_spec.rb +14 -14
  15. data/spec/asciidoctor/lists_spec.rb +3 -3
  16. data/spec/asciidoctor/macros_plantuml_spec.rb +8 -8
  17. data/spec/asciidoctor/macros_spec.rb +13 -13
  18. data/spec/asciidoctor/refs_dl_spec.rb +4 -4
  19. data/spec/asciidoctor/refs_spec.rb +18 -18
  20. data/spec/asciidoctor/section_spec.rb +58 -22
  21. data/spec/asciidoctor/table_spec.rb +6 -6
  22. data/spec/asciidoctor/validate_spec.rb +21 -21
  23. data/spec/spec_helper.rb +2 -0
  24. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +45 -45
  25. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  26. data/spec/vcr_cassettes/isobib_get_123_1.yml +23 -23
  27. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +31 -31
  28. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
  29. data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
  30. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
  31. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
  32. metadata +4 -8
  33. data/lib/liquid/custom_blocks/key_iterator.rb +0 -21
  34. data/lib/liquid/custom_blocks/with_json_nested_context.rb +0 -18
  35. data/lib/liquid/custom_blocks/with_yaml_nested_context.rb +0 -19
  36. data/lib/liquid/custom_filters/values.rb +0 -7
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "1.9.2".freeze
22
+ VERSION = "1.9.3".freeze
23
23
  end
24
24
  end
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency "latexmath"
39
39
  spec.add_dependency "mathml2asciimath"
40
40
  spec.add_dependency "metanorma-utils", "~> 1.2.0"
41
- spec.add_dependency "relaton-cli", "~> 1.7.0"
41
+ spec.add_dependency "relaton-cli", "~> 1.8.0"
42
42
  spec.add_dependency "relaton-iev", "~> 1.1.0"
43
43
  spec.add_dependency "unicode2latex", "~> 0.0.1"
44
44
 
@@ -7,7 +7,7 @@ RSpec.describe Asciidoctor::Standoc do
7
7
  end
8
8
 
9
9
  it "processes a blank document" do
10
- expect(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)).to be_equivalent_to <<~"OUTPUT"
10
+ expect(Asciidoctor.convert(<<~"INPUT", *OPTIONS)).to be_equivalent_to <<~"OUTPUT"
11
11
  #{ASCIIDOC_BLANK_HDR}
12
12
  INPUT
13
13
  #{BLANK_HDR}
@@ -18,7 +18,7 @@ RSpec.describe Asciidoctor::Standoc do
18
18
 
19
19
  it "converts a blank document" do
20
20
  FileUtils.rm_f "test.doc"
21
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
21
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", *OPTIONS))).to be_equivalent_to xmlpp(<<~"OUTPUT")
22
22
  = Document title
23
23
  Author
24
24
  :docfile: test.adoc
@@ -34,7 +34,7 @@ RSpec.describe Asciidoctor::Standoc do
34
34
 
35
35
  it "assigns default scripts to major languages" do
36
36
  FileUtils.rm_f "test.doc"
37
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
37
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", *OPTIONS))).to be_equivalent_to xmlpp(<<~"OUTPUT")
38
38
  = Document title
39
39
  Author
40
40
  :docfile: test.adoc
@@ -63,7 +63,7 @@ RSpec.describe Asciidoctor::Standoc do
63
63
 
64
64
  it "processes publisher abbreviations" do
65
65
  mock_org_abbrevs
66
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
66
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", *OPTIONS))).to be_equivalent_to xmlpp(<<~"OUTPUT")
67
67
  = Document title
68
68
  Author
69
69
  :docfile: test.adoc
@@ -155,7 +155,7 @@ OUTPUT
155
155
  end
156
156
 
157
157
  it "processes default metadata" do
158
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
158
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", *OPTIONS))).to be_equivalent_to xmlpp(<<~"OUTPUT")
159
159
  = Document title
160
160
  Author
161
161
  :docfile: test.adoc
@@ -505,7 +505,7 @@ OUTPUT
505
505
  end
506
506
 
507
507
  it "processes complex metadata" do
508
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
508
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
509
509
  = Document title
510
510
  Author
511
511
  :docfile: test.adoc
@@ -647,7 +647,7 @@ OUTPUT
647
647
 
648
648
  it "processes subdivisions" do
649
649
  mock_default_publisher
650
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
650
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
651
651
  = Document title
652
652
  Author
653
653
  :docfile: test.adoc
@@ -739,7 +739,7 @@ OUTPUT
739
739
 
740
740
  it "reads scripts into blank HTML document" do
741
741
  FileUtils.rm_f "test.html"
742
- Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)
742
+ Asciidoctor.convert(<<~"INPUT", *OPTIONS)
743
743
  = Document title
744
744
  Author
745
745
  :docfile: test.adoc
@@ -752,7 +752,7 @@ OUTPUT
752
752
 
753
753
  it "uses specified fonts and assets in HTML" do
754
754
  FileUtils.rm_f "test.html"
755
- Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)
755
+ Asciidoctor.convert(<<~"INPUT", *OPTIONS)
756
756
  = Document title
757
757
  Author
758
758
  :docfile: test.adoc
@@ -786,7 +786,7 @@ OUTPUT
786
786
 
787
787
  it "uses specified fonts and assets in Word" do
788
788
  FileUtils.rm_f "test.doc"
789
- Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)
789
+ Asciidoctor.convert(<<~"INPUT", *OPTIONS)
790
790
  = Document title
791
791
  Author
792
792
  :docfile: test.adoc
@@ -828,7 +828,7 @@ QU1FOiB0ZXN0Cgo=
828
828
 
829
829
  it "test submitting-organizations with delimiter in end" do
830
830
  FileUtils.rm_f "test.doc"
831
- Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)
831
+ Asciidoctor.convert(<<~"INPUT", *OPTIONS)
832
832
  = Document title
833
833
  Author
834
834
  :docfile: test.adoc
@@ -1,8 +1,6 @@
1
1
  require "spec_helper"
2
2
  require "open3"
3
3
 
4
- OPTIONS = [backend: :standoc, header_footer: true].freeze
5
-
6
4
  RSpec.describe Asciidoctor::Standoc do
7
5
  it "processes format-specific pass blocks" do
8
6
  input = <<~INPUT
@@ -4,7 +4,7 @@ require "fileutils"
4
4
 
5
5
  RSpec.describe Asciidoctor::Standoc do
6
6
  it "appends any initial user-supplied text to boilerplate in terms and definitions" do
7
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
7
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
8
8
  #{ASCIIDOC_BLANK_HDR}
9
9
  == Terms and Definitions
10
10
 
@@ -36,7 +36,7 @@ RSpec.describe Asciidoctor::Standoc do
36
36
  end
37
37
 
38
38
  it "removes initial extraneous material from Normative References" do
39
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
39
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
40
40
  #{ASCIIDOC_BLANK_HDR}
41
41
  [bibliography]
42
42
  == Normative References
@@ -70,7 +70,7 @@ RSpec.describe Asciidoctor::Standoc do
70
70
  end
71
71
 
72
72
  it "preserves user-supplied boilerplate in Normative References" do
73
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
73
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
74
74
  #{ASCIIDOC_BLANK_HDR}
75
75
  [bibliography]
76
76
  == Normative References
@@ -107,7 +107,7 @@ RSpec.describe Asciidoctor::Standoc do
107
107
  end
108
108
 
109
109
  it "sorts references with their notes in Bibliography" do
110
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
110
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
111
111
  #{ASCIIDOC_BLANK_HDR}
112
112
  [bibliography]
113
113
  == Bibliography
@@ -181,7 +181,7 @@ RSpec.describe Asciidoctor::Standoc do
181
181
  end
182
182
 
183
183
  it "defaults section obligations" do
184
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
184
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
185
185
  #{ASCIIDOC_BLANK_HDR}
186
186
 
187
187
  == Clause
@@ -206,7 +206,7 @@ end
206
206
  end
207
207
 
208
208
  it "extends clause levels past 5" do
209
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
209
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
210
210
  #{ASCIIDOC_BLANK_HDR}
211
211
 
212
212
  == Clause1
@@ -269,7 +269,7 @@ end
269
269
  end
270
270
 
271
271
  it "inserts boilerplate before empty Normative References" do
272
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
272
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
273
273
  #{ASCIIDOC_BLANK_HDR}
274
274
 
275
275
  [bibliography]
@@ -287,7 +287,7 @@ end
287
287
  end
288
288
 
289
289
  it "inserts boilerplate before non-empty Normative References" do
290
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
290
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
291
291
  #{ASCIIDOC_BLANK_HDR}
292
292
 
293
293
  [bibliography]
@@ -311,7 +311,7 @@ end
311
311
  end
312
312
 
313
313
  it "inserts boilerplate before empty Normative References in French" do
314
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
314
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
315
315
  = Document title
316
316
  Author
317
317
  :docfile: test.adoc
@@ -335,7 +335,7 @@ it "inserts boilerplate before empty Normative References in French" do
335
335
  end
336
336
 
337
337
  it "processes section names, with footnotes" do
338
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
338
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
339
339
  #{ASCIIDOC_BLANK_HDR}
340
340
  .Foreword.footnote:[A]
341
341
 
@@ -627,7 +627,7 @@ OUTPUT
627
627
  end
628
628
 
629
629
  it "processes section names, default to English" do
630
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
630
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
631
631
  #{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":language: tlh\n:script: Latn\n:nodoc:")}
632
632
  .Foreword
633
633
 
@@ -858,7 +858,7 @@ OUTPUT
858
858
  end
859
859
 
860
860
  it "processes section names, French" do
861
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
861
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
862
862
  #{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":language: fr\n:script: Latn\n:nodoc:")}
863
863
  .Foreword
864
864
 
@@ -1092,7 +1092,7 @@ OUTPUT
1092
1092
  end
1093
1093
 
1094
1094
  it "processes section names, Simplified Chinese" do
1095
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1095
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1096
1096
  #{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":language: zh\n:script: Hans\n:nodoc:")}
1097
1097
  .Foreword
1098
1098
 
@@ -1323,7 +1323,7 @@ OUTPUT
1323
1323
  end
1324
1324
 
1325
1325
  it "processes section names, internationalisation file" do
1326
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1326
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1327
1327
  #{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":i18nyaml: spec/assets/i18n.yaml")}
1328
1328
  .Foreword
1329
1329
 
@@ -6,7 +6,7 @@ RSpec.describe Asciidoctor::Standoc do
6
6
  it "processes svgmap" do
7
7
  FileUtils.cp "spec/fixtures/action_schemaexpg1.svg", "action_schemaexpg1.svg"
8
8
  FileUtils.cp "spec/fixtures/action_schemaexpg1.svg", "action_schemaexpg2.svg"
9
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).gsub(%r{<image.*?</image>}m, "<image/>").gsub(%r{<style.*?</style>}m, "<style/>")).to be_equivalent_to xmlpp(<<~"OUTPUT")
9
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS))).gsub(%r{<image.*?</image>}m, "<image/>").gsub(%r{<style.*?</style>}m, "<style/>")).to be_equivalent_to xmlpp(<<~"OUTPUT")
10
10
  #{ASCIIDOC_BLANK_HDR}
11
11
 
12
12
  [svgmap%unnumbered,number=8,subsequence=A,keep-with-next=true,keep-lines-together=true]
@@ -98,7 +98,7 @@ RSpec.describe Asciidoctor::Standoc do
98
98
  end
99
99
 
100
100
  it "processes markup in sourcecode" do
101
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
101
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
102
102
  #{ASCIIDOC_BLANK_HDR}
103
103
 
104
104
  [source]
@@ -130,7 +130,7 @@ RSpec.describe Asciidoctor::Standoc do
130
130
  end
131
131
 
132
132
  it "processes markup in sourcecode with custom delimiters" do
133
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
133
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
134
134
  = Document title
135
135
  Author
136
136
  :docfile: test.adoc
@@ -162,7 +162,7 @@ RSpec.describe Asciidoctor::Standoc do
162
162
  end
163
163
 
164
164
  it "applies smartquotes by default" do
165
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
165
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
166
166
  #{ASCIIDOC_BLANK_HDR}
167
167
  == "Quotation" A's
168
168
 
@@ -180,7 +180,7 @@ RSpec.describe Asciidoctor::Standoc do
180
180
  end
181
181
 
182
182
  it "applies smartquotes when requested" do
183
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
183
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
184
184
  = Document title
185
185
  Author
186
186
  :docfile: test.adoc
@@ -202,7 +202,7 @@ RSpec.describe Asciidoctor::Standoc do
202
202
  end
203
203
 
204
204
  it "does not apply smartquotes when requested not to" do
205
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
205
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
206
206
  = Document title
207
207
  Author
208
208
  :docfile: test.adoc
@@ -229,7 +229,7 @@ RSpec.describe Asciidoctor::Standoc do
229
229
  end
230
230
 
231
231
  it "does not apply smartquotes to sourcecode, tt, pre, pseudocode" do
232
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
232
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
233
233
  = Document title
234
234
  Author
235
235
  :docfile: test.adoc
@@ -272,7 +272,7 @@ RSpec.describe Asciidoctor::Standoc do
272
272
  end
273
273
 
274
274
  it "handles < > &amp; in Asciidoctor correctly" do
275
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
275
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
276
276
  #{ASCIIDOC_BLANK_HDR}
277
277
  == {blank}
278
278
 
@@ -289,7 +289,7 @@ RSpec.describe Asciidoctor::Standoc do
289
289
  end
290
290
 
291
291
  it "removes empty text elements" do
292
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
292
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
293
293
  #{ASCIIDOC_BLANK_HDR}
294
294
  == {blank}
295
295
  INPUT
@@ -304,7 +304,7 @@ RSpec.describe Asciidoctor::Standoc do
304
304
  end
305
305
 
306
306
  it "processes stem-only terms as admitted" do
307
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
307
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
308
308
  #{ASCIIDOC_BLANK_HDR}
309
309
  == Terms and Definitions
310
310
 
@@ -342,7 +342,7 @@ RSpec.describe Asciidoctor::Standoc do
342
342
  end
343
343
 
344
344
  it "moves term domains out of the term definition paragraph" do
345
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
345
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
346
346
  #{ASCIIDOC_BLANK_HDR}
347
347
  == Terms and Definitions
348
348
 
@@ -380,7 +380,7 @@ RSpec.describe Asciidoctor::Standoc do
380
380
  end
381
381
 
382
382
  it "permits multiple blocks in term definition paragraph" do
383
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
383
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
384
384
  = Document title
385
385
  Author
386
386
  :docfile: test.adoc
@@ -430,7 +430,7 @@ RSpec.describe Asciidoctor::Standoc do
430
430
  end
431
431
 
432
432
  it "moves notes inside preceding blocks, if they are not at clause end, and the blocks are not delimited" do
433
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
433
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
434
434
  #{ASCIIDOC_BLANK_HDR}
435
435
 
436
436
  [stem]
@@ -455,7 +455,7 @@ RSpec.describe Asciidoctor::Standoc do
455
455
  end
456
456
 
457
457
  it "does not move notes inside preceding blocks, if they are marked as keep-separate" do
458
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
458
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
459
459
  #{ASCIIDOC_BLANK_HDR}
460
460
 
461
461
  [stem]
@@ -483,7 +483,7 @@ RSpec.describe Asciidoctor::Standoc do
483
483
  end
484
484
 
485
485
  it "does not move notes inside preceding blocks, if they are at clause end" do
486
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
486
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
487
487
  #{ASCIIDOC_BLANK_HDR}
488
488
  [source,ruby]
489
489
  [1...x].each do |y|
@@ -504,7 +504,7 @@ RSpec.describe Asciidoctor::Standoc do
504
504
  end
505
505
 
506
506
  it "converts xrefs to references into erefs" do
507
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
507
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
508
508
  #{ASCIIDOC_BLANK_HDR}
509
509
  <<iso216>>
510
510
  <<iso216,droploc%capital%>>
@@ -545,7 +545,7 @@ RSpec.describe Asciidoctor::Standoc do
545
545
  end
546
546
 
547
547
  it "extracts localities from erefs" do
548
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
548
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
549
549
  #{ASCIIDOC_BLANK_HDR}
550
550
  <<iso216,whole,clause=3,example=9-11,locality:prelude="33 a",locality:entirety:the reference,xyz>>
551
551
  <<iso216,whole,clause=3,example=9-11,locality:prelude=33,locality:entirety="the reference";whole,clause=3,example=9-11,locality:prelude=33,locality:entirety:the reference,xyz>>
@@ -653,7 +653,7 @@ RSpec.describe Asciidoctor::Standoc do
653
653
  end
654
654
 
655
655
  it "strips type from xrefs" do
656
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
656
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
657
657
  #{ASCIIDOC_BLANK_HDR}
658
658
  <<iso216>>
659
659
 
@@ -688,7 +688,7 @@ RSpec.describe Asciidoctor::Standoc do
688
688
  end
689
689
 
690
690
  it "processes localities in term sources" do
691
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
691
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
692
692
  #{ASCIIDOC_BLANK_HDR}
693
693
  == Terms and Definitions
694
694
 
@@ -719,7 +719,7 @@ RSpec.describe Asciidoctor::Standoc do
719
719
  end
720
720
 
721
721
  it "inserts IDs into paragraphs" do
722
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
722
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
723
723
  #{ASCIIDOC_BLANK_HDR}
724
724
  Paragraph
725
725
  INPUT
@@ -732,7 +732,7 @@ RSpec.describe Asciidoctor::Standoc do
732
732
  end
733
733
 
734
734
  it "inserts IDs into notes" do
735
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
735
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
736
736
  #{ASCIIDOC_BLANK_HDR}
737
737
  [example]
738
738
  ====
@@ -752,7 +752,7 @@ RSpec.describe Asciidoctor::Standoc do
752
752
  end
753
753
 
754
754
  it "moves table key inside table" do
755
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
755
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
756
756
  #{ASCIIDOC_BLANK_HDR}
757
757
  |===
758
758
  |a |b |c
@@ -828,7 +828,7 @@ RSpec.describe Asciidoctor::Standoc do
828
828
  end
829
829
 
830
830
  it "processes headerrows attribute for table without header rows" do
831
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
831
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
832
832
  #{ASCIIDOC_BLANK_HDR}
833
833
  [headerrows=3]
834
834
  |===
@@ -867,7 +867,7 @@ RSpec.describe Asciidoctor::Standoc do
867
867
  end
868
868
 
869
869
  it "processes headerrows attribute for table with header rows" do
870
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
870
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
871
871
  #{ASCIIDOC_BLANK_HDR}
872
872
  [headerrows=3]
873
873
  |===
@@ -912,7 +912,7 @@ RSpec.describe Asciidoctor::Standoc do
912
912
  end
913
913
 
914
914
  it "moves table notes inside table" do
915
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
915
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
916
916
  #{ASCIIDOC_BLANK_HDR}
917
917
  |===
918
918
  |a |b |c
@@ -943,7 +943,7 @@ RSpec.describe Asciidoctor::Standoc do
943
943
  end
944
944
 
945
945
  it "moves formula key inside formula" do
946
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
946
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
947
947
  #{ASCIIDOC_BLANK_HDR}
948
948
  [stem]
949
949
  ++++
@@ -1028,7 +1028,7 @@ RSpec.describe Asciidoctor::Standoc do
1028
1028
  end
1029
1029
 
1030
1030
  it "moves footnotes inside figures" do
1031
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1031
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1032
1032
  #{ASCIIDOC_BLANK_HDR}
1033
1033
  .Figuretitle.footnote:[xyz]
1034
1034
  image::spec/examples/rice_images/rice_image1.png[]
@@ -1065,7 +1065,7 @@ RSpec.describe Asciidoctor::Standoc do
1065
1065
  end
1066
1066
 
1067
1067
  it "moves figure key inside figure" do
1068
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1068
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1069
1069
  #{ASCIIDOC_BLANK_HDR}
1070
1070
  image::spec/examples/rice_images/rice_image1.png[]
1071
1071
 
@@ -1117,7 +1117,7 @@ RSpec.describe Asciidoctor::Standoc do
1117
1117
  end
1118
1118
 
1119
1119
  it "processes subfigures" do
1120
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1120
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1121
1121
  #{ASCIIDOC_BLANK_HDR}
1122
1122
  [[figureC-2]]
1123
1123
  .Stages of gelatinization
@@ -1152,7 +1152,7 @@ RSpec.describe Asciidoctor::Standoc do
1152
1152
  end
1153
1153
 
1154
1154
  it "numbers bibliographic notes and footnotes sequentially" do
1155
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1155
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1156
1156
  #{ASCIIDOC_BLANK_HDR}
1157
1157
  footnote:[Footnote]
1158
1158
 
@@ -1204,7 +1204,7 @@ RSpec.describe Asciidoctor::Standoc do
1204
1204
  end
1205
1205
 
1206
1206
  it "rearranges term note, term example, term source" do
1207
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1207
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1208
1208
  #{ASCIIDOC_BLANK_HDR}
1209
1209
 
1210
1210
  == Terms and definitions
@@ -1265,7 +1265,7 @@ RSpec.describe Asciidoctor::Standoc do
1265
1265
  # mock_iecbib_get_iec60050_103_01
1266
1266
  # mock_iev
1267
1267
  VCR.use_cassette "separates_iev_citations_by_top_level_clause" do
1268
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1268
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1269
1269
  #{CACHED_ISOBIB_BLANK_HDR}
1270
1270
 
1271
1271
  [bibliography]
@@ -1414,7 +1414,7 @@ RSpec.describe Asciidoctor::Standoc do
1414
1414
  end
1415
1415
 
1416
1416
  it "counts footnotes with link-only content as separate footnotes" do
1417
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1417
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1418
1418
  #{ASCIIDOC_BLANK_HDR}
1419
1419
 
1420
1420
  footnote:[http://www.example.com]
@@ -1447,7 +1447,7 @@ RSpec.describe Asciidoctor::Standoc do
1447
1447
  end
1448
1448
 
1449
1449
  it "retains AsciiMath on request" do
1450
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1450
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1451
1451
  = Document title
1452
1452
  Author
1453
1453
  :docfile: test.adoc
@@ -1469,7 +1469,7 @@ RSpec.describe Asciidoctor::Standoc do
1469
1469
  end
1470
1470
 
1471
1471
  it "converts AsciiMath to MathML by default" do
1472
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1472
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1473
1473
  = Document title
1474
1474
  Author
1475
1475
  :docfile: test.adoc
@@ -1497,7 +1497,7 @@ RSpec.describe Asciidoctor::Standoc do
1497
1497
  end
1498
1498
 
1499
1499
  it "cleans up text MathML" do
1500
- expect(Asciidoctor::Standoc::Converter.new(nil, backend: :standoc, header_footer: true).cleanup(Nokogiri::XML(<<~"INPUT")).to_xml).to be_equivalent_to xmlpp(<<~"OUTPUT")
1500
+ expect(Asciidoctor::Standoc::Converter.new(nil, *OPTIONS).cleanup(Nokogiri::XML(<<~"INPUT")).to_xml).to be_equivalent_to xmlpp(<<~"OUTPUT")
1501
1501
  #{BLANK_HDR}
1502
1502
  <sections>
1503
1503
  <stem type="MathML">&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;mfrac&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/mfrac&gt;&lt;/math&gt;</stem>
@@ -1513,7 +1513,7 @@ RSpec.describe Asciidoctor::Standoc do
1513
1513
  end
1514
1514
 
1515
1515
  it "renumbers numeric references in Bibliography sequentially" do
1516
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1516
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1517
1517
  #{ASCIIDOC_BLANK_HDR}
1518
1518
 
1519
1519
  == Clause
@@ -1557,7 +1557,7 @@ RSpec.describe Asciidoctor::Standoc do
1557
1557
  end
1558
1558
 
1559
1559
  it "renumbers numeric references in Bibliography subclauses sequentially" do
1560
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1560
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1561
1561
  #{ASCIIDOC_BLANK_HDR}
1562
1562
 
1563
1563
  == Clause
@@ -1663,7 +1663,7 @@ RSpec.describe Asciidoctor::Standoc do
1663
1663
  end
1664
1664
 
1665
1665
  it "removes bibdata bibitem IDs" do
1666
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1666
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1667
1667
  = Document title
1668
1668
  Author
1669
1669
  :docfile: test.adoc
@@ -1710,7 +1710,7 @@ RSpec.describe Asciidoctor::Standoc do
1710
1710
  end
1711
1711
 
1712
1712
  it "imports boilerplate file" do
1713
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1713
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1714
1714
  = Document title
1715
1715
  Author
1716
1716
  :docfile: test.adoc
@@ -1751,7 +1751,7 @@ RSpec.describe Asciidoctor::Standoc do
1751
1751
  end
1752
1752
 
1753
1753
  it "sorts symbols lists" do
1754
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1754
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1755
1755
  #{ASCIIDOC_BLANK_HDR}
1756
1756
 
1757
1757
  [[L]]
@@ -1812,7 +1812,7 @@ RSpec.describe Asciidoctor::Standoc do
1812
1812
  end
1813
1813
 
1814
1814
  it "sorts symbols lists" do
1815
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1815
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1816
1816
  #{ASCIIDOC_BLANK_HDR}
1817
1817
 
1818
1818
  [[L]]
@@ -1885,7 +1885,7 @@ RSpec.describe Asciidoctor::Standoc do
1885
1885
  end
1886
1886
 
1887
1887
  it "moves inherit macros to correct location" do
1888
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1888
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1889
1889
  #{ASCIIDOC_BLANK_HDR}
1890
1890
 
1891
1891
  == Clause
@@ -1965,7 +1965,7 @@ RSpec.describe Asciidoctor::Standoc do
1965
1965
  end
1966
1966
 
1967
1967
  it "moves %beforeclause admonitions to right position" do
1968
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1968
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1969
1969
  #{ASCIIDOC_BLANK_HDR}
1970
1970
 
1971
1971
  .Foreword
@@ -2029,7 +2029,7 @@ RSpec.describe Asciidoctor::Standoc do
2029
2029
  <</%ab>>
2030
2030
  <<1!>>
2031
2031
  INPUT
2032
- expect(xmlpp(Asciidoctor.convert(input, backend: :standoc, header_footer: true).gsub(/<p id="_[^"]+">/, "").gsub("</p>", ""))).to be_equivalent_to (<<~"OUTPUT")
2032
+ expect(xmlpp(Asciidoctor.convert(input, *OPTIONS).gsub(/<p id="_[^"]+">/, "").gsub("</p>", ""))).to be_equivalent_to (<<~"OUTPUT")
2033
2033
  <standard-document xmlns='https://www.metanorma.org/ns/standoc' type="semantic" version="#{Metanorma::Standoc::VERSION}">
2034
2034
  <bibdata type='standard'>
2035
2035
  <title language='en' format='text/plain'>Document title</title>
@@ -2067,12 +2067,12 @@ RSpec.describe Asciidoctor::Standoc do
2067
2067
  </bibliography>
2068
2068
  </standard-document>
2069
2069
  OUTPUT
2070
- expect { Asciidoctor.convert(input, backend: :standoc, header_footer: true) }.to output(%r{normalised identifier in <clause id="a_b" inline-header="false" obligation="normative"/> from a:b}).to_stderr
2071
- expect { Asciidoctor.convert(input, backend: :standoc, header_footer: true) }.to output(%r{normalised identifier in <eref bibitemid="__ab" citeas=""/> from /_ab}).to_stderr
2072
- expect { Asciidoctor.convert(input, backend: :standoc, header_footer: true) }.to output(%r{normalised identifier in <xref target="_"/> from :}).to_stderr
2073
- expect { Asciidoctor.convert(input, backend: :standoc, header_footer: true) }.to output(%r{normalised identifier in <xref target="_1"/> from 1}).to_stderr
2074
- expect { Asciidoctor.convert(input, backend: :standoc, header_footer: true) }.to output(%r{normalised identifier in <xref target="_1_"/> from 1:}).to_stderr
2075
- expect { Asciidoctor.convert(input, backend: :standoc, header_footer: true) }.to output(%r{normalised identifier in <xref target="_a#b_"/> from :a#b:}).to_stderr
2070
+ expect { Asciidoctor.convert(input, *OPTIONS) }.to output(%r{normalised identifier in <clause id="a_b" inline-header="false" obligation="normative"/> from a:b}).to_stderr
2071
+ expect { Asciidoctor.convert(input, *OPTIONS) }.to output(%r{normalised identifier in <eref bibitemid="__ab" citeas=""/> from /_ab}).to_stderr
2072
+ expect { Asciidoctor.convert(input, *OPTIONS) }.to output(%r{normalised identifier in <xref target="_"/> from :}).to_stderr
2073
+ expect { Asciidoctor.convert(input, *OPTIONS) }.to output(%r{normalised identifier in <xref target="_1"/> from 1}).to_stderr
2074
+ expect { Asciidoctor.convert(input, *OPTIONS) }.to output(%r{normalised identifier in <xref target="_1_"/> from 1:}).to_stderr
2075
+ expect { Asciidoctor.convert(input, *OPTIONS) }.to output(%r{normalised identifier in <xref target="_a#b_"/> from :a#b:}).to_stderr
2076
2076
  end
2077
2077
 
2078
2078
  it "moves title footnotes to bibdata" do
@@ -2085,7 +2085,7 @@ RSpec.describe Asciidoctor::Standoc do
2085
2085
  :no-isobib:
2086
2086
 
2087
2087
  INPUT
2088
- expect(xmlpp(Asciidoctor.convert(input, backend: :standoc, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2088
+ expect(xmlpp(Asciidoctor.convert(input, *OPTIONS))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2089
2089
  <standard-document xmlns='https://www.metanorma.org/ns/standoc' type="semantic" version="#{Metanorma::Standoc::VERSION}">
2090
2090
  <bibdata type='standard'>
2091
2091
  <title language='en' format='text/plain'>Document title</title>
@@ -2113,7 +2113,7 @@ RSpec.describe Asciidoctor::Standoc do
2113
2113
  end
2114
2114
 
2115
2115
  it "converts UnitsML to MathML" do
2116
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~INPUT, backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2116
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~INPUT, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2117
2117
  = Document title
2118
2118
  Author
2119
2119
  :stem:
@@ -2254,7 +2254,7 @@ RSpec.describe Asciidoctor::Standoc do
2254
2254
  ++++
2255
2255
  INPUT
2256
2256
 
2257
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2257
+ expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2258
2258
  #{BLANK_HDR}
2259
2259
  <sections>
2260
2260
  <formula id='_'>
@@ -2281,7 +2281,7 @@ RSpec.describe Asciidoctor::Standoc do
2281
2281
  </standard-document>
2282
2282
  OUTPUT
2283
2283
  mock_mathml_italicise({ uppergreek: false, upperroman: true, lowergreek: true, lowerroman: true })
2284
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2284
+ expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2285
2285
  #{BLANK_HDR}
2286
2286
  <sections>
2287
2287
  <formula id='_'>
@@ -2308,7 +2308,7 @@ RSpec.describe Asciidoctor::Standoc do
2308
2308
  </standard-document>
2309
2309
  OUTPUT
2310
2310
  mock_mathml_italicise({ uppergreek: true, upperroman: false, lowergreek: true, lowerroman: true })
2311
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2311
+ expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2312
2312
  #{BLANK_HDR}
2313
2313
  <sections>
2314
2314
  <formula id='_'>
@@ -2335,7 +2335,7 @@ RSpec.describe Asciidoctor::Standoc do
2335
2335
  </standard-document>
2336
2336
  OUTPUT
2337
2337
  mock_mathml_italicise({ uppergreek: true, upperroman: true, lowergreek: false, lowerroman: true })
2338
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2338
+ expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2339
2339
  #{BLANK_HDR}
2340
2340
  <sections>
2341
2341
  <formula id='_'>
@@ -2362,7 +2362,7 @@ RSpec.describe Asciidoctor::Standoc do
2362
2362
  </standard-document>
2363
2363
  OUTPUT
2364
2364
  mock_mathml_italicise({ uppergreek: true, upperroman: true, lowergreek: true, lowerroman: false })
2365
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2365
+ expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2366
2366
  #{BLANK_HDR}
2367
2367
  <sections>
2368
2368
  <formula id='_'>
@@ -2392,7 +2392,7 @@ RSpec.describe Asciidoctor::Standoc do
2392
2392
  end
2393
2393
 
2394
2394
  it "process express_ref macro with existing bibliography" do
2395
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2395
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2396
2396
  #{ASCIIDOC_BLANK_HDR}
2397
2397
  == Clause
2398
2398
 
@@ -2454,7 +2454,7 @@ RSpec.describe Asciidoctor::Standoc do
2454
2454
  end
2455
2455
 
2456
2456
  it "process express_ref macro with no existing bibliography" do
2457
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2457
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
2458
2458
  #{ASCIIDOC_BLANK_HDR}
2459
2459
  [[B]]
2460
2460
  [type="express-schema"]