asciidoctor-html5s 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 983bc019c666b3546c33823eb66bc2e9d21e403c02e103814f92cd980d8073ee
4
- data.tar.gz: a4d619dc3a03219e743019e3a90a1a09358e3d969b081927f01b73868c72244b
3
+ metadata.gz: cd5d4551d9f7defd84d0fce00c675d68c73a0a0fa5e20f3a3f7e4c35259c214e
4
+ data.tar.gz: cd6c0bef805e1182e1045c597c2da6583929d2cdc43ce477646a86a82b5ce5f9
5
5
  SHA512:
6
- metadata.gz: 7af25389671e8b6b81391ffdc28fda35718c13c73f98ff183a494ef6546bf26211e1ab5ee1e7a869a9e3f047e28d6fcb8003a4a53f61ca3a64fb60047b68c011
7
- data.tar.gz: 85d8f8f0b09177c448c56242e27882a737750b134c29307333675927aa1954a34e5636f08288d503c65a01df899a58650cc38cf1aa1d00337ca5184331802d1a
6
+ metadata.gz: cf1c12a133ff6540021ac875357170d706e0ff86e460fa6e253a3ab90717cc723946916cf433dc1509fe13db96a7580b9a5887d3ac12769eca26a606e34cdd3d
7
+ data.tar.gz: db1167a71cfe0819805f4cd2167cf08d41fc1089ebaf634fb7989356588bf5072eac3d4b4b445793c6b4642284ecbc78f7a53d59e14c4aaf9200a6fb5df177cb
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright 2014-2019 Jakub Jirutka <jakub@jirutka.cz>.
3
+ Copyright 2014-2020 Jakub Jirutka <jakub@jirutka.cz>.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.adoc CHANGED
@@ -125,15 +125,26 @@ link=none / link=false::
125
125
 
126
126
  == Requirements
127
127
 
128
- * https://www.ruby-lang.org/[Ruby] 2.0+, http://jruby.org/[JRuby] 9.1+ or https://nodejs.org/[Node.js]
129
- * https://rubygems.org/gems/asciidoctor/[Asciidoctor] 1.5.5+ or https://www.npmjs.com/package/@asciidoctor/core[@asciidoctor/core] ~2.0.0
128
+ Note: This converter consists of https://github.com/slim-template/slim/[Slim] templates, but they are precompiled into pure Ruby code using https://github.com/jirutka/asciidoctor-templates-compiler/[asciidoctor-templates-compiler], so you don’t need Slim to use it!
129
+
130
+ ifndef::npm-readme[]
131
+ === Ruby
132
+
133
+ * https://www.ruby-lang.org/[Ruby] 2.0+ or http://jruby.org/[JRuby] 9.1+
134
+ * https://rubygems.org/gems/asciidoctor/[Asciidoctor] 1.5.5+
130
135
  * https://rubygems.org/gems/thread_safe/[thread_safe] (not required, but recommended for Ruby MRI)
131
136
 
132
- Note: This converter consists of https://github.com/slim-template/slim/[Slim] templates, but they are precompiled into pure Ruby code using https://github.com/jirutka/asciidoctor-templates-compiler/[asciidoctor-templates-compiler], so you don’t need Slim to use it!
137
+
138
+ === Node.js
139
+ endif::npm-readme[]
140
+
141
+ * https://nodejs.org/[Node.js]
142
+ * https://www.npmjs.com/package/@asciidoctor/core[@asciidoctor/core] >=2.0.0 <2.2.0
133
143
 
134
144
 
135
145
  == Installation
136
146
 
147
+ ifndef::npm-readme[]
137
148
  === Ruby
138
149
 
139
150
  Install {gem-name} from Rubygems:
@@ -148,6 +159,7 @@ gem install --pre {gem-name}
148
159
 
149
160
 
150
161
  === Node.js
162
+ endif::npm-readme[]
151
163
 
152
164
  Install {gem-name} from npmjs.com:
153
165
 
@@ -157,6 +169,7 @@ npm install --save {gem-name}
157
169
 
158
170
  == Usage
159
171
 
172
+ ifndef::npm-readme[]
160
173
  === CLI
161
174
 
162
175
  [source, sh, subs="+attributes"]
@@ -164,6 +177,7 @@ asciidoctor -r {gem-name} -b html5s FILE...
164
177
 
165
178
 
166
179
  === Node.js
180
+ endif::npm-readme[]
167
181
 
168
182
  [source, js, subs="+attributes"]
169
183
  ----
@@ -17,7 +17,7 @@ This converter focuses on correct semantics, accessibility and compatibility
17
17
  with common typographic CSS styles.
18
18
  EOF
19
19
 
20
- s.files = Dir['data/**/*', 'lib/**/*', '*.gemspec', 'LICENSE*', 'README*']
20
+ s.files = Dir['data/**/*', 'lib/**/*', '*.gemspec', 'LICENSE*', 'README.adoc']
21
21
 
22
22
  s.required_ruby_version = '>= 2.0'
23
23
 
@@ -28,7 +28,8 @@ EOF
28
28
  s.add_development_dependency 'asciidoctor-templates-compiler', '~> 0.5.0'
29
29
  s.add_development_dependency 'bundler', '>= 1.6'
30
30
  s.add_development_dependency 'coderay', '~> 1.1'
31
- s.add_development_dependency 'rake', '~> 10.0'
31
+ s.add_development_dependency 'pandoc-ruby', '~> 2.0'
32
+ s.add_development_dependency 'rake', '~> 12.0'
32
33
  s.add_development_dependency 'slim', '~> 3.0'
33
34
  s.add_development_dependency 'slim-htag', '~> 0.1.0'
34
35
  end
@@ -774,39 +774,50 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
774
774
  #----------------- Begin of generated transformation methods -----------------#
775
775
 
776
776
 
777
- def inline_quoted(node, opts = {})
777
+ def image(node, opts = {})
778
778
  node.extend(Helpers)
779
779
  node.instance_eval do
780
- _buf = []; unless id.nil?;
781
- ; _buf << ("<a"); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
782
- ; end; case type;
783
- ; when :emphasis;
784
- ; _buf << ("<em"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">"); _buf << (text);
785
- ; _buf << ("</em>"); when :strong;
786
- ; _buf << ("<strong"); _temple_html_attributeremover2 = []; _slim_codeattributes3 = role; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (">"); _buf << (text);
787
- ; _buf << ("</strong>"); when :monospaced;
788
- ; _buf << ("<code"); _temple_html_attributeremover3 = []; _slim_codeattributes4 = role; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes4); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover3); _buf << ("\""); end; _buf << (">"); _buf << (text);
789
- ; _buf << ("</code>"); when :superscript;
790
- ; _buf << ("<sup"); _temple_html_attributeremover4 = []; _slim_codeattributes5 = role; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover4 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover4 << (_slim_codeattributes5); end; _temple_html_attributeremover4 = _temple_html_attributeremover4.join(""); if !_temple_html_attributeremover4.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover4); _buf << ("\""); end; _buf << (">"); _buf << (text);
791
- ; _buf << ("</sup>"); when :subscript;
792
- ; _buf << ("<sub"); _temple_html_attributeremover5 = []; _slim_codeattributes6 = role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover5 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover5 << (_slim_codeattributes6); end; _temple_html_attributeremover5 = _temple_html_attributeremover5.join(""); if !_temple_html_attributeremover5.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover5); _buf << ("\""); end; _buf << (">"); _buf << (text);
793
- ; _buf << ("</sub>"); when :mark;
794
- ; _buf << ("<mark"); _temple_html_attributeremover6 = []; _slim_codeattributes7 = role; if Array === _slim_codeattributes7; _slim_codeattributes7 = _slim_codeattributes7.flatten; _slim_codeattributes7.map!(&:to_s); _slim_codeattributes7.reject!(&:empty?); _temple_html_attributeremover6 << (_slim_codeattributes7.join(" ")); else; _temple_html_attributeremover6 << (_slim_codeattributes7); end; _temple_html_attributeremover6 = _temple_html_attributeremover6.join(""); if !_temple_html_attributeremover6.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover6); _buf << ("\""); end; _buf << (">"); _buf << (text);
795
- ; _buf << ("</mark>"); when :double;
796
- ; _slim_controls1 = html_tag_if role?, :span, :class=>role do; _slim_controls2 = [];
797
- ; _slim_controls2 << ((double_quoted text));
798
- ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); when :single;
799
- ; _slim_controls3 = html_tag_if role?, :span, :class=>role do; _slim_controls4 = [];
800
- ; _slim_controls4 << ((single_quoted text));
801
- ; _slim_controls4 = _slim_controls4.join(""); end; _buf << (_slim_controls3); when :asciimath, :latexmath;
802
- ; _buf << ("<span class=\"math\""); _slim_codeattributes8 = stem_lang; if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" data-lang"); else; _buf << (" data-lang=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _buf << (">"); _buf << ((delimit_stem text, type));
803
- ; _buf << ("</span>"); else;
804
- ; if role == 'line-through' || role == 'del';
805
- ; _buf << ("<del>"); _buf << (text);
806
- ; _buf << ("</del>"); else;
807
- ; _slim_controls5 = html_tag_if role?, :span, :class=>role do; _slim_controls6 = [];
808
- ; _slim_controls6 << (text);
809
- ; _slim_controls6 = _slim_controls6.join(""); end; _buf << (_slim_controls5); end; end; _buf = _buf.join("")
780
+ _buf = []; _slim_controls1 = block_with_caption(:bottom, :class=>'image-block', :style=>style_value(text_align: (attr :align), float: (attr :float))) do; _slim_controls2 = [];
781
+ ; target_url = image_uri(attr :target);
782
+ ; _slim_controls3 = html_tag_if(image_link, :a,
783
+ :class=>['image', ('bare' if image_link == target_url)],
784
+ :href=>image_link,
785
+ :title=>image_link_label,
786
+ 'aria-label'=>image_link_label,
787
+ :target=>(attr :window),
788
+ :rel=>link_rel) do; _slim_controls4 = [];
789
+ ; _slim_controls4 << ("<img"); _slim_codeattributes1 = target_url; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls4 << (" src"); else; _slim_controls4 << (" src=\""); _slim_controls4 << (_slim_codeattributes1); _slim_controls4 << ("\""); end; end; _slim_codeattributes2 = (attr :alt); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls4 << (" alt"); else; _slim_controls4 << (" alt=\""); _slim_controls4 << (_slim_codeattributes2); _slim_controls4 << ("\""); end; end; _slim_codeattributes3 = (attr :width); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls4 << (" width"); else; _slim_controls4 << (" width=\""); _slim_controls4 << (_slim_codeattributes3); _slim_controls4 << ("\""); end; end; _slim_codeattributes4 = (attr :height); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls4 << (" height"); else; _slim_controls4 << (" height=\""); _slim_controls4 << (_slim_codeattributes4); _slim_controls4 << ("\""); end; end; _slim_controls4 << (">");
790
+ ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
791
+ end
792
+ end
793
+
794
+ def open(node, opts = {})
795
+ node.extend(Helpers)
796
+ node.instance_eval do
797
+ _buf = []; if style == 'abstract';
798
+ ; if abstract_allowed?;
799
+ ; _slim_controls1 = block_with_title :class=>'quote-block abstract' do; _slim_controls2 = [];
800
+ ; _slim_controls2 << ("<blockquote>"); _slim_controls2 << (content);
801
+ ; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; elsif style != 'partintro' || partintro_allowed?;
802
+ ; _slim_controls3 = block_with_title :class=>['open-block', (style if style != 'open')] do; _slim_controls4 = [];
803
+ ; _slim_controls4 << ("<div class=\"content\">"); _slim_controls4 << (content);
804
+ ; _slim_controls4 << ("</div>"); _slim_controls4 = _slim_controls4.join(""); end; _buf << (_slim_controls3); end; _buf = _buf.join("")
805
+ end
806
+ end
807
+
808
+ def inline_callout(node, opts = {})
809
+ node.extend(Helpers)
810
+ node.instance_eval do
811
+ _buf = []; _buf << ("<b class=\"conum\">"); _buf << (text);
812
+ ; _buf << ("</b>"); _buf = _buf.join("")
813
+ end
814
+ end
815
+
816
+ def page_break(node, opts = {})
817
+ node.extend(Helpers)
818
+ node.instance_eval do
819
+ _buf = []; _buf << ("<div role=\"doc-pagebreak\" style=\"page-break-after: always;\"></div>");
820
+ ; _buf = _buf.join("")
810
821
  end
811
822
  end
812
823
 
@@ -829,6 +840,41 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
829
840
  end
830
841
  end
831
842
 
843
+ def listing(node, opts = {})
844
+ node.extend(Helpers)
845
+ node.instance_eval do
846
+ _buf = []; _slim_controls1 = block_with_caption :top, :class=>'listing-block' do; _slim_controls2 = [];
847
+ ; if style == 'source';
848
+ ; if highlighter == 'html-pipeline';
849
+ ; _slim_controls2 << ("<pre><code"); _slim_codeattributes1 = source_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
850
+ ; _slim_controls2 << ("</code></pre>"); else;
851
+ ; unless highlighter == 'CodeRay';
852
+ ; code_class = "language-#{source_lang}" if source_lang;
853
+ ; end; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = [highlighter, 'highlight', ('linenums' if attr? :linenums), nowrap?]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << ("><code");
854
+ ; _temple_html_attributeremover2 = []; _slim_codeattributes3 = code_class; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = source_lang; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
855
+ ; _slim_controls2 << ("</code></pre>"); end; else;
856
+ ; _slim_controls2 << ("<pre"); _temple_html_attributeremover3 = []; _slim_codeattributes5 = nowrap?; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes5); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
857
+ ; _slim_controls2 << ("</pre>");
858
+ ;
859
+ ; end; if callout_list;
860
+ ; _slim_controls2 << (converter.convert callout_list, 'colist');
861
+ ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
862
+ end
863
+ end
864
+
865
+ def paragraph(node, opts = {})
866
+ node.extend(Helpers)
867
+ node.instance_eval do
868
+ _buf = []; if title?;
869
+ ; _buf << ("<section class=\"paragraph\""); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << ("><h6 class=\"block-title\">");
870
+ ; _buf << (title);
871
+ ; _buf << ("</h6><p"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">"); _buf << (content);
872
+ ; _buf << ("</p></section>"); else;
873
+ ; _buf << ("<p"); _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _temple_html_attributeremover2 = []; _slim_codeattributes4 = role; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes4); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (">"); _buf << (content);
874
+ ; _buf << ("</p>"); end; _buf = _buf.join("")
875
+ end
876
+ end
877
+
832
878
  def inline_footnote(node, opts = {})
833
879
  node.extend(Helpers)
834
880
  node.instance_eval do
@@ -845,69 +891,84 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
845
891
  end
846
892
  end
847
893
 
848
- def inline_menu(node, opts = {})
894
+ def inline_break(node, opts = {})
849
895
  node.extend(Helpers)
850
896
  node.instance_eval do
851
- _buf = []; if local_attr :menuitem;
852
- ; capture do;
853
- ; _buf << ("&#160;<b class=\"caret\">&#8250;</b>");
854
- ;
855
- ; end; _buf << ("<span class=\"menuseq\"><b class=\"menu\">");
856
- ;
857
- ; _buf << ((attr :menu));
858
- ; yield_capture;
859
- ; _buf << ("</b>"); (attr 'submenus').each do |submenu|;
860
- ; _buf << ("<b class=\"submenu\">");
861
- ; _buf << (submenu);
862
- ; yield_capture;
863
- ; _buf << ("</b>"); end; _buf << ("<b class=\"menuitem\">"); _buf << ((local_attr :menuitem));
864
- ; _buf << ("</b></span>"); else;
865
- ; _buf << ("<b class=\"menuref\">"); _buf << ((attr :menu));
866
- ; _buf << ("</b>"); end; _buf = _buf.join("")
897
+ _buf = []; _buf << (text);
898
+ ; _buf << ("<br>");
899
+ ; _buf = _buf.join("")
867
900
  end
868
901
  end
869
902
 
870
- def ulist(node, opts = {})
903
+ def stem(node, opts = {})
871
904
  node.extend(Helpers)
872
905
  node.instance_eval do
873
- _buf = []; checklist = 'task-list' if option? 'checklist';
874
- ; _slim_controls1 = block_with_title :class=>['ulist', style] do; _slim_controls2 = [];
875
- ; _slim_controls2 << ("<ul"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (checklist || style); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
876
- ; items.each do |item|;
877
- ; if checklist && (item.attr? :checkbox);
878
- ; _slim_controls2 << ("<li class=\"task-list-item\"><input class=\"task-list-item-checkbox\" type=\"checkbox\" disabled");
879
- ; _slim_codeattributes2 = (item.attr? :checked); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" checked"); else; _slim_controls2 << (" checked=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("> ");
880
- ; _slim_controls2 << (item.text);
881
- ; _slim_controls2 << ("</li>"); else;
882
- ; _slim_controls2 << ("<li>");
883
- ; _slim_controls2 << ((print_item_content item));
884
- ; _slim_controls2 << ("</li>"); end; end; _slim_controls2 << ("</ul>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
906
+ _buf = []; _slim_controls1 = block_with_caption :top, :class=>'stem-block' do; _slim_controls2 = [];
907
+ ; _slim_controls2 << ("<div class=\"math\""); _slim_codeattributes1 = stem_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << ((delimit_stem content, style));
908
+ ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
885
909
  end
886
910
  end
887
911
 
888
- def verse(node, opts = {})
912
+ def olist(node, opts = {})
889
913
  node.extend(Helpers)
890
914
  node.instance_eval do
891
- _buf = []; _slim_controls1 = block_with_title :class=>'verse-block' do; _slim_controls2 = [];
892
- ; if attr?(:attribution) || attr?(:citetitle);
893
- ; _slim_controls2 << ("<blockquote class=\"verse\"><pre class=\"verse\">");
894
- ; _slim_controls2 << (content);
895
- ; _slim_controls2 << ("</pre><footer>&#8212; <cite>");
896
- ;
897
- ;
898
- ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
899
- ; _slim_controls2 << ("</cite></footer></blockquote>");
900
- ; else;
901
- ; _slim_controls2 << ("<pre class=\"verse\">"); _slim_controls2 << (content);
902
- ; _slim_controls2 << ("</pre>"); end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
915
+ _buf = []; _slim_controls1 = block_with_title :class=>['olist', style] do; _slim_controls2 = [];
916
+ ; _slim_controls2 << ("<ol"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = style; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :start); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" start"); else; _slim_controls2 << (" start=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = list_marker_keyword; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" type"); else; _slim_controls2 << (" type=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'reversed'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" reversed"); else; _slim_controls2 << (" reversed=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
917
+ ; items.each do |item|;
918
+ ; _slim_controls2 << ("<li>"); _slim_controls2 << ((print_item_content item));
919
+ ; _slim_controls2 << ("</li>"); end; _slim_controls2 << ("</ol>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
903
920
  end
904
921
  end
905
922
 
906
- def thematic_break(node, opts = {})
923
+ def dlist(node, opts = {})
907
924
  node.extend(Helpers)
908
925
  node.instance_eval do
909
- _buf = []; _buf << ("<hr>");
910
- ; _buf = _buf.join("")
926
+ _buf = []; case style;
927
+ ; when 'qanda';
928
+ ; _slim_controls1 = block_with_title :class=>'qlist qanda', :role=>'doc-qna' do; _slim_controls2 = [];
929
+ ; _slim_controls2 << ("<dl class=\"qanda\">");
930
+ ; items.each do |questions, answer|;
931
+ ; [*questions].each do |question|;
932
+ ; _slim_controls2 << ("<dt class=\"qanda-question\">"); _slim_controls2 << (question.text);
933
+ ; _slim_controls2 << ("</dt>"); end; unless answer.nil?;
934
+ ; _slim_controls2 << ("<dd class=\"qanda-answer\">");
935
+ ; if answer.text?;
936
+ ; _slim_controls3 = html_tag_if answer.blocks?, :p do; _slim_controls4 = [];
937
+ ; _slim_controls4 << (answer.text);
938
+ ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); end; if answer.blocks?;
939
+ ; _slim_controls2 << (answer.content);
940
+ ; end; _slim_controls2 << ("</dd>"); end; end; _slim_controls2 << ("</dl>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1);
941
+ ; when 'horizontal';
942
+ ; _slim_controls5 = block_with_title :class=>'hdlist' do; _slim_controls6 = [];
943
+ ; _slim_controls6 << ("<table>");
944
+ ; if (attr? :labelwidth) || (attr? :itemwidth);
945
+ ; _slim_controls6 << ("<colgroup><col");
946
+ ; _slim_codeattributes1 = style_value(width: [(attr :labelwidth), '%']); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls6 << (" style"); else; _slim_controls6 << (" style=\""); _slim_controls6 << (_slim_codeattributes1); _slim_controls6 << ("\""); end; end; _slim_controls6 << ("><col");
947
+ ; _slim_codeattributes2 = style_value(width: [(attr :itemwidth), '%']); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls6 << (" style"); else; _slim_controls6 << (" style=\""); _slim_controls6 << (_slim_codeattributes2); _slim_controls6 << ("\""); end; end; _slim_controls6 << ("></colgroup>");
948
+ ; end; items.each do |terms, dd|;
949
+ ; _slim_controls6 << ("<tr><th");
950
+ ; _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "hdlist1"; _temple_html_attributemerger1[1] = []; _slim_codeattributes3 = ('strong' if option? 'strong'); if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes3.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes3); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls6 << (" class=\""); _slim_controls6 << (_temple_html_attributeremover1); _slim_controls6 << ("\""); end; _slim_controls6 << (">");
951
+ ; terms = [*terms];
952
+ ; terms.each_with_index do |dt, idx|;
953
+ ; _slim_controls6 << (dt.text);
954
+ ; unless idx >= terms.count - 1;
955
+ ; _slim_controls6 << ("<br>");
956
+ ; end; end; _slim_controls6 << ("</th><td class=\"hdlist2\">");
957
+ ; unless dd.nil?;
958
+ ; if dd.text?;
959
+ ; _slim_controls6 << ("<p>"); _slim_controls6 << (dd.text);
960
+ ; _slim_controls6 << ("</p>"); end; if dd.blocks?;
961
+ ; _slim_controls6 << (dd.content);
962
+ ; end; end; _slim_controls6 << ("</td></tr>"); end; _slim_controls6 << ("</table>"); _slim_controls6 = _slim_controls6.join(""); end; _buf << (_slim_controls5);
963
+ ; else;
964
+ ; _slim_controls7 = block_with_title :class=>['dlist', style] do; _slim_controls8 = [];
965
+ ; _slim_controls8 << ("<dl>");
966
+ ; items.each do |terms, dd|;
967
+ ; [*terms].each do |dt|;
968
+ ; _slim_controls8 << ("<dt>"); _slim_controls8 << (dt.text);
969
+ ; _slim_controls8 << ("</dt>"); end; unless dd.nil?;
970
+ ; _slim_controls8 << ("<dd>"); _slim_controls8 << ((print_item_content dd));
971
+ ; _slim_controls8 << ("</dd>"); end; end; _slim_controls8 << ("</dl>"); _slim_controls8 = _slim_controls8.join(""); end; _buf << (_slim_controls7); end; _buf = _buf.join("")
911
972
  end
912
973
  end
913
974
 
@@ -957,212 +1018,176 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
957
1018
  end
958
1019
  end
959
1020
 
960
- def inline_button(node, opts = {})
1021
+ def inline_kbd(node, opts = {})
961
1022
  node.extend(Helpers)
962
1023
  node.instance_eval do
963
- _buf = []; _buf << ("<b class=\"button\">"); _buf << (text);
964
- ; _buf << ("</b>"); _buf = _buf.join("")
1024
+ _buf = []; if (keys = attr 'keys').size == 1;
1025
+ ; _buf << ("<kbd>"); _buf << (keys.first);
1026
+ ; _buf << ("</kbd>"); else;
1027
+ ; _buf << ("<kbd class=\"keyseq\">");
1028
+ ; keys.each_with_index do |key, idx|;
1029
+ ; _buf << ("+" unless idx.zero?);
1030
+ ; _buf << ("<kbd>"); _buf << (key);
1031
+ ; _buf << ("</kbd>"); end; _buf << ("</kbd>"); end; _buf = _buf.join("")
965
1032
  end
966
1033
  end
967
1034
 
968
- def inline_image(node, opts = {})
1035
+ def empty(node, opts = {})
969
1036
  node.extend(Helpers)
970
1037
  node.instance_eval do
971
- _buf = []; _slim_controls1 = html_tag_if((attr? :link), :a, :class=>'image', :href=>(attr :link), :target=>(attr :window), :rel=>link_rel) do; _slim_controls2 = [];
972
- ; if type == 'icon' && (document.attr? :icons, 'font');
973
- ; _slim_controls2 << ("<i"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = [*icon_fa_classes, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :title); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("></i>");
974
- ; elsif type == 'icon' && !(document.attr? :icons);
975
- ; _slim_controls2 << ("<b"); _temple_html_attributeremover2 = []; _slim_codeattributes3 = ['icon', role]; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = (attr :title); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">[");
976
- ; _slim_controls2 << (attr :alt); _slim_controls2 << ("]</b>");
977
- ; else;
978
- ;
979
- ;
980
- ; _slim_controls2 << ("<img"); _slim_codeattributes5 = (type == 'icon' ? (icon_uri target) : (image_uri target)); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _slim_codeattributes6 = (attr :alt); if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" alt"); else; _slim_controls2 << (" alt=\""); _slim_controls2 << (_slim_codeattributes6); _slim_controls2 << ("\""); end; end; _slim_codeattributes7 = (attr :width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes7); _slim_controls2 << ("\""); end; end; _slim_codeattributes8 = (attr :height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes8); _slim_controls2 << ("\""); end; end; _slim_codeattributes9 = (attr :title); if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes9); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover3 = []; _slim_codeattributes10 = [(type if type != 'image'), role]; if Array === _slim_codeattributes10; _slim_codeattributes10 = _slim_codeattributes10.flatten; _slim_codeattributes10.map!(&:to_s); _slim_codeattributes10.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes10.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes10); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_codeattributes11 = style_value(float: (attr :float)); if _slim_codeattributes11; if _slim_codeattributes11 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes11); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
981
- ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1038
+ _buf = []; ; _buf = _buf.join("")
982
1039
  end
983
1040
  end
984
1041
 
985
- def document(node, opts = {})
1042
+ def pass(node, opts = {})
986
1043
  node.extend(Helpers)
987
1044
  node.instance_eval do
988
- _buf = []; _buf << ("<!DOCTYPE html><html");
989
- ; _slim_codeattributes1 = (attr :lang, 'en' unless attr? :nolang); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" lang"); else; _buf << (" lang=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << ("><head><meta");
990
- ;
991
- ; _slim_codeattributes2 = (attr :encoding, 'UTF-8'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" charset"); else; _buf << (" charset=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << ("><!--[if IE]><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><![endif]--><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><meta name=\"generator\" content=\"Asciidoctor ");
992
- ;
993
- ;
994
- ;
995
- ; _buf << (attr 'asciidoctor-version'); _buf << ("\">");
996
- ; _buf << (html_meta_if 'application-name', (attr 'app-name'));
997
- ; _buf << (html_meta_if 'author', (attr :authors));
998
- ; _buf << (html_meta_if 'copyright', (attr :copyright));
999
- ; _buf << (html_meta_if 'description', (attr :description));
1000
- ; _buf << (html_meta_if 'keywords', (attr :keywords));
1001
- ; _buf << ("<title>"); _buf << (((doctitle sanitize: true) || (attr 'untitled-label')));
1002
- ; _buf << ("</title>"); _buf << (styles_and_scripts);
1003
- ; unless (docinfo_content = docinfo).empty?;
1004
- ; _buf << (docinfo_content);
1005
- ; end; _buf << ("</head><body");
1006
- ;
1007
- ;
1008
- ; _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes4 = [(attr :doctype), ("#{attr 'toc-class'} toc-#{attr 'toc-position', 'left'}" if (attr? 'toc-class') && (attr? :toc) && (attr? 'toc-placement', 'auto'))]; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes4); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes5 = style_value(max_width: (attr 'max-width')); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" style"); else; _buf << (" style=\""); _buf << (_slim_codeattributes5); _buf << ("\""); end; end; _buf << (">");
1009
- ; unless noheader;
1010
- ; _buf << ("<header>");
1011
- ; if has_header?;
1012
- ; unless notitle;
1013
- ; _buf << ("<h1>"); _buf << (header.title);
1014
- ; _buf << ("</h1>"); end; if [:author, :revnumber, :revdate, :revremark].any? {|a| attr? a };
1015
- ; _buf << ("<div class=\"details\">");
1016
- ; if attr? :author;
1017
- ; _buf << ("<span class=\"author\" id=\"author\">"); _buf << ((attr :author));
1018
- ; _buf << ("</span><br>");
1019
- ; if attr? :email;
1020
- ; _buf << ("<span class=\"email\" id=\"email\">"); _buf << (sub_macros(attr :email));
1021
- ; _buf << ("</span><br>");
1022
- ; end; if (authorcount = (attr :authorcount).to_i) > 1;
1023
- ; (2..authorcount).each do |idx|;
1024
- ; _buf << ("<span class=\"author\" id=\"author"); _buf << (idx); _buf << ("\">"); _buf << ((attr "author_#{idx}"));
1025
- ; _buf << ("</span><br>");
1026
- ; if attr? "email_#{idx}";
1027
- ; _buf << ("<span class=\"email\" id=\"email"); _buf << (idx); _buf << ("\">"); _buf << (sub_macros(attr "email_#{idx}"));
1028
- ; _buf << ("</span>"); end; end; end; end; if attr? :revnumber;
1029
- ; _buf << ("<span id=\"revnumber\">"); _buf << (((attr 'version-label') || '').downcase); _buf << (" "); _buf << (attr :revnumber); _buf << (',' if attr? :revdate); _buf << ("</span> ");
1030
- ;
1031
- ; end; if attr? :revdate;
1032
- ; _buf << ("<time id=\"revdate\""); _slim_codeattributes6 = revdate_iso; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" datetime"); else; _buf << (" datetime=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _buf << (">"); _buf << ((attr :revdate));
1033
- ; _buf << ("</time>"); end; if attr? :revremark;
1034
- ; _buf << ("<br><span id=\"revremark\">");
1035
- ; _buf << ((attr :revremark));
1036
- ; _buf << ("</span>"); end; _buf << ("</div>"); end; end; if (attr? :toc) && (attr? 'toc-placement', 'auto');
1037
- ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover2 = []; _slim_codeattributes7 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes7; _slim_codeattributes7 = _slim_codeattributes7.flatten; _slim_codeattributes7.map!(&:to_s); _slim_codeattributes7.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes7.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes7); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1038
- ; _buf << ((document.attr 'toc-title'));
1039
- ; _buf << ("</h2>");
1040
- ; _buf << (converter.convert document, 'outline');
1041
- ; _buf << ("</nav>");
1042
- ; end;
1043
- ; _buf << ("</header>"); end; _buf << ("<div id=\"content\">"); _buf << (content);
1044
- ; _buf << ("</div>"); unless !footnotes? || (attr? :nofootnotes);
1045
- ; _buf << ("<section class=\"footnotes\" aria-label=\"Footnotes\" role=\"doc-endnotes\"><hr><ol class=\"footnotes\">");
1046
- ;
1047
- ;
1048
- ; footnotes.each do |fn|;
1049
- ; _buf << ("<li class=\"footnote\""); _slim_codeattributes8 = (footnote_id fn.index); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _buf << (" role=\"doc-endnote\">");
1050
- ; _buf << ("#{fn.text} ");
1051
- ;
1052
- ;
1053
- ;
1054
- ; _buf << ("<a class=\"footnote-backref\" href=\"#"); _buf << (footnoteref_id fn.index); _buf << ("\" role=\"doc-backlink\" title=\"Jump to the first occurrence in the text\">&#8617;</a></li>");
1055
- ;
1056
- ; end; _buf << ("</ol></section>");
1057
- ; end; unless nofooter;
1058
- ; _buf << ("<footer><div id=\"footer-text\">");
1059
- ;
1060
- ; if attr? :revnumber;
1061
- ; _buf << (attr 'version-label'); _buf << (" "); _buf << (attr :revnumber);
1062
- ; end; if attr? 'last-update-label';
1063
- ; _buf << ("<br>");
1064
- ; _buf << (attr 'last-update-label'); _buf << (" "); _buf << (attr :docdatetime);
1065
- ; end; _buf << ("</div>"); unless (docinfo_content = (docinfo :footer)).empty?;
1066
- ; _buf << (docinfo_content);
1067
- ; end;
1068
- ; _buf << ("</footer>"); end; _buf << ("</body></html>"); _buf = _buf.join("")
1045
+ _buf = []; _buf << (content);
1046
+ ; _buf = _buf.join("")
1069
1047
  end
1070
1048
  end
1071
1049
 
1072
- def open(node, opts = {})
1050
+ def inline_anchor(node, opts = {})
1073
1051
  node.extend(Helpers)
1074
1052
  node.instance_eval do
1075
- _buf = []; if style == 'abstract';
1076
- ; if abstract_allowed?;
1077
- ; _slim_controls1 = block_with_title :class=>'quote-block abstract' do; _slim_controls2 = [];
1078
- ; _slim_controls2 << ("<blockquote>"); _slim_controls2 << (content);
1079
- ; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; elsif style != 'partintro' || partintro_allowed?;
1080
- ; _slim_controls3 = block_with_title :class=>['open-block', (style if style != 'open')] do; _slim_controls4 = [];
1081
- ; _slim_controls4 << ("<div class=\"content\">"); _slim_controls4 << (content);
1082
- ; _slim_controls4 << ("</div>"); _slim_controls4 = _slim_controls4.join(""); end; _buf << (_slim_controls3); end; _buf = _buf.join("")
1053
+ _buf = []; case type;
1054
+ ; when :xref;
1055
+ ; _buf << ("<a"); _slim_codeattributes1 = target; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (">"); _buf << (xref_text);
1056
+ ; _buf << ("</a>"); when :ref;
1057
+ ;
1058
+ ; _buf << ("<a"); _slim_codeattributes2 = (id || target); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1059
+ ; when :bibref;
1060
+ ;
1061
+ ; _buf << ("<a"); _slim_codeattributes3 = (id || target); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1062
+ ; _buf << (bibref_text);
1063
+ ; else;
1064
+ ; _buf << ("<a"); _slim_codeattributes4 = id; if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes4); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes5 = role; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes5); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes6 = target; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _slim_codeattributes7 = (attr :window); if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" target"); else; _buf << (" target=\""); _buf << (_slim_codeattributes7); _buf << ("\""); end; end; _slim_codeattributes8 = link_rel; if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" rel"); else; _buf << (" rel=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _slim_codeattributes9 = (attr :title); if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" title"); else; _buf << (" title=\""); _buf << (_slim_codeattributes9); _buf << ("\""); end; end; _buf << (">"); _buf << (text);
1065
+ ; _buf << ("</a>"); end; _buf = _buf.join("")
1083
1066
  end
1084
1067
  end
1085
1068
 
1086
- def pass(node, opts = {})
1069
+ def preamble(node, opts = {})
1087
1070
  node.extend(Helpers)
1088
1071
  node.instance_eval do
1089
- _buf = []; _buf << (content);
1090
- ; _buf = _buf.join("")
1072
+ _buf = []; _buf << ("<section id=\"preamble\" aria-label=\"Preamble\">");
1073
+ ; _buf << (content);
1074
+ ; _buf << ("</section>"); if (document.attr? :toc) && (document.attr? 'toc-placement', 'preamble');
1075
+ ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1076
+ ; _buf << ((document.attr 'toc-title'));
1077
+ ; _buf << ("</h2>");
1078
+ ; _buf << (converter.convert document, 'outline');
1079
+ ; _buf << ("</nav>");
1080
+ ; end; _buf = _buf.join("")
1091
1081
  end
1092
1082
  end
1093
1083
 
1094
- def floating_title(node, opts = {})
1084
+ def quote(node, opts = {})
1095
1085
  node.extend(Helpers)
1096
1086
  node.instance_eval do
1097
- _buf = []; _slim_htag_filter1 = ((level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = [style, role]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1098
- ; _buf << (title);
1099
- ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf = _buf.join("")
1087
+ _buf = []; _slim_controls1 = block_with_title :class=>'quote-block' do; _slim_controls2 = [];
1088
+ ; _slim_controls2 << ("<blockquote>");
1089
+ ; _slim_controls3 = html_tag_if !blocks?, :p do; _slim_controls4 = [];
1090
+ ; _slim_controls4 << (content);
1091
+ ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); if attr?(:attribution) || attr?(:citetitle);
1092
+ ; _slim_controls2 << ("<footer>&#8212; <cite>");
1093
+ ;
1094
+ ;
1095
+ ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
1096
+ ; _slim_controls2 << ("</cite></footer>");
1097
+ ; end; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1100
1098
  end
1101
1099
  end
1102
1100
 
1103
- def example(node, opts = {})
1101
+ def inline_quoted(node, opts = {})
1104
1102
  node.extend(Helpers)
1105
1103
  node.instance_eval do
1106
- _buf = []; _slim_controls1 = block_with_caption :top, :class=>'example-block' do; _slim_controls2 = [];
1107
- ; _slim_controls2 << ("<div class=\"example\">");
1108
- ; _slim_controls2 << (content);
1109
- ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1104
+ _buf = []; unless id.nil?;
1105
+ ; _buf << ("<a"); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1106
+ ; end; case type;
1107
+ ; when :emphasis;
1108
+ ; _buf << ("<em"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">"); _buf << (text);
1109
+ ; _buf << ("</em>"); when :strong;
1110
+ ; _buf << ("<strong"); _temple_html_attributeremover2 = []; _slim_codeattributes3 = role; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (">"); _buf << (text);
1111
+ ; _buf << ("</strong>"); when :monospaced;
1112
+ ; _buf << ("<code"); _temple_html_attributeremover3 = []; _slim_codeattributes4 = role; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes4); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover3); _buf << ("\""); end; _buf << (">"); _buf << (text);
1113
+ ; _buf << ("</code>"); when :superscript;
1114
+ ; _buf << ("<sup"); _temple_html_attributeremover4 = []; _slim_codeattributes5 = role; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover4 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover4 << (_slim_codeattributes5); end; _temple_html_attributeremover4 = _temple_html_attributeremover4.join(""); if !_temple_html_attributeremover4.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover4); _buf << ("\""); end; _buf << (">"); _buf << (text);
1115
+ ; _buf << ("</sup>"); when :subscript;
1116
+ ; _buf << ("<sub"); _temple_html_attributeremover5 = []; _slim_codeattributes6 = role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover5 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover5 << (_slim_codeattributes6); end; _temple_html_attributeremover5 = _temple_html_attributeremover5.join(""); if !_temple_html_attributeremover5.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover5); _buf << ("\""); end; _buf << (">"); _buf << (text);
1117
+ ; _buf << ("</sub>"); when :mark;
1118
+ ; _buf << ("<mark"); _temple_html_attributeremover6 = []; _slim_codeattributes7 = role; if Array === _slim_codeattributes7; _slim_codeattributes7 = _slim_codeattributes7.flatten; _slim_codeattributes7.map!(&:to_s); _slim_codeattributes7.reject!(&:empty?); _temple_html_attributeremover6 << (_slim_codeattributes7.join(" ")); else; _temple_html_attributeremover6 << (_slim_codeattributes7); end; _temple_html_attributeremover6 = _temple_html_attributeremover6.join(""); if !_temple_html_attributeremover6.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover6); _buf << ("\""); end; _buf << (">"); _buf << (text);
1119
+ ; _buf << ("</mark>"); when :double;
1120
+ ; _slim_controls1 = html_tag_if role?, :span, :class=>role do; _slim_controls2 = [];
1121
+ ; _slim_controls2 << ((double_quoted text));
1122
+ ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); when :single;
1123
+ ; _slim_controls3 = html_tag_if role?, :span, :class=>role do; _slim_controls4 = [];
1124
+ ; _slim_controls4 << ((single_quoted text));
1125
+ ; _slim_controls4 = _slim_controls4.join(""); end; _buf << (_slim_controls3); when :asciimath, :latexmath;
1126
+ ; _buf << ("<span class=\"math\""); _slim_codeattributes8 = stem_lang; if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" data-lang"); else; _buf << (" data-lang=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _buf << (">"); _buf << ((delimit_stem text, type));
1127
+ ; _buf << ("</span>"); else;
1128
+ ; if role == 'line-through' || role == 'del';
1129
+ ; _buf << ("<del>"); _buf << (text);
1130
+ ; _buf << ("</del>"); else;
1131
+ ; _slim_controls5 = html_tag_if role?, :span, :class=>role do; _slim_controls6 = [];
1132
+ ; _slim_controls6 << (text);
1133
+ ; _slim_controls6 = _slim_controls6.join(""); end; _buf << (_slim_controls5); end; end; _buf = _buf.join("")
1110
1134
  end
1111
1135
  end
1112
1136
 
1113
- def inline_anchor(node, opts = {})
1137
+ def toc(node, opts = {})
1114
1138
  node.extend(Helpers)
1115
1139
  node.instance_eval do
1116
- _buf = []; case type;
1117
- ; when :xref;
1118
- ; _buf << ("<a"); _slim_codeattributes1 = target; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (">"); _buf << (xref_text);
1119
- ; _buf << ("</a>"); when :ref;
1120
- ;
1121
- ; _buf << ("<a"); _slim_codeattributes2 = (id || target); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1122
- ; when :bibref;
1140
+ _buf = [];
1123
1141
  ;
1124
- ; _buf << ("<a"); _slim_codeattributes3 = (id || target); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1125
- ; _buf << (bibref_text);
1126
- ; else;
1127
- ; _buf << ("<a"); _slim_codeattributes4 = id; if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes4); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes5 = role; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes5); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes6 = target; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _slim_codeattributes7 = (attr :window); if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" target"); else; _buf << (" target=\""); _buf << (_slim_codeattributes7); _buf << ("\""); end; end; _slim_codeattributes8 = link_rel; if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" rel"); else; _buf << (" rel=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _slim_codeattributes9 = (attr :title); if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" title"); else; _buf << (" title=\""); _buf << (_slim_codeattributes9); _buf << ("\""); end; end; _buf << (">"); _buf << (text);
1128
- ; _buf << ("</a>"); end; _buf = _buf.join("")
1142
+ ; if document.attr?(:toc) && document.sections?;
1143
+ ; toc_id = id || ('toc' if document.embedded? || !document.attr?('toc-placement'));
1144
+ ; _buf << ("<nav"); _slim_codeattributes1 = toc_id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = (attr :role, (document.attr 'toc-class', 'toc')); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\">");
1145
+ ; _slim_htag_filter1 = ((level + 2)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes3 = ("#{toc_id}-title" if toc_id); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (">");
1146
+ ; _buf << ((title || (document.attr 'toc-title')));
1147
+ ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">");
1148
+ ; _buf << (converter.convert document, 'outline', :toclevels=>((attr :levels).to_i if attr? :levels));
1149
+ ; _buf << ("</nav>"); else;
1150
+ ; _buf << ("<!--toc disabled-->");
1151
+ ; end; _buf = _buf.join("")
1129
1152
  end
1130
1153
  end
1131
1154
 
1132
- def empty(node, opts = {})
1155
+ def inline_indexterm(node, opts = {})
1133
1156
  node.extend(Helpers)
1134
1157
  node.instance_eval do
1135
- _buf = []; ; _buf = _buf.join("")
1158
+ _buf = []; if type == :visible;
1159
+ ; _buf << (text);
1160
+ ; end; _buf = _buf.join("")
1136
1161
  end
1137
1162
  end
1138
1163
 
1139
- def image(node, opts = {})
1164
+ def thematic_break(node, opts = {})
1140
1165
  node.extend(Helpers)
1141
1166
  node.instance_eval do
1142
- _buf = []; _slim_controls1 = block_with_caption(:bottom, :class=>'image-block', :style=>style_value(text_align: (attr :align), float: (attr :float))) do; _slim_controls2 = [];
1143
- ; target_url = image_uri(attr :target);
1144
- ; _slim_controls3 = html_tag_if(image_link, :a,
1145
- :class=>['image', ('bare' if image_link == target_url)],
1146
- :href=>image_link,
1147
- :title=>image_link_label,
1148
- 'aria-label'=>image_link_label,
1149
- :target=>(attr :window),
1150
- :rel=>link_rel) do; _slim_controls4 = [];
1151
- ; _slim_controls4 << ("<img"); _slim_codeattributes1 = target_url; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls4 << (" src"); else; _slim_controls4 << (" src=\""); _slim_controls4 << (_slim_codeattributes1); _slim_controls4 << ("\""); end; end; _slim_codeattributes2 = (attr :alt); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls4 << (" alt"); else; _slim_controls4 << (" alt=\""); _slim_controls4 << (_slim_codeattributes2); _slim_controls4 << ("\""); end; end; _slim_codeattributes3 = (attr :width); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls4 << (" width"); else; _slim_controls4 << (" width=\""); _slim_controls4 << (_slim_codeattributes3); _slim_controls4 << ("\""); end; end; _slim_codeattributes4 = (attr :height); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls4 << (" height"); else; _slim_controls4 << (" height=\""); _slim_controls4 << (_slim_codeattributes4); _slim_controls4 << ("\""); end; end; _slim_controls4 << (">");
1152
- ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1167
+ _buf = []; _buf << ("<hr>");
1168
+ ; _buf = _buf.join("")
1153
1169
  end
1154
1170
  end
1155
1171
 
1156
- def paragraph(node, opts = {})
1172
+ def inline_menu(node, opts = {})
1157
1173
  node.extend(Helpers)
1158
1174
  node.instance_eval do
1159
- _buf = []; if title?;
1160
- ; _buf << ("<section class=\"paragraph\""); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << ("><h6 class=\"block-title\">");
1161
- ; _buf << (title);
1162
- ; _buf << ("</h6><p"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">"); _buf << (content);
1163
- ; _buf << ("</p></section>"); else;
1164
- ; _buf << ("<p"); _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _temple_html_attributeremover2 = []; _slim_codeattributes4 = role; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes4); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (">"); _buf << (content);
1165
- ; _buf << ("</p>"); end; _buf = _buf.join("")
1175
+ _buf = []; if local_attr :menuitem;
1176
+ ; capture do;
1177
+ ; _buf << ("&#160;<b class=\"caret\">&#8250;</b>");
1178
+ ;
1179
+ ; end; _buf << ("<span class=\"menuseq\"><b class=\"menu\">");
1180
+ ;
1181
+ ; _buf << ((attr :menu));
1182
+ ; yield_capture;
1183
+ ; _buf << ("</b>"); (attr 'submenus').each do |submenu|;
1184
+ ; _buf << ("<b class=\"submenu\">");
1185
+ ; _buf << (submenu);
1186
+ ; yield_capture;
1187
+ ; _buf << ("</b>"); end; _buf << ("<b class=\"menuitem\">"); _buf << ((local_attr :menuitem));
1188
+ ; _buf << ("</b></span>"); else;
1189
+ ; _buf << ("<b class=\"menuref\">"); _buf << ((attr :menu));
1190
+ ; _buf << ("</b>"); end; _buf = _buf.join("")
1166
1191
  end
1167
1192
  end
1168
1193
 
@@ -1195,88 +1220,90 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
1195
1220
  end
1196
1221
  end
1197
1222
 
1198
- def stem(node, opts = {})
1199
- node.extend(Helpers)
1200
- node.instance_eval do
1201
- _buf = []; _slim_controls1 = block_with_caption :top, :class=>'stem-block' do; _slim_controls2 = [];
1202
- ; _slim_controls2 << ("<div class=\"math\""); _slim_codeattributes1 = stem_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << ((delimit_stem content, style));
1203
- ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1204
- end
1205
- end
1206
-
1207
- def listing(node, opts = {})
1223
+ def document(node, opts = {})
1208
1224
  node.extend(Helpers)
1209
1225
  node.instance_eval do
1210
- _buf = []; _slim_controls1 = block_with_caption :top, :class=>'listing-block' do; _slim_controls2 = [];
1211
- ; if style == 'source';
1212
- ; if highlighter == 'html-pipeline';
1213
- ; _slim_controls2 << ("<pre><code"); _slim_codeattributes1 = source_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
1214
- ; _slim_controls2 << ("</code></pre>"); else;
1215
- ; unless highlighter == 'CodeRay';
1216
- ; code_class = "language-#{source_lang}" if source_lang;
1217
- ; end; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = [highlighter, 'highlight', ('linenums' if attr? :linenums), nowrap?]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << ("><code");
1218
- ; _temple_html_attributeremover2 = []; _slim_codeattributes3 = code_class; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = source_lang; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
1219
- ; _slim_controls2 << ("</code></pre>"); end; else;
1220
- ; _slim_controls2 << ("<pre"); _temple_html_attributeremover3 = []; _slim_codeattributes5 = nowrap?; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes5); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
1221
- ; _slim_controls2 << ("</pre>");
1226
+ _buf = []; _buf << ("<!DOCTYPE html><html");
1227
+ ; _slim_codeattributes1 = (attr :lang, 'en' unless attr? :nolang); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" lang"); else; _buf << (" lang=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << ("><head><meta");
1222
1228
  ;
1223
- ; end; if callout_list;
1224
- ; _slim_controls2 << (converter.convert callout_list, 'colist');
1225
- ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1226
- end
1227
- end
1228
-
1229
- def sidebar(node, opts = {})
1230
- node.extend(Helpers)
1231
- node.instance_eval do
1232
- _buf = []; _buf << ("<aside"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "sidebar"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = role; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1233
- ; if title?;
1234
- ; _buf << ("<h6 class=\"block-title\">"); _buf << (title);
1235
- ; _buf << ("</h6>"); end; _buf << (content);
1236
- ; _buf << ("</aside>"); _buf = _buf.join("")
1237
- end
1238
- end
1239
-
1240
- def literal(node, opts = {})
1241
- node.extend(Helpers)
1242
- node.instance_eval do
1243
- _buf = []; _slim_controls1 = block_with_title :class=>'literal-block' do; _slim_controls2 = [];
1244
- ; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = nowrap?; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
1245
- ; _slim_controls2 << ("</pre>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1246
- end
1247
- end
1248
-
1249
- def outline(node, opts = {})
1250
- node.extend(Helpers)
1251
- node.instance_eval do
1252
- _buf = []; unless sections.empty?;
1229
+ ; _slim_codeattributes2 = (attr :encoding, 'UTF-8'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" charset"); else; _buf << (" charset=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << ("><!--[if IE]><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><![endif]--><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><meta name=\"generator\" content=\"Asciidoctor ");
1253
1230
  ;
1254
- ; toclevels ||= opts[:toclevels] || (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i;
1255
- ; slevel = section_level sections.first;
1256
- ; _buf << ("<ol class=\"toc-list level-"); _buf << (slevel); _buf << ("\">");
1257
- ; sections.each do |sec|;
1258
- ; _buf << ("<li><a href=\"#");
1259
- ; _buf << (sec.id); _buf << ("\">"); _buf << (section_title sec);
1260
- ; _buf << ("</a>"); if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline');
1261
- ; _buf << (child_toc);
1262
- ; end; _buf << ("</li>"); end; _buf << ("</ol>"); end; _buf = _buf.join("")
1263
- end
1264
- end
1265
-
1266
- def quote(node, opts = {})
1267
- node.extend(Helpers)
1268
- node.instance_eval do
1269
- _buf = []; _slim_controls1 = block_with_title :class=>'quote-block' do; _slim_controls2 = [];
1270
- ; _slim_controls2 << ("<blockquote>");
1271
- ; _slim_controls3 = html_tag_if !blocks?, :p do; _slim_controls4 = [];
1272
- ; _slim_controls4 << (content);
1273
- ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); if attr?(:attribution) || attr?(:citetitle);
1274
- ; _slim_controls2 << ("<footer>&#8212; <cite>");
1275
1231
  ;
1276
1232
  ;
1277
- ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
1278
- ; _slim_controls2 << ("</cite></footer>");
1279
- ; end; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1233
+ ; _buf << (attr 'asciidoctor-version'); _buf << ("\">");
1234
+ ; _buf << (html_meta_if 'application-name', (attr 'app-name'));
1235
+ ; _buf << (html_meta_if 'author', (attr :authors));
1236
+ ; _buf << (html_meta_if 'copyright', (attr :copyright));
1237
+ ; _buf << (html_meta_if 'description', (attr :description));
1238
+ ; _buf << (html_meta_if 'keywords', (attr :keywords));
1239
+ ; _buf << ("<title>"); _buf << (((doctitle sanitize: true) || (attr 'untitled-label')));
1240
+ ; _buf << ("</title>"); _buf << (styles_and_scripts);
1241
+ ; unless (docinfo_content = docinfo).empty?;
1242
+ ; _buf << (docinfo_content);
1243
+ ; end; _buf << ("</head><body");
1244
+ ;
1245
+ ;
1246
+ ; _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes4 = [(attr :doctype), ("#{attr 'toc-class'} toc-#{attr 'toc-position', 'left'}" if (attr? 'toc-class') && (attr? :toc) && (attr? 'toc-placement', 'auto'))]; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes4); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes5 = style_value(max_width: (attr 'max-width')); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" style"); else; _buf << (" style=\""); _buf << (_slim_codeattributes5); _buf << ("\""); end; end; _buf << (">");
1247
+ ; unless noheader;
1248
+ ; _buf << ("<header>");
1249
+ ; if has_header?;
1250
+ ; unless notitle;
1251
+ ; _buf << ("<h1>"); _buf << (header.title);
1252
+ ; _buf << ("</h1>"); end; if [:author, :revnumber, :revdate, :revremark].any? {|a| attr? a };
1253
+ ; _buf << ("<div class=\"details\">");
1254
+ ; if attr? :author;
1255
+ ; _buf << ("<span class=\"author\" id=\"author\">"); _buf << ((attr :author));
1256
+ ; _buf << ("</span><br>");
1257
+ ; if attr? :email;
1258
+ ; _buf << ("<span class=\"email\" id=\"email\">"); _buf << (sub_macros(attr :email));
1259
+ ; _buf << ("</span><br>");
1260
+ ; end; if (authorcount = (attr :authorcount).to_i) > 1;
1261
+ ; (2..authorcount).each do |idx|;
1262
+ ; _buf << ("<span class=\"author\" id=\"author"); _buf << (idx); _buf << ("\">"); _buf << ((attr "author_#{idx}"));
1263
+ ; _buf << ("</span><br>");
1264
+ ; if attr? "email_#{idx}";
1265
+ ; _buf << ("<span class=\"email\" id=\"email"); _buf << (idx); _buf << ("\">"); _buf << (sub_macros(attr "email_#{idx}"));
1266
+ ; _buf << ("</span>"); end; end; end; end; if attr? :revnumber;
1267
+ ; _buf << ("<span id=\"revnumber\">"); _buf << (((attr 'version-label') || '').downcase); _buf << (" "); _buf << (attr :revnumber); _buf << (',' if attr? :revdate); _buf << ("</span> ");
1268
+ ;
1269
+ ; end; if attr? :revdate;
1270
+ ; _buf << ("<time id=\"revdate\""); _slim_codeattributes6 = revdate_iso; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" datetime"); else; _buf << (" datetime=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _buf << (">"); _buf << ((attr :revdate));
1271
+ ; _buf << ("</time>"); end; if attr? :revremark;
1272
+ ; _buf << ("<br><span id=\"revremark\">");
1273
+ ; _buf << ((attr :revremark));
1274
+ ; _buf << ("</span>"); end; _buf << ("</div>"); end; end; if (attr? :toc) && (attr? 'toc-placement', 'auto');
1275
+ ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover2 = []; _slim_codeattributes7 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes7; _slim_codeattributes7 = _slim_codeattributes7.flatten; _slim_codeattributes7.map!(&:to_s); _slim_codeattributes7.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes7.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes7); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1276
+ ; _buf << ((document.attr 'toc-title'));
1277
+ ; _buf << ("</h2>");
1278
+ ; _buf << (converter.convert document, 'outline');
1279
+ ; _buf << ("</nav>");
1280
+ ; end;
1281
+ ; _buf << ("</header>"); end; _buf << ("<div id=\"content\">"); _buf << (content);
1282
+ ; _buf << ("</div>"); unless !footnotes? || (attr? :nofootnotes);
1283
+ ; _buf << ("<section class=\"footnotes\" aria-label=\"Footnotes\" role=\"doc-endnotes\"><hr><ol class=\"footnotes\">");
1284
+ ;
1285
+ ;
1286
+ ; footnotes.each do |fn|;
1287
+ ; _buf << ("<li class=\"footnote\""); _slim_codeattributes8 = (footnote_id fn.index); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _buf << (" role=\"doc-endnote\">");
1288
+ ; _buf << ("#{fn.text} ");
1289
+ ;
1290
+ ;
1291
+ ;
1292
+ ; _buf << ("<a class=\"footnote-backref\" href=\"#"); _buf << (footnoteref_id fn.index); _buf << ("\" role=\"doc-backlink\" title=\"Jump to the first occurrence in the text\">&#8617;</a></li>");
1293
+ ;
1294
+ ; end; _buf << ("</ol></section>");
1295
+ ; end; unless nofooter;
1296
+ ; _buf << ("<footer><div id=\"footer-text\">");
1297
+ ;
1298
+ ; if attr? :revnumber;
1299
+ ; _buf << (attr 'version-label'); _buf << (" "); _buf << (attr :revnumber);
1300
+ ; end; if attr? 'last-update-label';
1301
+ ; _buf << ("<br>");
1302
+ ; _buf << (attr 'last-update-label'); _buf << (" "); _buf << (attr :docdatetime);
1303
+ ; end; _buf << ("</div>"); unless (docinfo_content = (docinfo :footer)).empty?;
1304
+ ; _buf << (docinfo_content);
1305
+ ; end;
1306
+ ; _buf << ("</footer>"); end; _buf << ("</body></html>"); _buf = _buf.join("")
1280
1307
  end
1281
1308
  end
1282
1309
 
@@ -1305,191 +1332,164 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
1305
1332
  end
1306
1333
  end
1307
1334
 
1308
- def inline_kbd(node, opts = {})
1335
+ def ulist(node, opts = {})
1309
1336
  node.extend(Helpers)
1310
1337
  node.instance_eval do
1311
- _buf = []; if (keys = attr 'keys').size == 1;
1312
- ; _buf << ("<kbd>"); _buf << (keys.first);
1313
- ; _buf << ("</kbd>"); else;
1314
- ; _buf << ("<kbd class=\"keyseq\">");
1315
- ; keys.each_with_index do |key, idx|;
1316
- ; _buf << ("+" unless idx.zero?);
1317
- ; _buf << ("<kbd>"); _buf << (key);
1318
- ; _buf << ("</kbd>"); end; _buf << ("</kbd>"); end; _buf = _buf.join("")
1338
+ _buf = []; checklist = 'task-list' if option? 'checklist';
1339
+ ; _slim_controls1 = block_with_title :class=>['ulist', style] do; _slim_controls2 = [];
1340
+ ; _slim_controls2 << ("<ul"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (checklist || style); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
1341
+ ; items.each do |item|;
1342
+ ; if checklist && (item.attr? :checkbox);
1343
+ ; _slim_controls2 << ("<li class=\"task-list-item\"><input class=\"task-list-item-checkbox\" type=\"checkbox\" disabled");
1344
+ ; _slim_codeattributes2 = (item.attr? :checked); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" checked"); else; _slim_controls2 << (" checked=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("> ");
1345
+ ; _slim_controls2 << (item.text);
1346
+ ; _slim_controls2 << ("</li>"); else;
1347
+ ; _slim_controls2 << ("<li>");
1348
+ ; _slim_controls2 << ((print_item_content item));
1349
+ ; _slim_controls2 << ("</li>"); end; end; _slim_controls2 << ("</ul>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1319
1350
  end
1320
1351
  end
1321
1352
 
1322
- def inline_indexterm(node, opts = {})
1353
+ def inline_button(node, opts = {})
1323
1354
  node.extend(Helpers)
1324
1355
  node.instance_eval do
1325
- _buf = []; if type == :visible;
1326
- ; _buf << (text);
1327
- ; end; _buf = _buf.join("")
1356
+ _buf = []; _buf << ("<b class=\"button\">"); _buf << (text);
1357
+ ; _buf << ("</b>"); _buf = _buf.join("")
1328
1358
  end
1329
1359
  end
1330
1360
 
1331
- def inline_break(node, opts = {})
1361
+ def audio(node, opts = {})
1332
1362
  node.extend(Helpers)
1333
1363
  node.instance_eval do
1334
- _buf = []; _buf << (text);
1335
- ; _buf << ("<br>");
1336
- ; _buf = _buf.join("")
1364
+ _buf = []; _slim_controls1 = block_with_caption :bottom, :class=>'audio-block' do; _slim_controls2 = [];
1365
+ ;
1366
+ ;
1367
+ ;
1368
+ ;
1369
+ ; _slim_controls2 << ("<audio"); _slim_codeattributes1 = media_uri(attr :target); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_codeattributes2 = (option? 'autoplay'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" autoplay"); else; _slim_controls2 << (" autoplay=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = !(option? 'nocontrols'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" controls"); else; _slim_controls2 << (" controls=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'loop'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" loop"); else; _slim_controls2 << (" loop=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">Your browser does not support the audio tag.</audio>");
1370
+ ;
1371
+ ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1337
1372
  end
1338
1373
  end
1339
1374
 
1340
- def section(node, opts = {})
1375
+ def verse(node, opts = {})
1341
1376
  node.extend(Helpers)
1342
1377
  node.instance_eval do
1343
- _buf = []; _buf << ("<section"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "doc-section"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = ["level-#{section_level}", role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1344
- ; _slim_htag_filter1 = ((section_level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1345
- ; if id;
1346
- ; if document.attr? :sectanchors;
1347
- ; _buf << ("<a class=\"anchor\" href=\"#"); _buf << (id); _buf << ("\" aria-hidden=\"true\"></a>");
1348
- ; end; if document.attr? :sectlinks;
1349
- ; _buf << ("<a class=\"link\" href=\"#"); _buf << (id); _buf << ("\">"); _buf << (section_title);
1350
- ; _buf << ("</a>"); else;
1351
- ; _buf << (section_title);
1352
- ; end; else;
1353
- ; _buf << (section_title);
1354
- ; end; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf << (content);
1355
- ; _buf << ("</section>"); _buf = _buf.join("")
1378
+ _buf = []; _slim_controls1 = block_with_title :class=>'verse-block' do; _slim_controls2 = [];
1379
+ ; if attr?(:attribution) || attr?(:citetitle);
1380
+ ; _slim_controls2 << ("<blockquote class=\"verse\"><pre class=\"verse\">");
1381
+ ; _slim_controls2 << (content);
1382
+ ; _slim_controls2 << ("</pre><footer>&#8212; <cite>");
1383
+ ;
1384
+ ;
1385
+ ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
1386
+ ; _slim_controls2 << ("</cite></footer></blockquote>");
1387
+ ; else;
1388
+ ; _slim_controls2 << ("<pre class=\"verse\">"); _slim_controls2 << (content);
1389
+ ; _slim_controls2 << ("</pre>"); end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1356
1390
  end
1357
1391
  end
1358
1392
 
1359
- def audio(node, opts = {})
1393
+ def sidebar(node, opts = {})
1360
1394
  node.extend(Helpers)
1361
1395
  node.instance_eval do
1362
- _buf = []; _slim_controls1 = block_with_caption :bottom, :class=>'audio-block' do; _slim_controls2 = [];
1363
- ;
1364
- ;
1365
- ;
1366
- ;
1367
- ; _slim_controls2 << ("<audio"); _slim_codeattributes1 = media_uri(attr :target); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_codeattributes2 = (option? 'autoplay'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" autoplay"); else; _slim_controls2 << (" autoplay=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = !(option? 'nocontrols'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" controls"); else; _slim_controls2 << (" controls=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'loop'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" loop"); else; _slim_controls2 << (" loop=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">Your browser does not support the audio tag.</audio>");
1368
- ;
1369
- ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1396
+ _buf = []; _buf << ("<aside"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "sidebar"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = role; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1397
+ ; if title?;
1398
+ ; _buf << ("<h6 class=\"block-title\">"); _buf << (title);
1399
+ ; _buf << ("</h6>"); end; _buf << (content);
1400
+ ; _buf << ("</aside>"); _buf = _buf.join("")
1370
1401
  end
1371
1402
  end
1372
1403
 
1373
- def inline_callout(node, opts = {})
1404
+ def literal(node, opts = {})
1374
1405
  node.extend(Helpers)
1375
1406
  node.instance_eval do
1376
- _buf = []; _buf << ("<b class=\"conum\">"); _buf << (text);
1377
- ; _buf << ("</b>"); _buf = _buf.join("")
1407
+ _buf = []; _slim_controls1 = block_with_title :class=>'literal-block' do; _slim_controls2 = [];
1408
+ ; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = nowrap?; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
1409
+ ; _slim_controls2 << ("</pre>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1378
1410
  end
1379
1411
  end
1380
1412
 
1381
- def colist(node, opts = {})
1413
+ def inline_image(node, opts = {})
1382
1414
  node.extend(Helpers)
1383
1415
  node.instance_eval do
1384
- _buf = [];
1385
- ; _buf << ("<ol"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "callout-list"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = [style, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1386
- ; items.each do |item|;
1387
- ; _buf << ("<li>"); _buf << (item.text);
1388
- ; _buf << ("</li>"); end; _buf << ("</ol>"); _buf = _buf.join("")
1416
+ _buf = []; _slim_controls1 = html_tag_if((attr? :link), :a, :class=>'image', :href=>(attr :link), :target=>(attr :window), :rel=>link_rel) do; _slim_controls2 = [];
1417
+ ; if type == 'icon' && (document.attr? :icons, 'font');
1418
+ ; _slim_controls2 << ("<i"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = [*icon_fa_classes, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :title); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("></i>");
1419
+ ; elsif type == 'icon' && !(document.attr? :icons);
1420
+ ; _slim_controls2 << ("<b"); _temple_html_attributeremover2 = []; _slim_codeattributes3 = ['icon', role]; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = (attr :title); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">[");
1421
+ ; _slim_controls2 << (attr :alt); _slim_controls2 << ("]</b>");
1422
+ ; else;
1423
+ ;
1424
+ ;
1425
+ ; _slim_controls2 << ("<img"); _slim_codeattributes5 = (type == 'icon' ? (icon_uri target) : (image_uri target)); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _slim_codeattributes6 = (attr :alt); if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" alt"); else; _slim_controls2 << (" alt=\""); _slim_controls2 << (_slim_codeattributes6); _slim_controls2 << ("\""); end; end; _slim_codeattributes7 = (attr :width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes7); _slim_controls2 << ("\""); end; end; _slim_codeattributes8 = (attr :height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes8); _slim_controls2 << ("\""); end; end; _slim_codeattributes9 = (attr :title); if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes9); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover3 = []; _slim_codeattributes10 = [(type if type != 'image'), role]; if Array === _slim_codeattributes10; _slim_codeattributes10 = _slim_codeattributes10.flatten; _slim_codeattributes10.map!(&:to_s); _slim_codeattributes10.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes10.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes10); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_codeattributes11 = style_value(float: (attr :float)); if _slim_codeattributes11; if _slim_codeattributes11 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes11); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
1426
+ ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1389
1427
  end
1390
1428
  end
1391
1429
 
1392
- def olist(node, opts = {})
1430
+ def outline(node, opts = {})
1393
1431
  node.extend(Helpers)
1394
1432
  node.instance_eval do
1395
- _buf = []; _slim_controls1 = block_with_title :class=>['olist', style] do; _slim_controls2 = [];
1396
- ; _slim_controls2 << ("<ol"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = style; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :start); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" start"); else; _slim_controls2 << (" start=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = list_marker_keyword; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" type"); else; _slim_controls2 << (" type=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'reversed'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" reversed"); else; _slim_controls2 << (" reversed=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
1397
- ; items.each do |item|;
1398
- ; _slim_controls2 << ("<li>"); _slim_controls2 << ((print_item_content item));
1399
- ; _slim_controls2 << ("</li>"); end; _slim_controls2 << ("</ol>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1433
+ _buf = []; unless sections.empty?;
1434
+ ;
1435
+ ; toclevels ||= opts[:toclevels] || (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i;
1436
+ ; slevel = section_level sections.first;
1437
+ ; _buf << ("<ol class=\"toc-list level-"); _buf << (slevel); _buf << ("\">");
1438
+ ; sections.each do |sec|;
1439
+ ; _buf << ("<li><a href=\"#");
1440
+ ; _buf << (sec.id); _buf << ("\">"); _buf << (section_title sec);
1441
+ ; _buf << ("</a>"); if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline');
1442
+ ; _buf << (child_toc);
1443
+ ; end; _buf << ("</li>"); end; _buf << ("</ol>"); end; _buf = _buf.join("")
1400
1444
  end
1401
1445
  end
1402
1446
 
1403
- def preamble(node, opts = {})
1447
+ def example(node, opts = {})
1404
1448
  node.extend(Helpers)
1405
1449
  node.instance_eval do
1406
- _buf = []; _buf << ("<section id=\"preamble\" aria-label=\"Preamble\">");
1407
- ; _buf << (content);
1408
- ; _buf << ("</section>"); if (document.attr? :toc) && (document.attr? 'toc-placement', 'preamble');
1409
- ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1410
- ; _buf << ((document.attr 'toc-title'));
1411
- ; _buf << ("</h2>");
1412
- ; _buf << (converter.convert document, 'outline');
1413
- ; _buf << ("</nav>");
1414
- ; end; _buf = _buf.join("")
1450
+ _buf = []; _slim_controls1 = block_with_caption :top, :class=>'example-block' do; _slim_controls2 = [];
1451
+ ; _slim_controls2 << ("<div class=\"example\">");
1452
+ ; _slim_controls2 << (content);
1453
+ ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1415
1454
  end
1416
1455
  end
1417
1456
 
1418
- def toc(node, opts = {})
1457
+ def colist(node, opts = {})
1419
1458
  node.extend(Helpers)
1420
1459
  node.instance_eval do
1421
1460
  _buf = [];
1422
- ;
1423
- ; if document.attr?(:toc) && document.sections?;
1424
- ; toc_id = id || ('toc' if document.embedded? || !document.attr?('toc-placement'));
1425
- ; _buf << ("<nav"); _slim_codeattributes1 = toc_id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = (attr :role, (document.attr 'toc-class', 'toc')); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\">");
1426
- ; _slim_htag_filter1 = ((level + 2)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes3 = ("#{toc_id}-title" if toc_id); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (">");
1427
- ; _buf << ((title || (document.attr 'toc-title')));
1428
- ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">");
1429
- ; _buf << (converter.convert document, 'outline', :toclevels=>((attr :levels).to_i if attr? :levels));
1430
- ; _buf << ("</nav>"); else;
1431
- ; _buf << ("<!--toc disabled-->");
1432
- ; end; _buf = _buf.join("")
1461
+ ; _buf << ("<ol"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "callout-list"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = [style, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1462
+ ; items.each do |item|;
1463
+ ; _buf << ("<li>"); _buf << (item.text);
1464
+ ; _buf << ("</li>"); end; _buf << ("</ol>"); _buf = _buf.join("")
1433
1465
  end
1434
1466
  end
1435
1467
 
1436
- def page_break(node, opts = {})
1468
+ def section(node, opts = {})
1437
1469
  node.extend(Helpers)
1438
1470
  node.instance_eval do
1439
- _buf = []; _buf << ("<div role=\"doc-pagebreak\" style=\"page-break-after: always;\"></div>");
1440
- ; _buf = _buf.join("")
1471
+ _buf = []; _buf << ("<section"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "doc-section"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = ["level-#{section_level}", role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1472
+ ; _slim_htag_filter1 = ((section_level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1473
+ ; if id;
1474
+ ; if document.attr? :sectanchors;
1475
+ ; _buf << ("<a class=\"anchor\" href=\"#"); _buf << (id); _buf << ("\" aria-hidden=\"true\"></a>");
1476
+ ; end; if document.attr? :sectlinks;
1477
+ ; _buf << ("<a class=\"link\" href=\"#"); _buf << (id); _buf << ("\">"); _buf << (section_title);
1478
+ ; _buf << ("</a>"); else;
1479
+ ; _buf << (section_title);
1480
+ ; end; else;
1481
+ ; _buf << (section_title);
1482
+ ; end; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf << (content);
1483
+ ; _buf << ("</section>"); _buf = _buf.join("")
1441
1484
  end
1442
1485
  end
1443
1486
 
1444
- def dlist(node, opts = {})
1487
+ def floating_title(node, opts = {})
1445
1488
  node.extend(Helpers)
1446
1489
  node.instance_eval do
1447
- _buf = []; case style;
1448
- ; when 'qanda';
1449
- ; _slim_controls1 = block_with_title :class=>'qlist qanda', :role=>'doc-qna' do; _slim_controls2 = [];
1450
- ; _slim_controls2 << ("<dl class=\"qanda\">");
1451
- ; items.each do |questions, answer|;
1452
- ; [*questions].each do |question|;
1453
- ; _slim_controls2 << ("<dt class=\"qanda-question\">"); _slim_controls2 << (question.text);
1454
- ; _slim_controls2 << ("</dt>"); end; unless answer.nil?;
1455
- ; _slim_controls2 << ("<dd class=\"qanda-answer\">");
1456
- ; if answer.text?;
1457
- ; _slim_controls3 = html_tag_if answer.blocks?, :p do; _slim_controls4 = [];
1458
- ; _slim_controls4 << (answer.text);
1459
- ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); end; if answer.blocks?;
1460
- ; _slim_controls2 << (answer.content);
1461
- ; end; _slim_controls2 << ("</dd>"); end; end; _slim_controls2 << ("</dl>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1);
1462
- ; when 'horizontal';
1463
- ; _slim_controls5 = block_with_title :class=>'hdlist' do; _slim_controls6 = [];
1464
- ; _slim_controls6 << ("<table>");
1465
- ; if (attr? :labelwidth) || (attr? :itemwidth);
1466
- ; _slim_controls6 << ("<colgroup><col");
1467
- ; _slim_codeattributes1 = style_value(width: [(attr :labelwidth), '%']); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls6 << (" style"); else; _slim_controls6 << (" style=\""); _slim_controls6 << (_slim_codeattributes1); _slim_controls6 << ("\""); end; end; _slim_controls6 << ("><col");
1468
- ; _slim_codeattributes2 = style_value(width: [(attr :itemwidth), '%']); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls6 << (" style"); else; _slim_controls6 << (" style=\""); _slim_controls6 << (_slim_codeattributes2); _slim_controls6 << ("\""); end; end; _slim_controls6 << ("></colgroup>");
1469
- ; end; items.each do |terms, dd|;
1470
- ; _slim_controls6 << ("<tr><th");
1471
- ; _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "hdlist1"; _temple_html_attributemerger1[1] = []; _slim_codeattributes3 = ('strong' if option? 'strong'); if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes3.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes3); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls6 << (" class=\""); _slim_controls6 << (_temple_html_attributeremover1); _slim_controls6 << ("\""); end; _slim_controls6 << (">");
1472
- ; terms = [*terms];
1473
- ; terms.each_with_index do |dt, idx|;
1474
- ; _slim_controls6 << (dt.text);
1475
- ; unless idx >= terms.count - 1;
1476
- ; _slim_controls6 << ("<br>");
1477
- ; end; end; _slim_controls6 << ("</th><td class=\"hdlist2\">");
1478
- ; unless dd.nil?;
1479
- ; if dd.text?;
1480
- ; _slim_controls6 << ("<p>"); _slim_controls6 << (dd.text);
1481
- ; _slim_controls6 << ("</p>"); end; if dd.blocks?;
1482
- ; _slim_controls6 << (dd.content);
1483
- ; end; end; _slim_controls6 << ("</td></tr>"); end; _slim_controls6 << ("</table>"); _slim_controls6 = _slim_controls6.join(""); end; _buf << (_slim_controls5);
1484
- ; else;
1485
- ; _slim_controls7 = block_with_title :class=>['dlist', style] do; _slim_controls8 = [];
1486
- ; _slim_controls8 << ("<dl>");
1487
- ; items.each do |terms, dd|;
1488
- ; [*terms].each do |dt|;
1489
- ; _slim_controls8 << ("<dt>"); _slim_controls8 << (dt.text);
1490
- ; _slim_controls8 << ("</dt>"); end; unless dd.nil?;
1491
- ; _slim_controls8 << ("<dd>"); _slim_controls8 << ((print_item_content dd));
1492
- ; _slim_controls8 << ("</dd>"); end; end; _slim_controls8 << ("</dl>"); _slim_controls8 = _slim_controls8.join(""); end; _buf << (_slim_controls7); end; _buf = _buf.join("")
1490
+ _buf = []; _slim_htag_filter1 = ((level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = [style, role]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1491
+ ; _buf << (title);
1492
+ ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf = _buf.join("")
1493
1493
  end
1494
1494
  end
1495
1495
  #------------------ End of generated transformation methods ------------------#